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

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

Issue 1416123002: Absolute Device Orientation API: blink implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add usecounter and rebase Created 5 years, 2 months 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/DeviceOrientationAbsoluteController.h
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.h b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.h
new file mode 100644
index 0000000000000000000000000000000000000000..67402ca36d46def25e16f312a491246a1af19a88
--- /dev/null
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.h
@@ -0,0 +1,37 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef DeviceOrientationAbsoluteController_h
+#define DeviceOrientationAbsoluteController_h
+
+#include "core/dom/Document.h"
+#include "modules/ModulesExport.h"
+#include "modules/device_orientation/DeviceOrientationController.h"
+
+namespace blink {
+
+class MODULES_EXPORT DeviceOrientationAbsoluteController final : public DeviceOrientationController {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationAbsoluteController);
haraken 2015/10/28 18:18:38 This is not needed because DeviceOrientationAbsolu
timvolodine 2015/10/29 13:49:18 Done.
+public:
+ ~DeviceOrientationAbsoluteController() override;
+
+ static const char* supplementName();
+ static DeviceOrientationAbsoluteController& from(Document&);
+
+ // Inherited from DeviceSingleWindowEventController.
+ void didAddEventListener(LocalDOMWindow*, const AtomicString& eventType) override;
+
+ DECLARE_VIRTUAL_TRACE();
+
+private:
+ explicit DeviceOrientationAbsoluteController(Document&);
+
+ // Inherited from DeviceOrientationController.
+ DeviceOrientationDispatcher& dispatcherInstance() const override;
+ const AtomicString& eventTypeName() const override;
+};
+
+} // namespace blink
+
+#endif // DeviceOrientationAbsoluteController_h

Powered by Google App Engine
This is Rietveld 408576698