Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ | |
| 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "content/browser/devtools/protocol/browser.h" | |
| 12 #include "content/browser/devtools/protocol/devtools_domain_handler.h" | |
| 13 | |
| 14 namespace content { | |
| 15 namespace protocol { | |
| 16 | |
| 17 // This class implements reversed tethering handler. | |
|
dgozman
2017/03/22 21:28:34
Wrong comment :-)
| |
| 18 class BrowserHandler : public DevToolsDomainHandler, public Browser::Backend { | |
| 19 public: | |
| 20 BrowserHandler(); | |
| 21 ~BrowserHandler() override; | |
| 22 | |
| 23 void Wire(UberDispatcher* dispatcher) override; | |
| 24 Response GetWindowForTarget( | |
| 25 const String& targetId, | |
| 26 int* windowId, | |
| 27 std::unique_ptr<Browser::Bounds>* bounds) override; | |
| 28 Response GetWindowBounds(int windowId, | |
| 29 std::unique_ptr<Browser::Bounds>* bounds) override; | |
| 30 Response SetWindowBounds(int windowId, | |
| 31 std::unique_ptr<Browser::Bounds> bounds) override; | |
| 32 | |
| 33 private: | |
| 34 DISALLOW_COPY_AND_ASSIGN(BrowserHandler); | |
| 35 }; | |
| 36 | |
| 37 } // namespace protocol | |
| 38 } // namespace content | |
| 39 | |
| 40 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_BROWSER_HANDLER_H_ | |
| OLD | NEW |