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

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

Issue 2734123004: add a new set of commands to resize and position windows (Closed)
Patch Set: modify protocol 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/browser_handler.h
diff --git a/content/browser/devtools/protocol/browser_handler.h b/content/browser/devtools/protocol/browser_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..c1d6b2cfeca68a24d1f3d5bbbdd2864db650b991
--- /dev/null
+++ b/content/browser/devtools/protocol/browser_handler.h
@@ -0,0 +1,40 @@
+// 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_BROWSER_HANDLER_H_
+#define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "content/browser/devtools/protocol/browser.h"
+#include "content/browser/devtools/protocol/devtools_domain_handler.h"
+
+namespace content {
+namespace protocol {
+
+// This class implements reversed tethering handler.
dgozman 2017/03/22 21:28:34 Wrong comment :-)
+class BrowserHandler : public DevToolsDomainHandler, public Browser::Backend {
+ public:
+ BrowserHandler();
+ ~BrowserHandler() override;
+
+ void Wire(UberDispatcher* dispatcher) override;
+ Response GetWindowForTarget(
+ const String& targetId,
+ int* windowId,
+ std::unique_ptr<Browser::Bounds>* bounds) override;
+ Response GetWindowBounds(int windowId,
+ std::unique_ptr<Browser::Bounds>* bounds) override;
+ Response SetWindowBounds(int windowId,
+ std::unique_ptr<Browser::Bounds> bounds) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(BrowserHandler);
+};
+
+} // namespace protocol
+} // namespace content
+
+#endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698