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

Side by Side Diff: headless/public/headless_devtools_client.h

Issue 2896763002: Implement window management devtools commands for headless. (Closed)
Patch Set: nit and rebase Created 3 years, 7 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ 5 #ifndef HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_
6 #define HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ 6 #define HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "headless/public/headless_export.h" 11 #include "headless/public/headless_export.h"
12 12
13 namespace headless { 13 namespace headless {
14 14
15 namespace accessibility { 15 namespace accessibility {
16 class Domain; 16 class Domain;
17 } 17 }
18 namespace animation { 18 namespace animation {
19 class Domain; 19 class Domain;
20 } 20 }
21 namespace application_cache { 21 namespace application_cache {
22 class Domain; 22 class Domain;
23 } 23 }
24 namespace browser {
25 class Domain;
26 }
24 namespace cache_storage { 27 namespace cache_storage {
25 class Domain; 28 class Domain;
26 } 29 }
27 namespace console { 30 namespace console {
28 class Domain; 31 class Domain;
29 } 32 }
30 namespace css { 33 namespace css {
31 class Domain; 34 class Domain;
32 } 35 }
33 namespace database { 36 namespace database {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 static std::unique_ptr<HeadlessDevToolsClient> Create(); 111 static std::unique_ptr<HeadlessDevToolsClient> Create();
109 112
110 // DevTools commands are split into domains which corresponds to the getters 113 // DevTools commands are split into domains which corresponds to the getters
111 // below. Each domain can be used to send commands and to subscribe to events. 114 // below. Each domain can be used to send commands and to subscribe to events.
112 // 115 //
113 // See http://chromedevtools.github.io/debugger-protocol-viewer/ for 116 // See http://chromedevtools.github.io/debugger-protocol-viewer/ for
114 // the capabilities of each domain. 117 // the capabilities of each domain.
115 virtual accessibility::Domain* GetAccessibility() = 0; 118 virtual accessibility::Domain* GetAccessibility() = 0;
116 virtual animation::Domain* GetAnimation() = 0; 119 virtual animation::Domain* GetAnimation() = 0;
117 virtual application_cache::Domain* GetApplicationCache() = 0; 120 virtual application_cache::Domain* GetApplicationCache() = 0;
121 virtual browser::Domain* GetBrowser() = 0;
118 virtual cache_storage::Domain* GetCacheStorage() = 0; 122 virtual cache_storage::Domain* GetCacheStorage() = 0;
119 virtual console::Domain* GetConsole() = 0; 123 virtual console::Domain* GetConsole() = 0;
120 virtual css::Domain* GetCSS() = 0; 124 virtual css::Domain* GetCSS() = 0;
121 virtual database::Domain* GetDatabase() = 0; 125 virtual database::Domain* GetDatabase() = 0;
122 virtual debugger::Domain* GetDebugger() = 0; 126 virtual debugger::Domain* GetDebugger() = 0;
123 virtual device_orientation::Domain* GetDeviceOrientation() = 0; 127 virtual device_orientation::Domain* GetDeviceOrientation() = 0;
124 virtual dom::Domain* GetDOM() = 0; 128 virtual dom::Domain* GetDOM() = 0;
125 virtual dom_debugger::Domain* GetDOMDebugger() = 0; 129 virtual dom_debugger::Domain* GetDOMDebugger() = 0;
126 virtual dom_storage::Domain* GetDOMStorage() = 0; 130 virtual dom_storage::Domain* GetDOMStorage() = 0;
127 virtual emulation::Domain* GetEmulation() = 0; 131 virtual emulation::Domain* GetEmulation() = 0;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 friend class HeadlessDevToolsClientImpl; 177 friend class HeadlessDevToolsClientImpl;
174 178
175 HeadlessDevToolsClient() {} 179 HeadlessDevToolsClient() {}
176 180
177 DISALLOW_COPY_AND_ASSIGN(HeadlessDevToolsClient); 181 DISALLOW_COPY_AND_ASSIGN(HeadlessDevToolsClient);
178 }; 182 };
179 183
180 } // namespace headless 184 } // namespace headless
181 185
182 #endif // HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_ 186 #endif // HEADLESS_PUBLIC_HEADLESS_DEVTOOLS_CLIENT_H_
OLDNEW
« no previous file with comments | « headless/lib/headless_devtools_client_browsertest.cc ('k') | headless/test/headless_browser_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698