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

Unified Diff: chrome/browser/automation/testing_automation_provider.h

Issue 8347016: chromeos: Simplify power supply info in PowerLibrary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: git format-patch -1 Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/testing_automation_provider.h
diff --git a/chrome/browser/automation/testing_automation_provider.h b/chrome/browser/automation/testing_automation_provider.h
index 9c8877b573b001892feb2eb9d5fd2a7b67a9f1f1..32a85b4bdbd4774693b28be4730e702509ab9ea2 100644
--- a/chrome/browser/automation/testing_automation_provider.h
+++ b/chrome/browser/automation/testing_automation_provider.h
@@ -22,6 +22,10 @@
#include "net/base/cert_status_flags.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
+#if defined(OS_CHROMEOS)
+#include "chrome/browser/chromeos/cros/power_library.h"
+#endif // defined(OS_CHROMEOS)
+
class ImporterList;
class TemplateURLService;
@@ -37,7 +41,9 @@ struct WebPluginInfo;
class TestingAutomationProvider : public AutomationProvider,
public BrowserList::Observer,
public importer::ImporterListObserver,
- public content::NotificationObserver {
+ public content::NotificationObserver,
+ public chromeos::PowerLibrary::Observer {
satorux1 2011/10/21 19:36:50 This needs to be #if defined(OS_CHROMEOS). I'd sug
Simon Que 2011/10/21 20:55:31 Done.
+
public:
explicit TestingAutomationProvider(Profile* profile);
@@ -47,6 +53,9 @@ class TestingAutomationProvider : public AutomationProvider,
virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
virtual void OnChannelError() OVERRIDE;
+ virtual void PowerChanged(const chromeos::PowerSupplyStatus& status) OVERRIDE;
satorux1 2011/10/21 19:36:50 Add this. // chromeos::PowerLibrary::Observer ove
Simon Que 2011/10/21 20:55:31 Done.
+ virtual void SystemResumed() OVERRIDE {}
satorux1 2011/10/21 19:36:50 Ditto. This needs to be in #if defined(OS_CHROMEOS
Simon Que 2011/10/21 20:55:31 Done
+
private:
class PopupMenuWaiter;
@@ -1410,6 +1419,9 @@ class TestingAutomationProvider : public AutomationProvider,
// The stored data for the ImportSettings operation.
ImportSettingsData import_settings_data_;
+ // Last reported power status.
+ chromeos::PowerSupplyStatus power_status_;
+
DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
};
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698