Merge lp://staging/~osomon/oxide/zoomFactor into lp://staging/~oxide-developers/oxide/oxide.trunk
Proposed by
Olivier Tilloy
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 1445 | ||||
Proposed branch: | lp://staging/~osomon/oxide/zoomFactor | ||||
Merge into: | lp://staging/~oxide-developers/oxide/oxide.trunk | ||||
Diff against target: |
476 lines (+242/-4) 12 files modified
qt/core/browser/oxide_qt_web_view.cc (+28/-1) qt/core/browser/oxide_qt_web_view.h (+10/-0) qt/core/glue/oxide_qt_web_view_proxy.cc (+11/-0) qt/core/glue/oxide_qt_web_view_proxy.h (+5/-0) qt/core/glue/oxide_qt_web_view_proxy_client.h (+2/-0) qt/qmlplugin/oxide.qmltypes (+6/-1) qt/qmlplugin/oxide_qml_plugin.cc (+1/-0) qt/quick/api/oxideqquickwebview.cc (+48/-1) qt/quick/api/oxideqquickwebview.h (+11/-1) qt/quick/api/oxideqquickwebview_p.h (+1/-0) qt/tests/qmltests/api/tst_WebView_zoomFactor.html (+5/-0) qt/tests/qmltests/api/tst_WebView_zoomFactor.qml (+114/-0) |
||||
To merge this branch: | bzr merge lp://staging/~osomon/oxide/zoomFactor | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chris Coulson | Approve | ||
Review via email:
|
Commit message
Add a WebView.zoomFactor property to the QML API.
To post a comment you must log in.
Thanks, I've added a few comments inline.
One other thing that will need fixing - changing the zoom factor in one webview will also set the zoom in other webviews that are displaying a site from the same host, but the current implementation won't fire OxideQQuickWebV iew::zoomFactor Changed( ) in those other webviews.
content: :HostZoomMap has a mechanism for adding zoom change callbacks which can probably help here. As Oxide only ever has a single storage partition per BrowserContext, the HostZoomMap associated with a WebContents won't ever change during its lifetime, which probably makes this a bit easier.