[Webkit-unassigned] [Bug 43258] Implement chromium WebDeviceOrientationClient wrapper and have WebViewImpl get it from WebViewClient.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 4 04:04:26 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=43258
Jeremy Orlow <jorlow at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #63432| |review-
Flag| |
--- Comment #12 from Jeremy Orlow <jorlow at chromium.org> 2010-08-04 04:04:26 PST ---
(From update of attachment 63432)
WebKit/chromium/public/WebViewClient.h:94
+ virtual WebDeviceOrientationClient* createWebDeviceOrientationClient() { return WebDeviceOrientationClientMock::create(); }
Remove. Just call WebDeviceOrientationClientMock::create directly.
WebKit/chromium/src/WebViewImpl.h:526
+ OwnPtr<WebDeviceOrientationClient> m_webDeviceOrientationClient;
delete
WebKit/chromium/src/WebViewImpl.h:79
+ class WebDeviceOrientationClient;
delete
WebKit/chromium/src/WebViewImpl.cpp:268
+ , m_webDeviceOrientationClient(WebRuntimeFeatures::isDeviceOrientationEnabled() ? (client ? client->createWebDeviceOrientationClient() : WebDeviceOrientationClientMock::create()) : 0)
delete
WebKit/chromium/src/WebViewImpl.cpp:292
+ if (m_webDeviceOrientationClient)
this is all obsolete
WebKit/chromium/src/WebViewImpl.cpp:2216
+ m_webDeviceOrientationClient->updateOrientation(o);
The WebViewImpl should be calling some web core method directly to tell it of the update.
I believe the only new files you should have in this patch are WebDeviceOrientationClientMock.cpp/h and DeviceOrientationClientProxy (which will have a pointer to the WebViewClient and pass stuff on to that). If you need anything more I suggest you run it by me first.
I'd highly suggest you get all of this compiling/working together on a local machine before posting another patch. It'll help clarify the design, I think.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list