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

Side by Side Diff: chrome/test/chromedriver/chrome/mobile_emulation_override_manager.h

Issue 637933002: Replace FINAL and OVERRIDE with their C++11 counterparts in chrome/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_MOBILE_EMULATION_OVERRIDE_MANAGER_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_MOBILE_EMULATION_OVERRIDE_MANAGER_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_MOBILE_EMULATION_OVERRIDE_MANAGER_H_ 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_MOBILE_EMULATION_OVERRIDE_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 13 matching lines...) Expand all
24 // Overrides the device metrics, if requested, for the duration of the 24 // Overrides the device metrics, if requested, for the duration of the
25 // given |DevToolsClient|'s lifetime. 25 // given |DevToolsClient|'s lifetime.
26 class MobileEmulationOverrideManager : public DevToolsEventListener { 26 class MobileEmulationOverrideManager : public DevToolsEventListener {
27 public: 27 public:
28 MobileEmulationOverrideManager(DevToolsClient* client, 28 MobileEmulationOverrideManager(DevToolsClient* client,
29 const DeviceMetrics* device_metrics, 29 const DeviceMetrics* device_metrics,
30 const BrowserInfo* browser_info); 30 const BrowserInfo* browser_info);
31 virtual ~MobileEmulationOverrideManager(); 31 virtual ~MobileEmulationOverrideManager();
32 32
33 // Overridden from DevToolsEventListener: 33 // Overridden from DevToolsEventListener:
34 virtual Status OnConnected(DevToolsClient* client) OVERRIDE; 34 virtual Status OnConnected(DevToolsClient* client) override;
35 virtual Status OnEvent(DevToolsClient* client, 35 virtual Status OnEvent(DevToolsClient* client,
36 const std::string& method, 36 const std::string& method,
37 const base::DictionaryValue& params) OVERRIDE; 37 const base::DictionaryValue& params) override;
38 38
39 private: 39 private:
40 Status ApplyOverrideIfNeeded(); 40 Status ApplyOverrideIfNeeded();
41 41
42 DevToolsClient* client_; 42 DevToolsClient* client_;
43 const DeviceMetrics* overridden_device_metrics_; 43 const DeviceMetrics* overridden_device_metrics_;
44 const BrowserInfo* browser_info_; 44 const BrowserInfo* browser_info_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(MobileEmulationOverrideManager); 46 DISALLOW_COPY_AND_ASSIGN(MobileEmulationOverrideManager);
47 }; 47 };
48 48
49 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_MOBILE_EMULATION_OVERRIDE_MANAGER_H_ 49 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_MOBILE_EMULATION_OVERRIDE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698