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> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "chrome/browser/extensions/image_loading_tracker.h" | 14 #include "chrome/browser/extensions/image_loading_tracker.h" |
15 #include "chrome/common/extensions/url_pattern.h" | 15 #include "chrome/common/extensions/url_pattern.h" |
16 #include "third_party/skia/include/core/SkBitmap.h" | 16 #include "third_party/skia/include/core/SkBitmap.h" |
17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
18 | 18 |
19 class Browser; | 19 class Browser; |
20 class Extension; | 20 class Extension; |
21 class ExtensionPermissionSet; | 21 class ExtensionPermissionSet; |
22 class MessageLoop; | 22 class MessageLoop; |
23 class Profile; | 23 class Profile; |
24 class InfoBarDelegate; | 24 class InfoBarDelegate; |
25 class TabContents; | 25 class TabContents; |
26 | 26 |
27 // Displays all the UI around extension installation and uninstallation. | 27 // Displays all the UI around extension installation. |
28 class ExtensionInstallUI : public ImageLoadingTracker::Observer { | 28 class ExtensionInstallUI : public ImageLoadingTracker::Observer { |
29 public: | 29 public: |
30 enum PromptType { | 30 enum PromptType { |
31 UNSET_PROMPT_TYPE = -1, | 31 UNSET_PROMPT_TYPE = -1, |
32 INSTALL_PROMPT = 0, | 32 INSTALL_PROMPT = 0, |
33 INLINE_INSTALL_PROMPT, | 33 INLINE_INSTALL_PROMPT, |
34 RE_ENABLE_PROMPT, | 34 RE_ENABLE_PROMPT, |
35 PERMISSIONS_PROMPT, | 35 PERMISSIONS_PROMPT, |
36 NUM_PROMPT_TYPES | 36 NUM_PROMPT_TYPES |
37 }; | 37 }; |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // Keeps track of extension images being loaded on the File thread for the | 209 // Keeps track of extension images being loaded on the File thread for the |
210 // purpose of showing the install UI. | 210 // purpose of showing the install UI. |
211 ImageLoadingTracker tracker_; | 211 ImageLoadingTracker tracker_; |
212 | 212 |
213 // Whether to show an installed bubble on app install, or use the default | 213 // Whether to show an installed bubble on app install, or use the default |
214 // action of opening a new tab page. | 214 // action of opening a new tab page. |
215 bool use_app_installed_bubble_; | 215 bool use_app_installed_bubble_; |
216 }; | 216 }; |
217 | 217 |
218 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 218 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
OLD | NEW |