Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(921)

Unified Diff: third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.h

Issue 1416123002: Absolute Device Orientation API: blink implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.h
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.h b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.h
index 97f0d59ac5fd44e2f2ae4e0f219f3fc272b3eddf..b033d7976aa3f29a6ece9fe29dc1b3eea78d13a2 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.h
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.h
@@ -12,9 +12,10 @@
namespace blink {
class DeviceOrientationData;
+class DeviceOrientationDispatcher;
class Event;
-class MODULES_EXPORT DeviceOrientationController final : public DeviceSingleWindowEventController, public WillBeHeapSupplement<Document> {
+class MODULES_EXPORT DeviceOrientationController : public DeviceSingleWindowEventController, public WillBeHeapSupplement<Document> {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationController);
public:
~DeviceOrientationController() override;
@@ -31,9 +32,12 @@ public:
DECLARE_VIRTUAL_TRACE();
-private:
+protected:
explicit DeviceOrientationController(Document&);
+ virtual DeviceOrientationDispatcher& dispatcherInstance() const;
+
+private:
// Inherited from DeviceEventControllerBase.
void registerWithDispatcher() override;
void unregisterWithDispatcher() override;

Powered by Google App Engine
This is Rietveld 408576698