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

Unified Diff: content/browser/devtools/protocol/ui_handler.h

Issue 2734123004: add a new set of commands to resize and position windows (Closed)
Patch Set: add methods to UI domain Created 3 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698