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

Unified Diff: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationInspectorAgent.h

Issue 1723663005: Revert of [DevTools] Move screen orientation override to RenderWidgetScreenMetricsEmulator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationInspectorAgent.h
diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationInspectorAgent.h b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationInspectorAgent.h
new file mode 100644
index 0000000000000000000000000000000000000000..b60b1acb96eda2ef3494033f57a98400a02bf80c
--- /dev/null
+++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationInspectorAgent.h
@@ -0,0 +1,43 @@
+// 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 ScreenOrientationInspectorAgent_h
+#define ScreenOrientationInspectorAgent_h
+
+#include "core/inspector/InspectorBaseAgent.h"
+#include "modules/ModulesExport.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+class ScreenOrientationController;
+
+typedef String ErrorString;
+
+class MODULES_EXPORT ScreenOrientationInspectorAgent final : public InspectorBaseAgent<ScreenOrientationInspectorAgent, protocol::Frontend::ScreenOrientation>, public protocol::Dispatcher::ScreenOrientationCommandHandler {
+ WTF_MAKE_NONCOPYABLE(ScreenOrientationInspectorAgent);
+public:
+ static PassOwnPtrWillBeRawPtr<ScreenOrientationInspectorAgent> create(LocalFrame&);
+
+ ~ScreenOrientationInspectorAgent() override;
+
+ DECLARE_VIRTUAL_TRACE();
+
+ // Protocol methods.
+ void setScreenOrientationOverride(ErrorString*, int, const String&) override;
+ void clearScreenOrientationOverride(ErrorString*) override;
+
+ // InspectorBaseAgent overrides.
+ void disable(ErrorString*) override;
+ void restore() override;
+
+private:
+ explicit ScreenOrientationInspectorAgent(LocalFrame&);
+ RawPtrWillBeMember<LocalFrame> m_frame;
+};
+
+} // namespace blink
+
+
+#endif // !defined(ScreenOrientationInspectorAgent_h)

Powered by Google App Engine
This is Rietveld 408576698