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

Side by Side Diff: extensions/browser/api/app_current_window_internal/app_current_window_internal_api.h

Issue 622343002: replace OVERRIDE and FINAL with override and final in 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 #ifndef EXTENSIONS_BROWSER_API_APP_CURRENT_WINDOW_INTERNAL_APP_CURRENT_WINDOW_IN TERNAL_API_H_ 5 #ifndef EXTENSIONS_BROWSER_API_APP_CURRENT_WINDOW_INTERNAL_APP_CURRENT_WINDOW_IN TERNAL_API_H_
6 #define EXTENSIONS_BROWSER_API_APP_CURRENT_WINDOW_INTERNAL_APP_CURRENT_WINDOW_IN TERNAL_API_H_ 6 #define EXTENSIONS_BROWSER_API_APP_CURRENT_WINDOW_INTERNAL_APP_CURRENT_WINDOW_IN TERNAL_API_H_
7 7
8 #include "extensions/browser/extension_function.h" 8 #include "extensions/browser/extension_function.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 class AppWindow; 12 class AppWindow;
13 13
14 class AppCurrentWindowInternalExtensionFunction : public SyncExtensionFunction { 14 class AppCurrentWindowInternalExtensionFunction : public SyncExtensionFunction {
15 protected: 15 protected:
16 virtual ~AppCurrentWindowInternalExtensionFunction() {} 16 virtual ~AppCurrentWindowInternalExtensionFunction() {}
17 17
18 // Invoked with the current app window. 18 // Invoked with the current app window.
19 virtual bool RunWithWindow(AppWindow* window) = 0; 19 virtual bool RunWithWindow(AppWindow* window) = 0;
20 20
21 private: 21 private:
22 virtual bool RunSync() OVERRIDE; 22 virtual bool RunSync() override;
23 }; 23 };
24 24
25 class AppCurrentWindowInternalFocusFunction 25 class AppCurrentWindowInternalFocusFunction
26 : public AppCurrentWindowInternalExtensionFunction { 26 : public AppCurrentWindowInternalExtensionFunction {
27 public: 27 public:
28 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.focus", 28 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.focus",
29 APP_CURRENTWINDOWINTERNAL_FOCUS) 29 APP_CURRENTWINDOWINTERNAL_FOCUS)
30 30
31 protected: 31 protected:
32 virtual ~AppCurrentWindowInternalFocusFunction() {} 32 virtual ~AppCurrentWindowInternalFocusFunction() {}
33 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 33 virtual bool RunWithWindow(AppWindow* window) override;
34 }; 34 };
35 35
36 class AppCurrentWindowInternalFullscreenFunction 36 class AppCurrentWindowInternalFullscreenFunction
37 : public AppCurrentWindowInternalExtensionFunction { 37 : public AppCurrentWindowInternalExtensionFunction {
38 public: 38 public:
39 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.fullscreen", 39 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.fullscreen",
40 APP_CURRENTWINDOWINTERNAL_FULLSCREEN) 40 APP_CURRENTWINDOWINTERNAL_FULLSCREEN)
41 41
42 protected: 42 protected:
43 virtual ~AppCurrentWindowInternalFullscreenFunction() {} 43 virtual ~AppCurrentWindowInternalFullscreenFunction() {}
44 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 44 virtual bool RunWithWindow(AppWindow* window) override;
45 }; 45 };
46 46
47 class AppCurrentWindowInternalMaximizeFunction 47 class AppCurrentWindowInternalMaximizeFunction
48 : public AppCurrentWindowInternalExtensionFunction { 48 : public AppCurrentWindowInternalExtensionFunction {
49 public: 49 public:
50 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.maximize", 50 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.maximize",
51 APP_CURRENTWINDOWINTERNAL_MAXIMIZE) 51 APP_CURRENTWINDOWINTERNAL_MAXIMIZE)
52 52
53 protected: 53 protected:
54 virtual ~AppCurrentWindowInternalMaximizeFunction() {} 54 virtual ~AppCurrentWindowInternalMaximizeFunction() {}
55 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 55 virtual bool RunWithWindow(AppWindow* window) override;
56 }; 56 };
57 57
58 class AppCurrentWindowInternalMinimizeFunction 58 class AppCurrentWindowInternalMinimizeFunction
59 : public AppCurrentWindowInternalExtensionFunction { 59 : public AppCurrentWindowInternalExtensionFunction {
60 public: 60 public:
61 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.minimize", 61 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.minimize",
62 APP_CURRENTWINDOWINTERNAL_MINIMIZE) 62 APP_CURRENTWINDOWINTERNAL_MINIMIZE)
63 63
64 protected: 64 protected:
65 virtual ~AppCurrentWindowInternalMinimizeFunction() {} 65 virtual ~AppCurrentWindowInternalMinimizeFunction() {}
66 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 66 virtual bool RunWithWindow(AppWindow* window) override;
67 }; 67 };
68 68
69 class AppCurrentWindowInternalRestoreFunction 69 class AppCurrentWindowInternalRestoreFunction
70 : public AppCurrentWindowInternalExtensionFunction { 70 : public AppCurrentWindowInternalExtensionFunction {
71 public: 71 public:
72 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.restore", 72 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.restore",
73 APP_CURRENTWINDOWINTERNAL_RESTORE) 73 APP_CURRENTWINDOWINTERNAL_RESTORE)
74 74
75 protected: 75 protected:
76 virtual ~AppCurrentWindowInternalRestoreFunction() {} 76 virtual ~AppCurrentWindowInternalRestoreFunction() {}
77 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 77 virtual bool RunWithWindow(AppWindow* window) override;
78 }; 78 };
79 79
80 class AppCurrentWindowInternalDrawAttentionFunction 80 class AppCurrentWindowInternalDrawAttentionFunction
81 : public AppCurrentWindowInternalExtensionFunction { 81 : public AppCurrentWindowInternalExtensionFunction {
82 public: 82 public:
83 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.drawAttention", 83 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.drawAttention",
84 APP_CURRENTWINDOWINTERNAL_DRAWATTENTION) 84 APP_CURRENTWINDOWINTERNAL_DRAWATTENTION)
85 85
86 protected: 86 protected:
87 virtual ~AppCurrentWindowInternalDrawAttentionFunction() {} 87 virtual ~AppCurrentWindowInternalDrawAttentionFunction() {}
88 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 88 virtual bool RunWithWindow(AppWindow* window) override;
89 }; 89 };
90 90
91 class AppCurrentWindowInternalClearAttentionFunction 91 class AppCurrentWindowInternalClearAttentionFunction
92 : public AppCurrentWindowInternalExtensionFunction { 92 : public AppCurrentWindowInternalExtensionFunction {
93 public: 93 public:
94 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.clearAttention", 94 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.clearAttention",
95 APP_CURRENTWINDOWINTERNAL_CLEARATTENTION) 95 APP_CURRENTWINDOWINTERNAL_CLEARATTENTION)
96 96
97 protected: 97 protected:
98 virtual ~AppCurrentWindowInternalClearAttentionFunction() {} 98 virtual ~AppCurrentWindowInternalClearAttentionFunction() {}
99 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 99 virtual bool RunWithWindow(AppWindow* window) override;
100 }; 100 };
101 101
102 class AppCurrentWindowInternalShowFunction 102 class AppCurrentWindowInternalShowFunction
103 : public AppCurrentWindowInternalExtensionFunction { 103 : public AppCurrentWindowInternalExtensionFunction {
104 public: 104 public:
105 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.show", 105 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.show",
106 APP_CURRENTWINDOWINTERNAL_SHOW) 106 APP_CURRENTWINDOWINTERNAL_SHOW)
107 107
108 protected: 108 protected:
109 virtual ~AppCurrentWindowInternalShowFunction() {} 109 virtual ~AppCurrentWindowInternalShowFunction() {}
110 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 110 virtual bool RunWithWindow(AppWindow* window) override;
111 }; 111 };
112 112
113 class AppCurrentWindowInternalHideFunction 113 class AppCurrentWindowInternalHideFunction
114 : public AppCurrentWindowInternalExtensionFunction { 114 : public AppCurrentWindowInternalExtensionFunction {
115 public: 115 public:
116 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.hide", 116 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.hide",
117 APP_CURRENTWINDOWINTERNAL_HIDE) 117 APP_CURRENTWINDOWINTERNAL_HIDE)
118 118
119 protected: 119 protected:
120 virtual ~AppCurrentWindowInternalHideFunction() {} 120 virtual ~AppCurrentWindowInternalHideFunction() {}
121 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 121 virtual bool RunWithWindow(AppWindow* window) override;
122 }; 122 };
123 123
124 class AppCurrentWindowInternalSetBoundsFunction 124 class AppCurrentWindowInternalSetBoundsFunction
125 : public AppCurrentWindowInternalExtensionFunction { 125 : public AppCurrentWindowInternalExtensionFunction {
126 public: 126 public:
127 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setBounds", 127 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setBounds",
128 APP_CURRENTWINDOWINTERNAL_SETBOUNDS) 128 APP_CURRENTWINDOWINTERNAL_SETBOUNDS)
129 protected: 129 protected:
130 virtual ~AppCurrentWindowInternalSetBoundsFunction() {} 130 virtual ~AppCurrentWindowInternalSetBoundsFunction() {}
131 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 131 virtual bool RunWithWindow(AppWindow* window) override;
132 }; 132 };
133 133
134 class AppCurrentWindowInternalSetSizeConstraintsFunction 134 class AppCurrentWindowInternalSetSizeConstraintsFunction
135 : public AppCurrentWindowInternalExtensionFunction { 135 : public AppCurrentWindowInternalExtensionFunction {
136 public: 136 public:
137 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setSizeConstraints", 137 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setSizeConstraints",
138 APP_CURRENTWINDOWINTERNAL_SETSIZECONSTRAINTS) 138 APP_CURRENTWINDOWINTERNAL_SETSIZECONSTRAINTS)
139 protected: 139 protected:
140 virtual ~AppCurrentWindowInternalSetSizeConstraintsFunction() {} 140 virtual ~AppCurrentWindowInternalSetSizeConstraintsFunction() {}
141 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 141 virtual bool RunWithWindow(AppWindow* window) override;
142 }; 142 };
143 143
144 class AppCurrentWindowInternalSetIconFunction 144 class AppCurrentWindowInternalSetIconFunction
145 : public AppCurrentWindowInternalExtensionFunction { 145 : public AppCurrentWindowInternalExtensionFunction {
146 public: 146 public:
147 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setIcon", 147 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setIcon",
148 APP_CURRENTWINDOWINTERNAL_SETICON) 148 APP_CURRENTWINDOWINTERNAL_SETICON)
149 149
150 protected: 150 protected:
151 virtual ~AppCurrentWindowInternalSetIconFunction() {} 151 virtual ~AppCurrentWindowInternalSetIconFunction() {}
152 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 152 virtual bool RunWithWindow(AppWindow* window) override;
153 }; 153 };
154 154
155 class AppCurrentWindowInternalSetBadgeIconFunction 155 class AppCurrentWindowInternalSetBadgeIconFunction
156 : public AppCurrentWindowInternalExtensionFunction { 156 : public AppCurrentWindowInternalExtensionFunction {
157 public: 157 public:
158 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setBadgeIcon", 158 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setBadgeIcon",
159 APP_CURRENTWINDOWINTERNAL_SETBADGEICON) 159 APP_CURRENTWINDOWINTERNAL_SETBADGEICON)
160 160
161 protected: 161 protected:
162 virtual ~AppCurrentWindowInternalSetBadgeIconFunction() {} 162 virtual ~AppCurrentWindowInternalSetBadgeIconFunction() {}
163 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 163 virtual bool RunWithWindow(AppWindow* window) override;
164 }; 164 };
165 165
166 class AppCurrentWindowInternalClearBadgeFunction 166 class AppCurrentWindowInternalClearBadgeFunction
167 : public AppCurrentWindowInternalExtensionFunction { 167 : public AppCurrentWindowInternalExtensionFunction {
168 public: 168 public:
169 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.clearBadge", 169 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.clearBadge",
170 APP_CURRENTWINDOWINTERNAL_CLEARBADGE) 170 APP_CURRENTWINDOWINTERNAL_CLEARBADGE)
171 171
172 protected: 172 protected:
173 virtual ~AppCurrentWindowInternalClearBadgeFunction() {} 173 virtual ~AppCurrentWindowInternalClearBadgeFunction() {}
174 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 174 virtual bool RunWithWindow(AppWindow* window) override;
175 }; 175 };
176 176
177 class AppCurrentWindowInternalSetShapeFunction 177 class AppCurrentWindowInternalSetShapeFunction
178 : public AppCurrentWindowInternalExtensionFunction { 178 : public AppCurrentWindowInternalExtensionFunction {
179 public: 179 public:
180 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setShape", 180 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setShape",
181 APP_CURRENTWINDOWINTERNAL_SETSHAPE) 181 APP_CURRENTWINDOWINTERNAL_SETSHAPE)
182 182
183 protected: 183 protected:
184 virtual ~AppCurrentWindowInternalSetShapeFunction() {} 184 virtual ~AppCurrentWindowInternalSetShapeFunction() {}
185 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 185 virtual bool RunWithWindow(AppWindow* window) override;
186 }; 186 };
187 187
188 class AppCurrentWindowInternalSetAlwaysOnTopFunction 188 class AppCurrentWindowInternalSetAlwaysOnTopFunction
189 : public AppCurrentWindowInternalExtensionFunction { 189 : public AppCurrentWindowInternalExtensionFunction {
190 public: 190 public:
191 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setAlwaysOnTop", 191 DECLARE_EXTENSION_FUNCTION("app.currentWindowInternal.setAlwaysOnTop",
192 APP_CURRENTWINDOWINTERNAL_SETALWAYSONTOP) 192 APP_CURRENTWINDOWINTERNAL_SETALWAYSONTOP)
193 193
194 protected: 194 protected:
195 virtual ~AppCurrentWindowInternalSetAlwaysOnTopFunction() {} 195 virtual ~AppCurrentWindowInternalSetAlwaysOnTopFunction() {}
196 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 196 virtual bool RunWithWindow(AppWindow* window) override;
197 }; 197 };
198 198
199 class AppCurrentWindowInternalSetVisibleOnAllWorkspacesFunction 199 class AppCurrentWindowInternalSetVisibleOnAllWorkspacesFunction
200 : public AppCurrentWindowInternalExtensionFunction { 200 : public AppCurrentWindowInternalExtensionFunction {
201 public: 201 public:
202 DECLARE_EXTENSION_FUNCTION( 202 DECLARE_EXTENSION_FUNCTION(
203 "app.currentWindowInternal.setVisibleOnAllWorkspaces", 203 "app.currentWindowInternal.setVisibleOnAllWorkspaces",
204 APP_CURRENTWINDOWINTERNAL_SETVISIBLEONALLWORKSPACES) 204 APP_CURRENTWINDOWINTERNAL_SETVISIBLEONALLWORKSPACES)
205 205
206 protected: 206 protected:
207 virtual ~AppCurrentWindowInternalSetVisibleOnAllWorkspacesFunction() {} 207 virtual ~AppCurrentWindowInternalSetVisibleOnAllWorkspacesFunction() {}
208 virtual bool RunWithWindow(AppWindow* window) OVERRIDE; 208 virtual bool RunWithWindow(AppWindow* window) override;
209 }; 209 };
210 210
211 } // namespace extensions 211 } // namespace extensions
212 212
213 #endif // EXTENSIONS_BROWSER_API_APP_CURRENT_WINDOW_INTERNAL_APP_CURRENT_WINDOW _INTERNAL_API_H_ 213 #endif // EXTENSIONS_BROWSER_API_APP_CURRENT_WINDOW_INTERNAL_APP_CURRENT_WINDOW _INTERNAL_API_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/api_resource_manager.h ('k') | extensions/browser/api/app_view/app_view_internal_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698