| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DeviceOrientationInspectorAgent_h | 5 #ifndef DeviceOrientationInspectorAgent_h |
| 6 #define DeviceOrientationInspectorAgent_h | 6 #define DeviceOrientationInspectorAgent_h |
| 7 | 7 |
| 8 #include "core/inspector/InspectorBaseAgent.h" | 8 #include "core/inspector/InspectorBaseAgent.h" |
| 9 #include "wtf/text/WTFString.h" | 9 #include "wtf/text/WTFString.h" |
| 10 | 10 |
| 11 namespace WebCore { | 11 namespace blink { |
| 12 | 12 |
| 13 class DeviceOrientationController; | 13 class DeviceOrientationController; |
| 14 class Page; | 14 class Page; |
| 15 | 15 |
| 16 typedef String ErrorString; | 16 typedef String ErrorString; |
| 17 | 17 |
| 18 class DeviceOrientationInspectorAgent FINAL : public InspectorBaseAgent<DeviceOr
ientationInspectorAgent>, public InspectorBackendDispatcher::DeviceOrientationCo
mmandHandler { | 18 class DeviceOrientationInspectorAgent FINAL : public InspectorBaseAgent<DeviceOr
ientationInspectorAgent>, public InspectorBackendDispatcher::DeviceOrientationCo
mmandHandler { |
| 19 WTF_MAKE_NONCOPYABLE(DeviceOrientationInspectorAgent); | 19 WTF_MAKE_NONCOPYABLE(DeviceOrientationInspectorAgent); |
| 20 public: | 20 public: |
| 21 static void provideTo(Page&); | 21 static void provideTo(Page&); |
| 22 | 22 |
| 23 virtual ~DeviceOrientationInspectorAgent(); | 23 virtual ~DeviceOrientationInspectorAgent(); |
| 24 | 24 |
| 25 // Protocol methods. | 25 // Protocol methods. |
| 26 virtual void setDeviceOrientationOverride(ErrorString*, double, double, doub
le) OVERRIDE; | 26 virtual void setDeviceOrientationOverride(ErrorString*, double, double, doub
le) OVERRIDE; |
| 27 virtual void clearDeviceOrientationOverride(ErrorString*) OVERRIDE; | 27 virtual void clearDeviceOrientationOverride(ErrorString*) OVERRIDE; |
| 28 | 28 |
| 29 // Inspector Controller API. | 29 // Inspector Controller API. |
| 30 virtual void clearFrontend() OVERRIDE; | 30 virtual void clearFrontend() OVERRIDE; |
| 31 virtual void restore() OVERRIDE; | 31 virtual void restore() OVERRIDE; |
| 32 virtual void didCommitLoadForMainFrame() OVERRIDE; | 32 virtual void didCommitLoadForMainFrame() OVERRIDE; |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 explicit DeviceOrientationInspectorAgent(Page&); | 35 explicit DeviceOrientationInspectorAgent(Page&); |
| 36 DeviceOrientationController& controller(); | 36 DeviceOrientationController& controller(); |
| 37 Page& m_page; | 37 Page& m_page; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace WebCore | 40 } // namespace blink |
| 41 | 41 |
| 42 | 42 |
| 43 #endif // !defined(DeviceOrientationInspectorAgent_h) | 43 #endif // !defined(DeviceOrientationInspectorAgent_h) |
| OLD | NEW |