| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5f7a3f1 commit f699c59
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -257,8 +257,8 @@ Additional information for v31.2 release: | |||
| 257 | 257 | - [Tutorial](docs/Tutorial.md) | |
| 258 | 258 | ||
| 259 | 259 | ||
| 260 | - ### API categories | ||
| 261 | - | ||
| 260 | + ### API categories | ||
| 261 | + | ||
| 262 | 262 | #### Modules | |
| 263 | 263 | ||
| 264 | 264 | * [cefpython](api/cefpython.md#cefpython) module | |
@@ -313,9 +313,9 @@ Additional information for v31.2 release: | |||
| 313 | 313 | * [StringVisitor](api/StringVisitor.md#stringvisitor-interface) interface | |
| 314 | 314 | * [WebRequestClient](api/WebRequestClient.md#webrequestclient-interface) interface | |
| 315 | 315 | ||
| 316 | - | ||
| 317 | - ### API index | ||
| 318 | - | ||
| 316 | + | ||
| 317 | + ### API index | ||
| 318 | + | ||
| 319 | 319 | * [Application settings](api/ApplicationSettings.md#application-settings) | |
| 320 | 320 | * [accept_language_list](api/ApplicationSettings.md#accept_language_list) | |
| 321 | 321 | * [app_user_model_id](api/ApplicationSettings.md#app_user_model_id) | |
@@ -748,7 +748,6 @@ Additional information for v31.2 release: | |||
| 748 | 748 | * [SetAsChild](api/WindowInfo.md#setaschild) | |
| 749 | 749 | * [SetAsPopup](api/WindowInfo.md#setaspopup) | |
| 750 | 750 | * [SetAsOffscreen](api/WindowInfo.md#setasoffscreen) | |
| 751 | - * [SetTransparentPainting](api/WindowInfo.md#settransparentpainting) | ||
| 752 | 751 | * [WindowUtils (class)](api/WindowUtils.md#windowutils-class) | |
| 753 | 752 | * [OnSetFocus ](api/WindowUtils.md#onsetfocus-win) | |
| 754 | 753 | * [OnSize ](api/WindowUtils.md#onsize-win) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -434,7 +434,6 @@ | |||
| 434 | 434 | * [SetAsChild](WindowInfo.md#setaschild) | |
| 435 | 435 | * [SetAsPopup](WindowInfo.md#setaspopup) | |
| 436 | 436 | * [SetAsOffscreen](WindowInfo.md#setasoffscreen) | |
| 437 | - * [SetTransparentPainting](WindowInfo.md#settransparentpainting) | ||
| 438 | 437 | * [WindowUtils (class)](WindowUtils.md#windowutils-class) | |
| 439 | 438 | * [OnSetFocus ](WindowUtils.md#onsetfocus-win) | |
| 440 | 439 | * [OnSize ](WindowUtils.md#onsize-win) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,7 +39,8 @@ Table of contents: | |||
| 39 | 39 | * [v66+ Linux patch that fixed HTTPS cache problems on pages with certificate errors was disabled](#v66-linux-patch-that-fixed-https-cache-problems-on-pages-with-certificate-errors-was-disabled) | |
| 40 | 40 | * [v66+ DisplayHandler.OnConsoleMessage has a new param 'level'](#v66-displayhandleronconsolemessage-has-a-new-param-level) | |
| 41 | 41 | * [v66+ LifespanHandler.OnBeforePopup is now called on UI thread](#v66-lifespanhandleronbeforepopup-is-now-called-on-ui-thread) | |
| 42 | - * [V66+ RequestHandler.OnBeforeBrowse has a new param 'user_gesture'](#v66-requesthandleronbeforebrowse-has-a-new-param-user_gesture) | ||
| 42 | + * [v66+ RequestHandler.OnBeforeBrowse has a new param 'user_gesture'](#v66-requesthandleronbeforebrowse-has-a-new-param-user_gesture) | ||
| 43 | + * [v66+ Window transparency changes](#v66-window-transparency-changes) | ||
| 43 | 44 | ||
| 44 | 45 | ||
| 45 | 46 | ||
@@ -324,8 +325,22 @@ callback is now called on UI thread. Previously it was called on | |||
| 324 | 325 | IO thread. | |
| 325 | 326 | ||
| 326 | 327 | ||
| 327 | - ## V66+ RequestHandler.OnBeforeBrowse has a new param 'user_gesture' | ||
| 328 | + ## v66+ RequestHandler.OnBeforeBrowse has a new param 'user_gesture' | ||
| 328 | 329 | ||
| 329 | 330 | The RequestHandler.[OnBeforeBrowse](../api/RequestHandler.md#onbeforebrowse) | |
| 330 | 331 | callback has a new param `user_gesture`. | |
| 331 | 332 | ||
| 333 | + | ||
| 334 | + ## v66+ Window transparency changes | ||
| 335 | + | ||
| 336 | + 1. OSR windows (off-screen rendering, also known as windowless) are now | ||
| 337 | + transparent by default. You can control its transperency with | ||
| 338 | + ApplicationSettings.[background_color](../api/ApplicationSettings.md#background_color) and BrowserSettings.[background_color](../api/BrowserSettings.md#background_color) options. | ||
| 339 | + The WindowInfo.`SetTransparentPainting` method is now deprecated. Calling | ||
| 340 | + it with True will do nothing, and calling it with False **will result | ||
| 341 | + in exception**. | ||
| 342 | + | ||
| 343 | + 2. It is now possible to have | ||
| 344 | + transparent windows also in **windowed mode**. This seems to be working | ||
| 345 | + only on Linux (got it working on Fedora with just a change in window setting). | ||
| 346 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,20 +27,20 @@ BREAKAGE (needs updating Migration Guide doc) | |||
| 27 | 27 | - + OnBeforeBrowse: new param 'user_gesture' | |
| 28 | 28 | - + update Migration Guide | |
| 29 | 29 | ||
| 30 | - internal/cef_linux.h | ||
| 31 | - internal/cef_types_linux.h | ||
| 32 | - internal/cef_mac.h | ||
| 33 | - internal/cef_types_mac.h | ||
| 34 | - internal/cef_win.h | ||
| 35 | - internal/cef_types_win.h | ||
| 36 | - - OSR windows are transparent by default. To change it set | ||
| 37 | - CefBrowserSettings.background_color . | ||
| 38 | - - CefWindowInfo (cef_window_info_t): transparent_painting_enabled option removed | ||
| 39 | - - CefWindowInfo.SetAsWindowless: 'transparent' param removed | ||
| 40 | - - Deprecate WindowInfo.SetTransparentPainting method. When set | ||
| 41 | - to True do nothing. If set to False then raise Exception | ||
| 42 | - and provide info on CefBrowserSettings.background_color. | ||
| 43 | - - Update Migration Guide doc | ||
| 30 | + + internal/cef_linux.h | ||
| 31 | + + internal/cef_types_linux.h | ||
| 32 | + + internal/cef_mac.h | ||
| 33 | + + internal/cef_types_mac.h | ||
| 34 | + + internal/cef_win.h | ||
| 35 | + + internal/cef_types_win.h | ||
| 36 | + - + OSR windows are transparent by default. To change it set | ||
| 37 | + CefBrowserSettings.background_color . | ||
| 38 | + - + CefWindowInfo (cef_window_info_t): transparent_painting_enabled option removed | ||
| 39 | + - + CefWindowInfo.SetAsWindowless: 'transparent' param removed | ||
| 40 | + - + Deprecate WindowInfo.SetTransparentPainting method. When set | ||
| 41 | + to True do nothing. If set to False then raise Exception | ||
| 42 | + and provide info on CefBrowserSettings.background_color. | ||
| 43 | + - + Update Migration Guide doc | ||
| 44 | 44 | ||
| 45 | 45 | internal/cef_types.h | |
| 46 | 46 | - cef_settings_t: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,8 +15,7 @@ cdef extern from "include/internal/cef_linux.h": | |||
| 15 | 15 | cdef cppclass CefWindowInfo: | |
| 16 | 16 | void SetAsChild(CefWindowHandle parent, | |
| 17 | 17 | const CefRect& windowRect) | |
| 18 | - void SetAsWindowless(CefWindowHandle parent, | ||
| 19 | - cpp_bool transparent) | ||
| 18 | + void SetAsWindowless(CefWindowHandle parent) | ||
| 20 | 19 | ||
| 21 | 20 | cdef cppclass CefMainArgs: | |
| 22 | 21 | CefMainArgs() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,8 +14,7 @@ cdef extern from "include/internal/cef_mac.h": | |||
| 14 | 14 | cdef cppclass CefWindowInfo: | |
| 15 | 15 | void SetAsChild(CefWindowHandle parent, | |
| 16 | 16 | int x, int y, int width, int height) | |
| 17 | - void SetAsWindowless(CefWindowHandle parent, | ||
| 18 | - cpp_bool transparent) | ||
| 17 | + void SetAsWindowless(CefWindowHandle parent) | ||
| 19 | 18 | ||
| 20 | 19 | cdef cppclass CefMainArgs: | |
| 21 | 20 | CefMainArgs() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,8 +21,7 @@ cdef extern from "include/internal/cef_win.h": | |||
| 21 | 21 | RECT windowRect) | |
| 22 | 22 | void SetAsPopup(CefWindowHandle parent, | |
| 23 | 23 | const CefString& windowName) | |
| 24 | - void SetAsWindowless(CefWindowHandle parent, | ||
| 25 | - cpp_bool transparent) | ||
| 24 | + void SetAsWindowless(CefWindowHandle parent) | ||
| 26 | 25 | ||
| 27 | 26 | cdef cppclass CefMainArgs: | |
| 28 | 27 | CefMainArgs() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,21 +63,17 @@ cdef void SetCefWindowInfo( | |||
| 63 | 63 | <CefWindowHandle>windowInfo.parentWindowHandle, | |
| 64 | 64 | windowName) | |
| 65 | 65 | ||
| 66 | - cdef cpp_bool transparent = bool(windowInfo.transparentPainting) | ||
| 67 | 66 | if windowInfo.windowType == "offscreen": | |
| 68 | 67 | cefWindowInfo.SetAsWindowless( | |
| 69 | - <CefWindowHandle>windowInfo.parentWindowHandle, | ||
| 70 | - transparent) | ||
| 68 | + <CefWindowHandle>windowInfo.parentWindowHandle) | ||
| 71 | 69 | ||
| 72 | 70 | cdef class WindowInfo: | |
| 73 | 71 | cdef public str windowType | |
| 74 | 72 | cdef public WindowHandle parentWindowHandle | |
| 75 | 73 | cdef public list windowRect # [left, top, right, bottom] | |
| 76 | 74 | cdef public py_string windowName | |
| 77 | - cdef public py_bool transparentPainting | ||
| 78 | 75 | ||
| 79 | 76 | def __init__(self, title=""): | |
| 80 | - self.transparentPainting = False | ||
| 81 | 77 | self.windowName = "" | |
| 82 | 78 | if title: | |
| 83 | 79 | self.windowName = title | |
@@ -135,4 +131,11 @@ cdef class WindowInfo: | |||
| 135 | 131 | ||
| 136 | 132 | cpdef py_void SetTransparentPainting(self, | |
| 137 | 133 | py_bool transparentPainting): | |
| 138 | - self.transparentPainting = transparentPainting | ||
| 134 | + """Deprecated.""" | ||
| 135 | + if transparentPainting: | ||
| 136 | + # Do nothing, since v66 OSR windows are transparent by default | ||
| 137 | + pass | ||
| 138 | + else: | ||
| 139 | + raise Exception("This method is deprecated since v66, see " | ||
| 140 | + "Migration Guide document.") | ||
| 141 | + | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments