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

Side by Side Diff: content/browser/devtools/protocol/emulation_handler.h

Issue 1013173002: [DevTools] Add stubs for Emulation domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | content/browser/devtools/protocol/emulation_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 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_EMULATION_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_EMULATION_HANDLER_H_
7
8 #include "content/browser/devtools/protocol/devtools_protocol_handler.h"
9
10 namespace content {
11 namespace devtools {
12 namespace emulation {
13
14 class EmulationHandler {
15 public:
16 using Response = DevToolsProtocolClient::Response;
17
18 EmulationHandler();
19 virtual ~EmulationHandler();
20
21 Response SetGeolocationOverride(double* latitude,
22 double* longitude,
23 double* accuracy);
24 Response ClearGeolocationOverride();
25
26 Response SetTouchEmulationEnabled(bool enabled,
27 const std::string* configuration);
28
29 Response CanEmulate(bool* result);
30 Response SetDeviceMetricsOverride(int width,
31 int height,
32 double device_scale_factor,
33 bool mobile,
34 bool fit_window,
35 const double* optional_scale,
36 const double* optional_offset_x,
37 const double* optional_offset_y);
38 Response ClearDeviceMetricsOverride();
39
40 void SetClient(scoped_ptr<DevToolsProtocolClient> client);
41
42 private:
43 DISALLOW_COPY_AND_ASSIGN(EmulationHandler);
44 };
45
46 } // namespace emulation
47 } // namespace devtools
48 } // namespace content
49
50 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_EMULATION_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/protocol/emulation_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698