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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_install_prompt_test_utils.h

Issue 65043015: [mac] Implement a windowed extension install/permissions prompt. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 7 years 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 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_PROMPT_TEST_UTILS_H _ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_PROMPT_TEST_UTILS_H _
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_PROMPT_TEST_UTILS_H _ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_PROMPT_TEST_UTILS_H _
7 7
8 #include "chrome/browser/extensions/extension_install_prompt.h" 8 #include "chrome/browser/extensions/extension_install_prompt.h"
9 9
10 namespace chrome { 10 namespace chrome {
(...skipping 12 matching lines...) Expand all
23 virtual void InstallUIAbort(bool user_initiated) OVERRIDE; 23 virtual void InstallUIAbort(bool user_initiated) OVERRIDE;
24 24
25 int proceed_count() { return proceed_count_; } 25 int proceed_count() { return proceed_count_; }
26 int abort_count() { return abort_count_; } 26 int abort_count() { return abort_count_; }
27 27
28 protected: 28 protected:
29 int proceed_count_; 29 int proceed_count_;
30 int abort_count_; 30 int abort_count_;
31 }; 31 };
32 32
33 // Loads the install prompt test extension. 33 // Loads the test extension from the given test directory and manifest file.
34 scoped_refptr<extensions::Extension> LoadInstallPromptExtension(
35 const char* extension_dir_name,
36 const char* manifest_file);
37
38 // Loads the default install_prompt test extension.
34 scoped_refptr<extensions::Extension> LoadInstallPromptExtension(); 39 scoped_refptr<extensions::Extension> LoadInstallPromptExtension();
35 40
36 // Loads the icon for the install prompt extension. 41 // Loads the icon for the install prompt extension.
37 gfx::Image LoadInstallPromptIcon(); 42 gfx::Image LoadInstallPromptIcon();
38 43
39 // Builds a prompt using the given extension. 44 // Builds a prompt using the given extension.
40 ExtensionInstallPrompt::Prompt BuildExtensionInstallPrompt( 45 ExtensionInstallPrompt::Prompt BuildExtensionInstallPrompt(
41 extensions::Extension* extension); 46 extensions::Extension* extension);
42 47
43 ExtensionInstallPrompt::Prompt BuildExtensionPostInstallPermissionsPrompt( 48 ExtensionInstallPrompt::Prompt BuildExtensionPostInstallPermissionsPrompt(
44 extensions::Extension* extension); 49 extensions::Extension* extension);
45 50
46 } // namespace chrome 51 } // namespace chrome
47 52
48 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_PROMPT_TEST_UTIL S_H_ 53 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_INSTALL_PROMPT_TEST_UTIL S_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698