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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/protocol/emulation_handler.cc
diff --git a/content/browser/devtools/protocol/emulation_handler.cc b/content/browser/devtools/protocol/emulation_handler.cc
new file mode 100644
index 0000000000000000000000000000000000000000..71e568803705115d0afb42d1ae260ec7e0fb51ba
--- /dev/null
+++ b/content/browser/devtools/protocol/emulation_handler.cc
@@ -0,0 +1,53 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/devtools/protocol/emulation_handler.h"
+
+namespace content {
+namespace devtools {
+namespace emulation {
+
+using Response = DevToolsProtocolClient::Response;
+
+EmulationHandler::EmulationHandler() {
+}
+
+EmulationHandler::~EmulationHandler() {
+}
+
+void EmulationHandler::SetClient(scoped_ptr<DevToolsProtocolClient> client) {
+}
+
+Response EmulationHandler::SetGeolocationOverride(
+ double* latitude, double* longitude, double* accuracy) {
+ return Response::InternalError("Not implemented");
+}
+
+Response EmulationHandler::ClearGeolocationOverride() {
+ return Response::InternalError("Not implemented");
+}
+
+Response EmulationHandler::SetTouchEmulationEnabled(
+ bool enabled, const std::string* configuration) {
+ return Response::InternalError("Not implemented");
+}
+
+Response EmulationHandler::CanEmulate(bool* result) {
+ return Response::InternalError("Not implemented");
+}
+
+Response EmulationHandler::SetDeviceMetricsOverride(
+ int width, int height, double device_scale_factor, bool mobile,
+ bool fit_window, const double* optional_scale,
+ const double* optional_offset_x, const double* optional_offset_y) {
+ return Response::InternalError("Not implemented");
+}
+
+Response EmulationHandler::ClearDeviceMetricsOverride() {
+ return Response::InternalError("Not implemented");
+}
+
+} // namespace emulation
+} // namespace devtools
+} // namespace content
« 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