Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 109 virtual ~ExtensionInstallUI(); | 109 virtual ~ExtensionInstallUI(); |
| 110 | 110 |
| 111 // TODO(asargent) Normally we navigate to the new tab page when an app is | 111 // TODO(asargent) Normally we navigate to the new tab page when an app is |
| 112 // installed, but we're experimenting with instead showing a bubble when | 112 // installed, but we're experimenting with instead showing a bubble when |
| 113 // an app is installed which points to the new tab button. This may become | 113 // an app is installed which points to the new tab button. This may become |
| 114 // the default behavior in the future. | 114 // the default behavior in the future. |
| 115 void set_use_app_installed_bubble(bool use_bubble) { | 115 void set_use_app_installed_bubble(bool use_bubble) { |
| 116 use_app_installed_bubble_ = use_bubble; | 116 use_app_installed_bubble_ = use_bubble; |
| 117 } | 117 } |
| 118 | 118 |
| 119 // Whether or not to show the default UI after completing the installation. | |
|
Aaron Boodman
2011/11/01 17:24:34
Consider combining these two booleans flags into a
jstritar
2011/11/01 19:43:05
The use_app_installed_bubble only applies to apps
| |
| 120 void set_skip_post_install_ui(bool is_bundle) { | |
| 121 skip_post_install_ui_ = is_bundle; | |
| 122 } | |
| 123 | |
| 119 // This is called by the installer to verify whether the installation should | 124 // This is called by the installer to verify whether the installation should |
| 120 // proceed. This is declared virtual for testing. | 125 // proceed. This is declared virtual for testing. |
| 121 // | 126 // |
| 122 // We *MUST* eventually call either Proceed() or Abort() on |delegate|. | 127 // We *MUST* eventually call either Proceed() or Abort() on |delegate|. |
| 123 virtual void ConfirmInstall(Delegate* delegate, const Extension* extension); | 128 virtual void ConfirmInstall(Delegate* delegate, const Extension* extension); |
| 124 | 129 |
| 125 // This is called by the app handler launcher to verify whether the app | 130 // This is called by the app handler launcher to verify whether the app |
| 126 // should be re-enabled. This is declared virtual for testing. | 131 // should be re-enabled. This is declared virtual for testing. |
| 127 // | 132 // |
| 128 // We *MUST* eventually call either Proceed() or Abort() on |delegate|. | 133 // We *MUST* eventually call either Proceed() or Abort() on |delegate|. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 207 // The type of prompt we are going to show. | 212 // The type of prompt we are going to show. |
| 208 PromptType prompt_type_; | 213 PromptType prompt_type_; |
| 209 | 214 |
| 210 // Keeps track of extension images being loaded on the File thread for the | 215 // Keeps track of extension images being loaded on the File thread for the |
| 211 // purpose of showing the install UI. | 216 // purpose of showing the install UI. |
| 212 ImageLoadingTracker tracker_; | 217 ImageLoadingTracker tracker_; |
| 213 | 218 |
| 214 // Whether to show an installed bubble on app install, or use the default | 219 // Whether to show an installed bubble on app install, or use the default |
| 215 // action of opening a new tab page. | 220 // action of opening a new tab page. |
| 216 bool use_app_installed_bubble_; | 221 bool use_app_installed_bubble_; |
| 222 | |
| 223 // Whether or not to show the default UI after completing the installation. | |
| 224 bool skip_post_install_ui_; | |
| 217 }; | 225 }; |
| 218 | 226 |
| 219 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 227 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| OLD | NEW |