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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698