You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -107,6 +101,12 @@ Methods available in upstream CEF which were not yet exposed in CEF Python
107
101
* ImeCommitText
108
102
* ImeFinishComposingText
109
103
* ImeCancelComposition
104
+
* GetFrameCount
105
+
* GetFrameIdentifiers
106
+
* GetNSTextInputContext (Mac, OSR)
107
+
* HandleKeyEventAfterTextInputClient (Mac, OSR)
108
+
* HandleKeyEventBeforeTextInputClient (Mac, OSR)
109
+
* IsLoading
110
110
111
111
There are some edge cases when after the OnBeforeClose event browser objects
112
112
are no more globally referenced thus a new instance is created that
@@ -169,7 +169,7 @@ information.
169
169
170
170
|||
171
171
| --- | --- |
172
-
|__Return__|bool|
172
+
|__Return__|void|
173
173
174
174
Explicitly close the associated DevTools browser, if any.
175
175
@@ -319,24 +319,17 @@ Calling javascript from native code synchronously is not possible in CEF 3. It i
319
319
320
320
| Parameter | Type |
321
321
| --- | --- |
322
-
| searchId | int |
323
322
| searchText | string |
324
323
| forward | bool |
325
324
| matchCase | bool |
326
325
| findNext | bool |
327
326
|__Return__| void |
328
327
329
-
Description from upstream CEF:
330
-
331
-
> Search for |searchText|. |identifier| must be a unique ID and these IDs
332
-
> must strictly increase so that newer requests always have greater IDs than
333
-
> older requests. If |identifier| is zero or less than the previous ID value
334
-
> then it will be automatically assigned a new valid ID. |forward| indicates
335
-
> whether to search forward or backward within the page. |matchCase|
336
-
> indicates whether the search should be case-sensitive. |findNext| indicates
337
-
> whether this is the first request or a follow-up. The CefFindHandler
338
-
> instance, if any, returned via CefClient::GetFindHandler will be called to
339
-
> report find results.
328
+
Search for |searchText|. |forward| indicates whether to search forward or
329
+
backward within the page. |matchCase| indicates whether the search should be
330
+
case-sensitive. |findNext| indicates whether this is the first request or a
331
+
follow-up. The CefFindHandler instance, if any, returned via
332
+
CefClient::GetFindHandler will be called to report find results.
340
333
341
334
### GetClientCallback
342
335
@@ -366,64 +359,46 @@ Get client callbacks as a dictionary.
366
359
Returns the focused [Frame](Frame.md) for the browser window.
367
360
368
361
369
-
### GetFrame
362
+
### GetFrameByIdentifier
370
363
371
364
| Parameter | Type |
372
365
| --- | --- |
373
-
|name| string |
366
+
|identifier| string |
374
367
|__Return__| Frame |
375
368
376
-
Returns the [Frame](Frame.md) with the specified name, or NULL if not found.
369
+
Returns the [Frame](Frame.md) with the specified identifier, or None if not found.
377
370
378
371
379
-
### GetFrameByIdentifier
372
+
### GetFrameByName
380
373
381
374
| Parameter | Type |
382
375
| --- | --- |
383
-
|identifier|long|
376
+
|name|string|
384
377
|__Return__| Frame |
385
378
386
-
Available only in CEF 3. Returns the [Frame](Frame.md) with the specified identifier, or None if not found.
387
-
388
-
389
-
### GetFrames
390
-
391
-
|||
392
-
| --- | --- |
393
-
|__Return__| list |
394
-
395
-
Get all frames. This is an internal CEF Python implementation that uses GetFrameNames() and GetFrame() methods to list through all frames. The main frame is not included in that list.
379
+
Returns the [Frame](Frame.md) with the specified name, or None if not found.
380
+
This method should only be called on the UI thread.
396
381
397
382
398
-
### GetFrameCount
383
+
### GetFrameNames
399
384
400
385
|||
401
386
| --- | --- |
402
-
|__Return__| int |
403
-
404
-
Available only in CEF 3. Not yet implemented.
387
+
|__Return__| string[]|
405
388
406
-
Returns the number of frames that currently exist.
389
+
Returns the names of all existing frames. This list does not include the main frame.
390
+
This method should only be called on the UI thread.
407
391
408
392
409
-
### GetFrameIdentifiers
393
+
### GetFrames
410
394
411
395
|||
412
396
| --- | --- |
413
-
|__Return__| void |
414
-
415
-
Available only in CEF 3. Not yet implemented.
416
-
417
-
Returns the identifiers of all existing frames.
418
-
419
-
420
-
### GetFrameNames
397
+
|__Return__| list |
421
398
422
-
|||
423
-
| --- | --- |
424
-
|__Return__| string[]|
425
-
426
-
Returns the names of all existing frames. This list does not include the main frame.
399
+
Get all frames. This is a CEF Python helper that calls GetFrameNames() and
400
+
GetFrameByName() to return a list of [Frame](Frame.md) objects. The main frame
401
+
is not included in that list.
427
402
428
403
429
404
### GetImage
@@ -467,18 +442,6 @@ Returns the [JavascriptBindings](JavascriptBindings.md) object that was passed t
467
442
Returns the main (top-level) [Frame](Frame.md) for the browser window.
468
443
469
444
470
-
### GetNSTextInputContext
471
-
472
-
|||
473
-
| --- | --- |
474
-
|__Return__| TextInputContext |
475
-
476
-
Not yet ported. Available only in CEF 3.
477
-
478
-
Get the NSTextInputContext implementation for enabling IME on Mac when
479
-
window rendering is disabled.
480
-
481
-
482
445
### GetOpenerWindowHandle
483
446
484
447
|||
@@ -573,30 +536,6 @@ Navigate backwards.
573
536
Navigate forwards.
574
537
575
538
576
-
### HandleKeyEventAfterTextInputClient
577
-
578
-
| Parameter | Type |
579
-
| --- | --- |
580
-
| keyEvent | eventHandle |
581
-
|__Return__| void |
582
-
583
-
Available only in CEF 3. Not yet implemented.
584
-
585
-
Performs any additional actions after NSTextInputClient handles the event.
586
-
587
-
588
-
### HandleKeyEventBeforeTextInputClient
589
-
590
-
|||
591
-
| --- | --- |
592
-
|__Return__| void |
593
-
594
-
Available only in CEF 3. Not yet implemented.
595
-
596
-
Handles a keyDown event prior to passing it through the NSTextInputClient
597
-
machinery.
598
-
599
-
600
539
### HasDevTools
601
540
602
541
|||
@@ -636,24 +575,11 @@ Description from upstream CEF:
636
575
637
576
### IsFullscreen
638
577
639
-
|||
640
-
| --- | --- |
641
-
|__Return__| void |
642
-
643
-
Whether in fullscreen mode, see ToggleFullscreen().
644
-
645
-
This function is Windows-only.
646
-
647
-
648
-
### IsLoading
649
-
650
578
|||
651
579
| --- | --- |
652
580
|__Return__| bool |
653
581
654
-
Available only in CEF 3. Not yet implemented.
655
-
656
-
Returns true if the browser is currently loading.
582
+
Whether in fullscreen mode, see ToggleFullscreen(). Windows-only.
657
583
658
584
659
585
### IsPopup
@@ -686,9 +612,8 @@ Load url in the main frame.
686
612
If the url is a local path it needs to start with the `file://` prefix.
687
613
If the url contains special characters it may need proper handling.
688
614
Starting with v66.1+ it is required for the app code to encode the url
689
-
properly. You can use the `pathlib.PurePath.as_uri` in Python 3
690
-
or `urllib.pathname2url` in Python 2 (`urllib.request.pathname2url`
691
-
in Python 3) depending on your case.
615
+
properly. You can use `pathlib.PurePath.as_uri` or
616
+
`urllib.request.pathname2url` depending on your case.
692
617
693
618
694
619
### Navigate
@@ -781,7 +706,7 @@ this method will replace it with the specified |word|.
0 commit comments