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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/system/system_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This extension API contains system-wide preferences and functions that shall 5 // This extension API contains system-wide preferences and functions that shall
6 // be only available to component extensions. 6 // be only available to component extensions.
7 7
8 #ifndef CHROME_BROWSER_EXTENSIONS_SYSTEM_SYSTEM_API_H_ 8 #ifndef CHROME_BROWSER_EXTENSIONS_SYSTEM_SYSTEM_API_H_
9 #define CHROME_BROWSER_EXTENSIONS_SYSTEM_SYSTEM_API_H_ 9 #define CHROME_BROWSER_EXTENSIONS_SYSTEM_SYSTEM_API_H_
10 10
(...skipping 17 matching lines...) Expand all
28 public: 28 public:
29 DECLARE_EXTENSION_FUNCTION_NAME("systemPrivate.getUpdateStatus") 29 DECLARE_EXTENSION_FUNCTION_NAME("systemPrivate.getUpdateStatus")
30 30
31 protected: 31 protected:
32 virtual ~GetUpdateStatusFunction() {} 32 virtual ~GetUpdateStatusFunction() {}
33 33
34 // ExtensionFunction: 34 // ExtensionFunction:
35 virtual bool RunImpl() OVERRIDE; 35 virtual bool RunImpl() OVERRIDE;
36 }; 36 };
37 37
38 void DispatchBrightnessChangedEvent(int brightness, bool user_initiated); 38 // Dispatches systemPrivate.onBrightnessChanged event for extensions.
39 void DispatchVolumeChangedEvent(double volume, bool is_volume_muted); 39 // |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.
40 void DispatchBrightnessChangedEvent(int brightness,
41 bool user_initiated);
42
43 // Dispatches systemPrivate.onVolumeChanged event for extensions.
44 // |profile| is used to get extensions::EventRouter.
45 void DispatchVolumeChangedEvent(double volume,
46 bool is_volume_muted);
47
48 // Dispatches systemPrivate.onScreenChanged event for extensions.
49 // |profile| is used to get extensions::EventRouter.
40 void DispatchScreenUnlockedEvent(); 50 void DispatchScreenUnlockedEvent();
51
52 // Dispatches systemPrivate.onWokeUp event for extensions.
53 // |profile| is used to get extensions::EventRouter.
41 void DispatchWokeUpEvent(); 54 void DispatchWokeUpEvent();
42 55
43 } // namespace extensions 56 } // namespace extensions
44 57
45 #endif // CHROME_BROWSER_EXTENSIONS_SYSTEM_SYSTEM_API_H_ 58 #endif // CHROME_BROWSER_EXTENSIONS_SYSTEM_SYSTEM_API_H_
OLDNEW
« 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