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_UI_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_UI_HANDLER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "content/browser/devtools/protocol/devtools_domain_handler.h" |
| 10 #include "content/browser/devtools/protocol/ui.h" |
| 11 |
| 12 namespace content { |
| 13 namespace protocol { |
| 14 |
| 15 // This class implements reversed tethering handler. |
| 16 class UIHandler : public DevToolsDomainHandler, public UI::Backend { |
| 17 public: |
| 18 UIHandler(); |
| 19 ~UIHandler() override; |
| 20 |
| 21 void Wire(UberDispatcher* dispatcher) override; |
| 22 Response GetWindowFromTarget(const String& targetId, int* indowId) override; |
| 23 Response MaximizeWindow(int windowId) override; |
| 24 Response MinimizeWindow(int windowId) override; |
| 25 Response GetWindowBounds(int windowId, |
| 26 int* left, |
| 27 int* top, |
| 28 int* width, |
| 29 int* height) override; |
| 30 Response SetWindowBounds(int windowId, |
| 31 Maybe<int> left, |
| 32 Maybe<int> top, |
| 33 Maybe<int> width, |
| 34 Maybe<int> height) override; |
| 35 Response SetWindowFullscreen(int windowId, bool fullscreen) override; |
| 36 |
| 37 private: |
| 38 DISALLOW_COPY_AND_ASSIGN(UIHandler); |
| 39 }; |
| 40 |
| 41 } // namespace protocol |
| 42 } // namespace content |
| 43 |
| 44 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_UI_HANDLER_H_ |
OLD | NEW |