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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.h

Issue 8271024: chromeos: Add power supply info reading capability (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: removed #if 0 Created 9 years, 1 month 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 namespace webkit { 37 namespace webkit {
38 struct WebPluginInfo; 38 struct WebPluginInfo;
39 } 39 }
40 40
41 // This is an automation provider containing testing calls. 41 // This is an automation provider containing testing calls.
42 class TestingAutomationProvider : public AutomationProvider, 42 class TestingAutomationProvider : public AutomationProvider,
43 public BrowserList::Observer, 43 public BrowserList::Observer,
44 public importer::ImporterListObserver, 44 public importer::ImporterListObserver,
45 #if defined(OS_CHROMEOS) 45 #if defined(OS_CHROMEOS)
46 public chromeos::PowerLibrary::Observer, 46 public chromeos::PowerManagerClient::Observer,
47 #endif // defined(OS_CHROMEOS) 47 #endif // defined(OS_CHROMEOS)
48 public content::NotificationObserver { 48 public content::NotificationObserver {
49 49
50 public: 50 public:
51 explicit TestingAutomationProvider(Profile* profile); 51 explicit TestingAutomationProvider(Profile* profile);
52 52
53 virtual IPC::Channel::Mode GetChannelMode(bool use_named_interface); 53 virtual IPC::Channel::Mode GetChannelMode(bool use_named_interface);
54 54
55 // IPC::Channel::Listener: 55 // IPC::Channel::Listener:
56 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 56 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 void GetVolumeInfo(base::DictionaryValue* args, IPC::Message* reply_message); 1346 void GetVolumeInfo(base::DictionaryValue* args, IPC::Message* reply_message);
1347 1347
1348 void SetVolume(base::DictionaryValue* args, IPC::Message* reply_message); 1348 void SetVolume(base::DictionaryValue* args, IPC::Message* reply_message);
1349 1349
1350 void SetMute(base::DictionaryValue* args, IPC::Message* reply_message); 1350 void SetMute(base::DictionaryValue* args, IPC::Message* reply_message);
1351 1351
1352 void CaptureProfilePhoto(Browser* browser, 1352 void CaptureProfilePhoto(Browser* browser,
1353 DictionaryValue* args, 1353 DictionaryValue* args,
1354 IPC::Message* reply_message); 1354 IPC::Message* reply_message);
1355 1355
1356 // chromeos::PowerLibrary::Observer overrides. 1356 // chromeos::PowerManagerClient::Observer overrides.
1357 virtual void PowerChanged(const chromeos::PowerSupplyStatus& status) OVERRIDE; 1357 virtual void PowerChanged(const chromeos::PowerSupplyStatus& status) OVERRIDE;
1358 virtual void SystemResumed() OVERRIDE {}
1359 #endif // defined(OS_CHROMEOS) 1358 #endif // defined(OS_CHROMEOS)
1360 1359
1361 void WaitForTabCountToBecome(int browser_handle, 1360 void WaitForTabCountToBecome(int browser_handle,
1362 int target_tab_count, 1361 int target_tab_count,
1363 IPC::Message* reply_message); 1362 IPC::Message* reply_message);
1364 1363
1365 void WaitForInfoBarCount(int tab_handle, 1364 void WaitForInfoBarCount(int tab_handle,
1366 size_t target_count, 1365 size_t target_count,
1367 IPC::Message* reply_message); 1366 IPC::Message* reply_message);
1368 1367
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 // Used to enumerate browser profiles. 1420 // Used to enumerate browser profiles.
1422 scoped_refptr<ImporterList> importer_list_; 1421 scoped_refptr<ImporterList> importer_list_;
1423 1422
1424 // The stored data for the ImportSettings operation. 1423 // The stored data for the ImportSettings operation.
1425 ImportSettingsData import_settings_data_; 1424 ImportSettingsData import_settings_data_;
1426 1425
1427 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1426 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1428 }; 1427 };
1429 1428
1430 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1429 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698