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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/devtools/protocol/emulation_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/protocol/emulation_handler.h
diff --git a/content/browser/devtools/protocol/emulation_handler.h b/content/browser/devtools/protocol/emulation_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..8f152d37c020e4881dd1fa4ae2da734a9df42c5a
--- /dev/null
+++ b/content/browser/devtools/protocol/emulation_handler.h
@@ -0,0 +1,50 @@
+// 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.
+
+#ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_EMULATION_HANDLER_H_
+#define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_EMULATION_HANDLER_H_
+
+#include "content/browser/devtools/protocol/devtools_protocol_handler.h"
+
+namespace content {
+namespace devtools {
+namespace emulation {
+
+class EmulationHandler {
+ public:
+ using Response = DevToolsProtocolClient::Response;
+
+ EmulationHandler();
+ virtual ~EmulationHandler();
+
+ Response SetGeolocationOverride(double* latitude,
+ double* longitude,
+ double* accuracy);
+ Response ClearGeolocationOverride();
+
+ Response SetTouchEmulationEnabled(bool enabled,
+ const std::string* configuration);
+
+ Response CanEmulate(bool* result);
+ Response 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);
+ Response ClearDeviceMetricsOverride();
+
+ void SetClient(scoped_ptr<DevToolsProtocolClient> client);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(EmulationHandler);
+};
+
+} // namespace emulation
+} // namespace devtools
+} // namespace content
+
+#endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_EMULATION_HANDLER_H_
« 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