| Index: chrome/test/chromedriver/chrome/device_metrics_override_manager.h
|
| diff --git a/chrome/test/chromedriver/chrome/geolocation_override_manager.h b/chrome/test/chromedriver/chrome/device_metrics_override_manager.h
|
| similarity index 50%
|
| copy from chrome/test/chromedriver/chrome/geolocation_override_manager.h
|
| copy to chrome/test/chromedriver/chrome/device_metrics_override_manager.h
|
| index 0ce63539d5fef7ab4a456d1e3e54f396fd3076ee..7d2739ac0dcc25133a185605f0a455e5fd08be45 100644
|
| --- a/chrome/test/chromedriver/chrome/geolocation_override_manager.h
|
| +++ b/chrome/test/chromedriver/chrome/device_metrics_override_manager.h
|
| @@ -1,9 +1,9 @@
|
| -// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2014 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 CHROME_TEST_CHROMEDRIVER_CHROME_GEOLOCATION_OVERRIDE_MANAGER_H_
|
| -#define CHROME_TEST_CHROMEDRIVER_CHROME_GEOLOCATION_OVERRIDE_MANAGER_H_
|
| +#ifndef CHROME_TEST_CHROMEDRIVER_CHROME_DEVICE_METRICS_OVERRIDE_MANAGER_H_
|
| +#define CHROME_TEST_CHROMEDRIVER_CHROME_DEVICE_METRICS_OVERRIDE_MANAGER_H_
|
|
|
| #include <string>
|
|
|
| @@ -17,17 +17,17 @@ class DictionaryValue;
|
| }
|
|
|
| class DevToolsClient;
|
| -struct Geoposition;
|
| +struct DeviceMetrics;
|
| class Status;
|
|
|
| -// Overrides the geolocation, if requested, for the duration of the
|
| +// Overrides the device metrics, if requested, for the duration of the
|
| // given |DevToolsClient|'s lifetime.
|
| -class GeolocationOverrideManager : public DevToolsEventListener {
|
| +class DeviceMetricsOverrideManager : public DevToolsEventListener {
|
| public:
|
| - explicit GeolocationOverrideManager(DevToolsClient* client);
|
| - virtual ~GeolocationOverrideManager();
|
| -
|
| - Status OverrideGeolocation(const Geoposition& geoposition);
|
| + explicit DeviceMetricsOverrideManager(DevToolsClient* client);
|
| + explicit DeviceMetricsOverrideManager(DevToolsClient* client,
|
| + DeviceMetrics* device_metrics);
|
| + virtual ~DeviceMetricsOverrideManager();
|
|
|
| // Overridden from DevToolsEventListener:
|
| virtual Status OnConnected(DevToolsClient* client) OVERRIDE;
|
| @@ -39,9 +39,9 @@ class GeolocationOverrideManager : public DevToolsEventListener {
|
| Status ApplyOverrideIfNeeded();
|
|
|
| DevToolsClient* client_;
|
| - scoped_ptr<Geoposition> overridden_geoposition_;
|
| + DeviceMetrics* overridden_device_metrics_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(GeolocationOverrideManager);
|
| + DISALLOW_COPY_AND_ASSIGN(DeviceMetricsOverrideManager);
|
| };
|
|
|
| -#endif // CHROME_TEST_CHROMEDRIVER_CHROME_GEOLOCATION_OVERRIDE_MANAGER_H_
|
| +#endif // CHROME_TEST_CHROMEDRIVER_CHROME_DEVICE_METRICS_OVERRIDE_MANAGER_H_
|
|
|