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

Side by Side Diff: third_party/WebKit/Source/modules/device_orientation/DeviceOrientationInspectorAgent.h

Issue 1767883002: DevTools: generate string16-based handlers for v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 2 Created 4 years, 9 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 unified diff | Download patch
OLDNEW
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 "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "wtf/text/WTFString.h" 10 #include "wtf/text/WTFString.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class DeviceOrientationController; 14 class DeviceOrientationController;
15 class Page; 15 class Page;
16 16
17 typedef String ErrorString;
18 17
19 class MODULES_EXPORT DeviceOrientationInspectorAgent final : public InspectorBas eAgent<DeviceOrientationInspectorAgent, protocol::Frontend::DeviceOrientation>, public protocol::Dispatcher::DeviceOrientationCommandHandler { 18 class MODULES_EXPORT DeviceOrientationInspectorAgent final : public InspectorBas eAgent<DeviceOrientationInspectorAgent, protocol::Frontend::DeviceOrientation>, public protocol::Dispatcher::DeviceOrientationCommandHandler {
20 WTF_MAKE_NONCOPYABLE(DeviceOrientationInspectorAgent); 19 WTF_MAKE_NONCOPYABLE(DeviceOrientationInspectorAgent);
21 public: 20 public:
22 static PassOwnPtrWillBeRawPtr<DeviceOrientationInspectorAgent> create(Page*) ; 21 static PassOwnPtrWillBeRawPtr<DeviceOrientationInspectorAgent> create(Page*) ;
23 22
24 ~DeviceOrientationInspectorAgent() override; 23 ~DeviceOrientationInspectorAgent() override;
25 DECLARE_VIRTUAL_TRACE(); 24 DECLARE_VIRTUAL_TRACE();
26 25
27 // Protocol methods. 26 // Protocol methods.
28 void setDeviceOrientationOverride(ErrorString*, double, double, double) over ride; 27 void setDeviceOrientationOverride(ErrorString*, double, double, double) over ride;
29 void clearDeviceOrientationOverride(ErrorString*) override; 28 void clearDeviceOrientationOverride(ErrorString*) override;
30 29
31 // Inspector Controller API. 30 // Inspector Controller API.
32 void disable(ErrorString*) override; 31 void disable(ErrorString*) override;
33 void restore() override; 32 void restore() override;
34 void didCommitLoadForLocalFrame(LocalFrame*) override; 33 void didCommitLoadForLocalFrame(LocalFrame*) override;
35 34
36 private: 35 private:
37 explicit DeviceOrientationInspectorAgent(Page&); 36 explicit DeviceOrientationInspectorAgent(Page&);
38 DeviceOrientationController& controller(); 37 DeviceOrientationController& controller();
39 RawPtrWillBeMember<Page> m_page; 38 RawPtrWillBeMember<Page> m_page;
40 }; 39 };
41 40
42 } // namespace blink 41 } // namespace blink
43 42
44 43
45 #endif // !defined(DeviceOrientationInspectorAgent_h) 44 #endif // !defined(DeviceOrientationInspectorAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698