| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 ~Prompt(); | 46 ~Prompt(); |
| 47 | 47 |
| 48 void SetPermissions(std::vector<string16> permissions); | 48 void SetPermissions(std::vector<string16> permissions); |
| 49 void SetInlineInstallWebstoreData(std::string localized_user_count, | 49 void SetInlineInstallWebstoreData(std::string localized_user_count, |
| 50 double average_rating, | 50 double average_rating, |
| 51 int rating_count); | 51 int rating_count); |
| 52 | 52 |
| 53 PromptType type() const { return type_; } | 53 PromptType type() const { return type_; } |
| 54 | 54 |
| 55 // Getters for UI element labels. | 55 // Getters for UI element labels. |
| 56 string16 GetDialogTitle() const; | 56 string16 GetDialogTitle(const Extension* extension) const; |
| 57 string16 GetHeading(std::string extension_name) const; | 57 string16 GetHeading(std::string extension_name) const; |
| 58 string16 GetAcceptButtonLabel() const; | 58 string16 GetAcceptButtonLabel() const; |
| 59 bool HasAbortButtonLabel() const; | 59 bool HasAbortButtonLabel() const; |
| 60 string16 GetAbortButtonLabel() const; | 60 string16 GetAbortButtonLabel() const; |
| 61 string16 GetPermissionsHeader() const; | 61 string16 GetPermissionsHeader() const; |
| 62 | 62 |
| 63 // Getters for webstore metadata. Only populated when the type is | 63 // Getters for webstore metadata. Only populated when the type is |
| 64 // INLINE_INSTALL_PROMPT. | 64 // INLINE_INSTALL_PROMPT. |
| 65 | 65 |
| 66 // The star display logic replicates the one used by the webstore (from | 66 // The star display logic replicates the one used by the webstore (from |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 218 |
| 219 // 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 |
| 220 // action of opening a new tab page. | 220 // action of opening a new tab page. |
| 221 bool use_app_installed_bubble_; | 221 bool use_app_installed_bubble_; |
| 222 | 222 |
| 223 // Whether or not to show the default UI after completing the installation. | 223 // Whether or not to show the default UI after completing the installation. |
| 224 bool skip_post_install_ui_; | 224 bool skip_post_install_ui_; |
| 225 }; | 225 }; |
| 226 | 226 |
| 227 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 227 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| OLD | NEW |