[Webkit-unassigned] [Bug 43258] Implement WebDeviceOrientationClient wrapper and have WebViewImpl get it from WebViewClient.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jul 30 10:58:24 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=43258
--- Comment #2 from Jeremy Orlow <jorlow at chromium.org> 2010-07-30 10:58:24 PST ---
(From update of attachment 63069)
WebKit/chromium/public/WebDeviceOrientationClientMock.h:41
+ // WEBKIT_API setOrientation(const WebDeviceOrientation&);
These should be virtual thus WEBKIT_API is not needed. All of these will also be in the WebDeviceOrientationClient.h (and be virtual). The methods in the cpp should just call m_private->method_name(...)
WebKit/chromium/public/WebDeviceOrientationClientMock.h:28
+ #include "WebCommon.h"
not needed
WebKit/chromium/public/WebDeviceOrientationClientMock.h:48
+ WebCore::DeviceOrientationClient* m_private;
Use the private ptr class instead.
WebKit/chromium/public/WebDeviceOrientationClientMock.h:37
+ WEBKIT_API WebDeviceOrientationClientMock();
Define these inline. Have them both call initialize() and have it set itself to a new mock object in the src file. Have the destructor call reset() and define it as {} in the src file.
WebDeviceOrientationCLient.cpp doesn't need to exist. All the methods in the .h file should be implemented as calling WEBKIT_ASSERT_NOT_REACHED().
WebKit/chromium/src/WebViewImpl.cpp:266
+ , m_webDeviceOrientationClient(createWebDeviceOrientationClient(client))
m_webDeviceOrientationClient(webViewClient->createWebDeviceOrientationClient())
WebKit/chromium/src/WebViewImpl.cpp:291
+ pageClients.deviceOrientationClient = m_webDeviceOrientationClient->client();
not needed
WebKit/chromium/src/WebViewImpl.cpp:2211
+ WebDeviceOrientationClient* WebViewImpl::createWebDeviceOrientationClient(WebViewClient* webViewClient)
not needed
You're almost there.
--
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