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

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

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
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
11 #include "chrome/browser/extensions/chrome_extension_function.h" 11 #include "chrome/browser/extensions/chrome_extension_function.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 class SystemPrivateGetIncognitoModeAvailabilityFunction 15 class SystemPrivateGetIncognitoModeAvailabilityFunction
16 : public ChromeSyncExtensionFunction { 16 : public ChromeSyncExtensionFunction {
17 public: 17 public:
18 DECLARE_EXTENSION_FUNCTION("systemPrivate.getIncognitoModeAvailability", 18 DECLARE_EXTENSION_FUNCTION("systemPrivate.getIncognitoModeAvailability",
19 SYSTEMPRIVATE_GETINCOGNITOMODEAVAILABILITY) 19 SYSTEMPRIVATE_GETINCOGNITOMODEAVAILABILITY)
20 20
21 protected: 21 protected:
22 virtual ~SystemPrivateGetIncognitoModeAvailabilityFunction() {} 22 virtual ~SystemPrivateGetIncognitoModeAvailabilityFunction() {}
23 23
24 // ExtensionFunction: 24 // ExtensionFunction:
25 virtual bool RunSync() OVERRIDE; 25 virtual bool RunSync() override;
26 }; 26 };
27 27
28 // API function which returns the status of system update. 28 // API function which returns the status of system update.
29 class SystemPrivateGetUpdateStatusFunction 29 class SystemPrivateGetUpdateStatusFunction
30 : public ChromeSyncExtensionFunction { 30 : public ChromeSyncExtensionFunction {
31 public: 31 public:
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 RunSync() OVERRIDE; 39 virtual bool RunSync() override;
40 }; 40 };
41 41
42 // API function which returns the Google API key. 42 // API function which returns the Google API key.
43 class SystemPrivateGetApiKeyFunction : public SyncExtensionFunction { 43 class SystemPrivateGetApiKeyFunction : public SyncExtensionFunction {
44 public: 44 public:
45 DECLARE_EXTENSION_FUNCTION("systemPrivate.getApiKey", SYSTEMPRIVATE_GETAPIKEY) 45 DECLARE_EXTENSION_FUNCTION("systemPrivate.getApiKey", SYSTEMPRIVATE_GETAPIKEY)
46 46
47 protected: 47 protected:
48 virtual ~SystemPrivateGetApiKeyFunction() {} 48 virtual ~SystemPrivateGetApiKeyFunction() {}
49 49
50 // ExtensionFunction: 50 // ExtensionFunction:
51 virtual bool RunSync() OVERRIDE; 51 virtual bool RunSync() override;
52 }; 52 };
53 53
54 // Dispatches systemPrivate.onBrightnessChanged event for extensions. 54 // Dispatches systemPrivate.onBrightnessChanged event for extensions.
55 void DispatchBrightnessChangedEvent(int brightness, bool user_initiated); 55 void DispatchBrightnessChangedEvent(int brightness, bool user_initiated);
56 56
57 // Dispatches systemPrivate.onVolumeChanged event for extensions. 57 // Dispatches systemPrivate.onVolumeChanged event for extensions.
58 void DispatchVolumeChangedEvent(double volume, bool is_volume_muted); 58 void DispatchVolumeChangedEvent(double volume, bool is_volume_muted);
59 59
60 // Dispatches systemPrivate.onScreenChanged event for extensions. 60 // Dispatches systemPrivate.onScreenChanged event for extensions.
61 void DispatchScreenUnlockedEvent(); 61 void DispatchScreenUnlockedEvent();
62 62
63 // Dispatches systemPrivate.onWokeUp event for extensions. 63 // Dispatches systemPrivate.onWokeUp event for extensions.
64 void DispatchWokeUpEvent(); 64 void DispatchWokeUpEvent();
65 65
66 } // namespace extensions 66 } // namespace extensions
67 67
68 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_PRIVATE_SYSTEM_PRIVATE_API_H_ 68 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_PRIVATE_SYSTEM_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698