[Webkit-unassigned] [Bug 41616] [Chromium] DeviceOrientation plumbing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jul 12 14:22:44 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=41616
--- Comment #6 from Darin Fisher (:fishd, Google) <fishd at chromium.org> 2010-07-12 14:22:44 PST ---
(From update of attachment 60534)
WebKit/chromium/public/WebDeviceOrientationService.h:41
+ virtual void attachBridge(WebDeviceOrientationServiceBridge* bridge) { WEBKIT_ASSERT_NOT_REACHED(); }
nit: no need for a parameter name. webkit style is to exclude the parameter name
when it adds no information.
WebKit/chromium/public/WebDeviceOrientationServiceBridge.h:36
+ // Bridge between a DeviceOrientationClientImpl and a WebDeviceOrientationService.
please avoid mentioning implementation classes in the public API. it isn't
relevant to a consumer of the API.
WebKit/chromium/public/WebDeviceOrientationServiceBridge.h:37
+ class WebDeviceOrientationServiceBridge {
usually we use the term Client to describe the interface that receives
notifications from some service.
Foo has a FooClient
FooService has a FooServiceClient
Is there some reason why Bridge is better than Client?
WebKit/chromium/public/WebDeviceOrientationService.h:41
+ virtual void attachBridge(WebDeviceOrientationServiceBridge* bridge) { WEBKIT_ASSERT_NOT_REACHED(); }
can you have more than one bridge attached? or is it limited
to just one bridge attached at a time?
have you considered just adding these methods to WebViewClient,
maybe named a bit differently?
--
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