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

Unified Diff: chrome/browser/extensions/system/system_api.h

Issue 10905250: chromeos: Use EventRouterForwarder to disptch systemPrivate extension events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use EventRouterForwarder Created 8 years, 3 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/extensions/system/system_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/system/system_api.h
diff --git a/chrome/browser/extensions/system/system_api.h b/chrome/browser/extensions/system/system_api.h
index 5e26978d8aa8107d4d47752836e0c5b29a1b0560..81cfb0c314aec993ba74273a1d2f552bd4822eef 100644
--- a/chrome/browser/extensions/system/system_api.h
+++ b/chrome/browser/extensions/system/system_api.h
@@ -35,9 +35,22 @@ class GetUpdateStatusFunction : public SyncExtensionFunction {
virtual bool RunImpl() OVERRIDE;
};
-void DispatchBrightnessChangedEvent(int brightness, bool user_initiated);
-void DispatchVolumeChangedEvent(double volume, bool is_volume_muted);
+// Dispatches systemPrivate.onBrightnessChanged event for extensions.
+// |profile| is used to get extensions::EventRouter.
Mihai Parparita -not on Chrome 2012/09/13 19:49:52 |profile| is no longer a parameter.
satorux1 2012/09/13 19:52:08 good catch!
hashimoto 2012/09/13 19:52:26 Oops, done.
+void DispatchBrightnessChangedEvent(int brightness,
+ bool user_initiated);
+
+// Dispatches systemPrivate.onVolumeChanged event for extensions.
+// |profile| is used to get extensions::EventRouter.
+void DispatchVolumeChangedEvent(double volume,
+ bool is_volume_muted);
+
+// Dispatches systemPrivate.onScreenChanged event for extensions.
+// |profile| is used to get extensions::EventRouter.
void DispatchScreenUnlockedEvent();
+
+// Dispatches systemPrivate.onWokeUp event for extensions.
+// |profile| is used to get extensions::EventRouter.
void DispatchWokeUpEvent();
} // namespace extensions
« no previous file with comments | « no previous file | chrome/browser/extensions/system/system_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698