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

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

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 | « content/browser/devtools/protocol/emulation_handler.h ('k') | content/content_browser.gypi » ('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 #include "content/browser/devtools/protocol/emulation_handler.h"
6
7 namespace content {
8 namespace devtools {
9 namespace emulation {
10
11 using Response = DevToolsProtocolClient::Response;
12
13 EmulationHandler::EmulationHandler() {
14 }
15
16 EmulationHandler::~EmulationHandler() {
17 }
18
19 void EmulationHandler::SetClient(scoped_ptr<DevToolsProtocolClient> client) {
20 }
21
22 Response EmulationHandler::SetGeolocationOverride(
23 double* latitude, double* longitude, double* accuracy) {
24 return Response::InternalError("Not implemented");
25 }
26
27 Response EmulationHandler::ClearGeolocationOverride() {
28 return Response::InternalError("Not implemented");
29 }
30
31 Response EmulationHandler::SetTouchEmulationEnabled(
32 bool enabled, const std::string* configuration) {
33 return Response::InternalError("Not implemented");
34 }
35
36 Response EmulationHandler::CanEmulate(bool* result) {
37 return Response::InternalError("Not implemented");
38 }
39
40 Response EmulationHandler::SetDeviceMetricsOverride(
41 int width, int height, double device_scale_factor, bool mobile,
42 bool fit_window, const double* optional_scale,
43 const double* optional_offset_x, const double* optional_offset_y) {
44 return Response::InternalError("Not implemented");
45 }
46
47 Response EmulationHandler::ClearDeviceMetricsOverride() {
48 return Response::InternalError("Not implemented");
49 }
50
51 } // namespace emulation
52 } // namespace devtools
53 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/emulation_handler.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698