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

Side by Side Diff: Source/modules/screen_orientation/ScreenOrientationInspectorAgent.h

Issue 1195793008: [DevTools] Implement screen orientation override. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Restore test Created 5 years, 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ScreenOrientationInspectorAgent_h
6 #define ScreenOrientationInspectorAgent_h
7
8 #include "core/InspectorFrontend.h"
9 #include "core/inspector/InspectorBaseAgent.h"
10 #include "modules/ModulesExport.h"
11 #include "wtf/text/WTFString.h"
12
13 namespace blink {
14
15 class ScreenOrientationController;
16
17 typedef String ErrorString;
18
19 class MODULES_EXPORT ScreenOrientationInspectorAgent final : public InspectorBas eAgent<ScreenOrientationInspectorAgent, InspectorFrontend::ScreenOrientation>, p ublic InspectorBackendDispatcher::ScreenOrientationCommandHandler {
20 WTF_MAKE_NONCOPYABLE(ScreenOrientationInspectorAgent);
21 public:
22 static PassOwnPtrWillBeRawPtr<ScreenOrientationInspectorAgent> create(LocalF rame&);
23
24 virtual ~ScreenOrientationInspectorAgent();
25
26 // Protocol methods.
27 virtual void setScreenOrientationOverride(ErrorString*, int, const String&) override;
28 virtual void clearScreenOrientationOverride(ErrorString*) override;
29
30 // InspectorBaseAgent overrides.
31 void disable(ErrorString*) override;
32 void restore() override;
33
34 private:
35 explicit ScreenOrientationInspectorAgent(LocalFrame&);
36 LocalFrame& m_frame;
37 };
38
39 } // namespace blink
40
41
42 #endif // !defined(ScreenOrientationInspectorAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698