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

Side by Side Diff: chrome/browser/extensions/api/system_private/system_private_api.h

Issue 12089062: Move API functions registrations out of ExtensionFunctionRegistry. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // This extension API contains system-wide preferences and functions that shall
6 // be only available to component extensions.
7
8 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYSTEM_PRIVATE_SYSTEM_PRIVATE_API_H_
9 #define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_PRIVATE_SYSTEM_PRIVATE_API_H_
10
11 #include "chrome/browser/extensions/extension_function.h"
12
13 namespace extensions {
14
15 class SystemPrivateGetIncognitoModeAvailabilityFunction
16 : public SyncExtensionFunction {
17 public:
18 DECLARE_EXTENSION_FUNCTION("systemPrivate.getIncognitoModeAvailability",
19 SYSTEMPRIVATE_GETINCOGNITOMODEAVAILABILITY)
20
21 protected:
22 virtual ~SystemPrivateGetIncognitoModeAvailabilityFunction() {}
23
24 // ExtensionFunction:
25 virtual bool RunImpl() OVERRIDE;
26 };
27
28 // API function which returns the status of system update.
29 class SystemPrivateGetUpdateStatusFunction : public SyncExtensionFunction {
30 public:
31 DECLARE_EXTENSION_FUNCTION("systemPrivate.getUpdateStatus",
32 SYSTEMPRIVATE_GETUPDATESTATUS)
33
34 protected:
35 virtual ~SystemPrivateGetUpdateStatusFunction() {}
36
37 // ExtensionFunction:
38 virtual bool RunImpl() OVERRIDE;
39 };
40
41 // Dispatches systemPrivate.onBrightnessChanged event for extensions.
42 void DispatchBrightnessChangedEvent(int brightness, bool user_initiated);
43
44 // Dispatches systemPrivate.onVolumeChanged event for extensions.
45 void DispatchVolumeChangedEvent(double volume, bool is_volume_muted);
46
47 // Dispatches systemPrivate.onScreenChanged event for extensions.
48 void DispatchScreenUnlockedEvent();
49
50 // Dispatches systemPrivate.onWokeUp event for extensions.
51 void DispatchWokeUpEvent();
52
53 } // namespace extensions
54
55 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_PRIVATE_SYSTEM_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/module/module.cc ('k') | chrome/browser/extensions/api/system_private/system_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698