OLD | NEW |
(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_ |
OLD | NEW |