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

Side by Side Diff: chrome/browser/extensions/extension_install_prompt.h

Issue 1926023003: Revert of MacViews: add extension install dialog to MacViewsWebUIDialogs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/ui/BUILD.gn » ('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_EXTENSION_INSTALL_PROMPT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 253
254 typedef base::Callback<void(ExtensionInstallPromptShowParams*, 254 typedef base::Callback<void(ExtensionInstallPromptShowParams*,
255 const DoneCallback&, 255 const DoneCallback&,
256 std::unique_ptr<ExtensionInstallPrompt::Prompt>)> 256 std::unique_ptr<ExtensionInstallPrompt::Prompt>)>
257 ShowDialogCallback; 257 ShowDialogCallback;
258 258
259 // Callback to show the default extension install dialog. 259 // Callback to show the default extension install dialog.
260 // The implementations of this function are platform-specific. 260 // The implementations of this function are platform-specific.
261 static ShowDialogCallback GetDefaultShowDialogCallback(); 261 static ShowDialogCallback GetDefaultShowDialogCallback();
262 262
263 // Callback to show the Views extension install dialog. Don't use this; it is
264 // a temporary hack for MacViews.
265 // TODO(ellyjones): Remove this.
266 #if defined(OS_MACOSX)
267 static ShowDialogCallback GetViewsShowDialogCallback();
268 #endif
269
270 // Returns the appropriate prompt type for the given |extension|. 263 // Returns the appropriate prompt type for the given |extension|.
271 // TODO(devlin): This method is yucky - callers probably only care about one 264 // TODO(devlin): This method is yucky - callers probably only care about one
272 // prompt type. We just need to comb through and figure out what it is. 265 // prompt type. We just need to comb through and figure out what it is.
273 static PromptType GetReEnablePromptTypeForExtension( 266 static PromptType GetReEnablePromptTypeForExtension(
274 content::BrowserContext* context, 267 content::BrowserContext* context,
275 const extensions::Extension* extension); 268 const extensions::Extension* extension);
276 269
277 // Creates a dummy extension from the |manifest|, replacing the name and 270 // Creates a dummy extension from the |manifest|, replacing the name and
278 // description with the localizations if provided. 271 // description with the localizations if provided.
279 static scoped_refptr<extensions::Extension> GetLocalizedExtensionForDisplay( 272 static scoped_refptr<extensions::Extension> GetLocalizedExtensionForDisplay(
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 379
387 // Whether or not the |show_dialog_callback_| was called. 380 // Whether or not the |show_dialog_callback_| was called.
388 bool did_call_show_dialog_; 381 bool did_call_show_dialog_;
389 382
390 base::WeakPtrFactory<ExtensionInstallPrompt> weak_factory_; 383 base::WeakPtrFactory<ExtensionInstallPrompt> weak_factory_;
391 384
392 DISALLOW_COPY_AND_ASSIGN(ExtensionInstallPrompt); 385 DISALLOW_COPY_AND_ASSIGN(ExtensionInstallPrompt);
393 }; 386 };
394 387
395 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_ 388 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_PROMPT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698