Index: content/browser/devtools/protocol/ui_handler.h |
diff --git a/content/browser/devtools/protocol/ui_handler.h b/content/browser/devtools/protocol/ui_handler.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dd3ed3b8d71fe55f362ca1b3173476d08f3c31d4 |
--- /dev/null |
+++ b/content/browser/devtools/protocol/ui_handler.h |
@@ -0,0 +1,44 @@ |
+// Copyright 2017 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 CONTENT_BROWSER_DEVTOOLS_PROTOCOL_UI_HANDLER_H_ |
+#define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_UI_HANDLER_H_ |
+ |
+#include "base/macros.h" |
+#include "content/browser/devtools/protocol/devtools_domain_handler.h" |
+#include "content/browser/devtools/protocol/ui.h" |
+ |
+namespace content { |
+namespace protocol { |
+ |
+// This class implements reversed tethering handler. |
+class UIHandler : public DevToolsDomainHandler, public UI::Backend { |
+ public: |
+ UIHandler(); |
+ ~UIHandler() override; |
+ |
+ void Wire(UberDispatcher* dispatcher) override; |
+ Response GetWindowFromTarget(const String& targetId, int* indowId) override; |
+ Response MaximizeWindow(int windowId) override; |
+ Response MinimizeWindow(int windowId) override; |
+ Response GetWindowBounds(int windowId, |
+ int* left, |
+ int* top, |
+ int* width, |
+ int* height) override; |
+ Response SetWindowBounds(int windowId, |
+ Maybe<int> left, |
+ Maybe<int> top, |
+ Maybe<int> width, |
+ Maybe<int> height) override; |
+ Response SetWindowFullscreen(int windowId, bool fullscreen) override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(UIHandler); |
+}; |
+ |
+} // namespace protocol |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_UI_HANDLER_H_ |