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

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

Issue 58903014: Revert 232412 "Implement Google network speech synthesis." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/src/
Patch Set: Created 7 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 | Annotate | Revision Log
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_API_SYSTEM_PRIVATE_SYSTEM_PRIVATE_API_H_ 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYSTEM_PRIVATE_SYSTEM_PRIVATE_API_H_
9 #define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_PRIVATE_SYSTEM_PRIVATE_API_H_ 9 #define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_PRIVATE_SYSTEM_PRIVATE_API_H_
10 10
(...skipping 21 matching lines...) Expand all
32 DECLARE_EXTENSION_FUNCTION("systemPrivate.getUpdateStatus", 32 DECLARE_EXTENSION_FUNCTION("systemPrivate.getUpdateStatus",
33 SYSTEMPRIVATE_GETUPDATESTATUS) 33 SYSTEMPRIVATE_GETUPDATESTATUS)
34 34
35 protected: 35 protected:
36 virtual ~SystemPrivateGetUpdateStatusFunction() {} 36 virtual ~SystemPrivateGetUpdateStatusFunction() {}
37 37
38 // ExtensionFunction: 38 // ExtensionFunction:
39 virtual bool RunImpl() OVERRIDE; 39 virtual bool RunImpl() OVERRIDE;
40 }; 40 };
41 41
42 // API function which returns the Google API key.
43 class SystemPrivateGetApiKeyFunction : public SyncExtensionFunction {
44 public:
45 DECLARE_EXTENSION_FUNCTION("systemPrivate.getApiKey", SYSTEMPRIVATE_GETAPIKEY)
46
47 protected:
48 virtual ~SystemPrivateGetApiKeyFunction() {}
49
50 // ExtensionFunction:
51 virtual bool RunImpl() OVERRIDE;
52 };
53
54 // Dispatches systemPrivate.onBrightnessChanged event for extensions. 42 // Dispatches systemPrivate.onBrightnessChanged event for extensions.
55 void DispatchBrightnessChangedEvent(int brightness, bool user_initiated); 43 void DispatchBrightnessChangedEvent(int brightness, bool user_initiated);
56 44
57 // Dispatches systemPrivate.onVolumeChanged event for extensions. 45 // Dispatches systemPrivate.onVolumeChanged event for extensions.
58 void DispatchVolumeChangedEvent(double volume, bool is_volume_muted); 46 void DispatchVolumeChangedEvent(double volume, bool is_volume_muted);
59 47
60 // Dispatches systemPrivate.onScreenChanged event for extensions. 48 // Dispatches systemPrivate.onScreenChanged event for extensions.
61 void DispatchScreenUnlockedEvent(); 49 void DispatchScreenUnlockedEvent();
62 50
63 // Dispatches systemPrivate.onWokeUp event for extensions. 51 // Dispatches systemPrivate.onWokeUp event for extensions.
64 void DispatchWokeUpEvent(); 52 void DispatchWokeUpEvent();
65 53
66 } // namespace extensions 54 } // namespace extensions
67 55
68 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_PRIVATE_SYSTEM_PRIVATE_API_H_ 56 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_PRIVATE_SYSTEM_PRIVATE_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('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