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

Side by Side Diff: chrome/browser/extensions/api/developer_private/developer_private_api.h

Issue 12943010: Add native permissions dialog for apps_devtools app. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: reused the ReviewPermissions in extension_install_prompt.cc Created 7 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/developer_private/developer_private_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 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_
7 7
8 #include "chrome/browser/extensions/api/developer_private/entry_picker.h" 8 #include "chrome/browser/extensions/api/developer_private/entry_picker.h"
9 #include "chrome/browser/extensions/api/file_system/file_system_api.h" 9 #include "chrome/browser/extensions/api/file_system/file_system_api.h"
10 #include "chrome/browser/extensions/extension_function.h" 10 #include "chrome/browser/extensions/extension_function.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 DECLARE_EXTENSION_FUNCTION("developerPrivate.reload", 180 DECLARE_EXTENSION_FUNCTION("developerPrivate.reload",
181 DEVELOPERPRIVATE_RELOAD); 181 DEVELOPERPRIVATE_RELOAD);
182 182
183 protected: 183 protected:
184 virtual ~DeveloperPrivateReloadFunction(); 184 virtual ~DeveloperPrivateReloadFunction();
185 185
186 // ExtensionFunction: 186 // ExtensionFunction:
187 virtual bool RunImpl() OVERRIDE; 187 virtual bool RunImpl() OVERRIDE;
188 }; 188 };
189 189
190 class DeveloperPrivateShowPermissionsDialogFunction
191 : public SyncExtensionFunction,
192 public ExtensionInstallPrompt::Delegate {
193 public:
194 DECLARE_EXTENSION_FUNCTION("developerPrivate.showPermissionsDialog",
195 DEVELOPERPRIVATE_PERMISSIONS);
196
197 DeveloperPrivateShowPermissionsDialogFunction();
198 protected:
199 virtual ~DeveloperPrivateShowPermissionsDialogFunction();
200
201 // ExtensionFunction:
202 virtual bool RunImpl() OVERRIDE;
203
204 // Overridden from ExtensionInstallPrompt::Delegate
205 virtual void InstallUIProceed() OVERRIDE;
206 virtual void InstallUIAbort(bool user_initiated) OVERRIDE;
207
208 scoped_ptr<ExtensionInstallPrompt> prompt_;
209
210 };
211
190 class DeveloperPrivateRestartFunction : public SyncExtensionFunction { 212 class DeveloperPrivateRestartFunction : public SyncExtensionFunction {
191 public: 213 public:
192 DECLARE_EXTENSION_FUNCTION("developerPrivate.restart", 214 DECLARE_EXTENSION_FUNCTION("developerPrivate.restart",
193 DEVELOPERPRIVATE_RESTART); 215 DEVELOPERPRIVATE_RESTART);
194 216
195 protected: 217 protected:
196 virtual ~DeveloperPrivateRestartFunction(); 218 virtual ~DeveloperPrivateRestartFunction();
197 219
198 // ExtensionFunction: 220 // ExtensionFunction:
199 virtual bool RunImpl() OVERRIDE; 221 virtual bool RunImpl() OVERRIDE;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 327
306 // ExtensionFunction 328 // ExtensionFunction
307 virtual bool RunImpl() OVERRIDE; 329 virtual bool RunImpl() OVERRIDE;
308 }; 330 };
309 331
310 } // namespace api 332 } // namespace api
311 333
312 } // namespace extensions 334 } // namespace extensions
313 335
314 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_ 336 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API _H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/developer_private/developer_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698