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

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

Issue 1711083002: [DevTools] Move screen orientation override to RenderWidgetScreenMetricsEmulator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 10 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
(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/inspector/InspectorBaseAgent.h"
9 #include "modules/ModulesExport.h"
10 #include "wtf/text/WTFString.h"
11
12 namespace blink {
13
14 class ScreenOrientationController;
15
16 typedef String ErrorString;
17
18 class MODULES_EXPORT ScreenOrientationInspectorAgent final : public InspectorBas eAgent<ScreenOrientationInspectorAgent, protocol::Frontend::ScreenOrientation>, public protocol::Dispatcher::ScreenOrientationCommandHandler {
19 WTF_MAKE_NONCOPYABLE(ScreenOrientationInspectorAgent);
20 public:
21 static PassOwnPtrWillBeRawPtr<ScreenOrientationInspectorAgent> create(LocalF rame&);
22
23 ~ScreenOrientationInspectorAgent() override;
24
25 DECLARE_VIRTUAL_TRACE();
26
27 // Protocol methods.
28 void setScreenOrientationOverride(ErrorString*, int, const String&) override ;
29 void clearScreenOrientationOverride(ErrorString*) override;
30
31 // InspectorBaseAgent overrides.
32 void disable(ErrorString*) override;
33 void restore() override;
34
35 private:
36 explicit ScreenOrientationInspectorAgent(LocalFrame&);
37 RawPtrWillBeMember<LocalFrame> m_frame;
38 };
39
40 } // namespace blink
41
42
43 #endif // !defined(ScreenOrientationInspectorAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698