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_THEME_INSTALLED_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 ThemeInstalledInfoBarDelegate(ExtensionService* extension_service, | 36 ThemeInstalledInfoBarDelegate(ExtensionService* extension_service, |
37 ThemeService* theme_service, | 37 ThemeService* theme_service, |
38 const extensions::Extension* new_theme, | 38 const extensions::Extension* new_theme, |
39 const std::string& previous_theme_id, | 39 const std::string& previous_theme_id, |
40 bool previous_using_system_theme); | 40 bool previous_using_system_theme); |
41 ~ThemeInstalledInfoBarDelegate() override; | 41 ~ThemeInstalledInfoBarDelegate() override; |
42 | 42 |
43 // ConfirmInfoBarDelegate: | 43 // ConfirmInfoBarDelegate: |
44 Type GetInfoBarType() const override; | 44 Type GetInfoBarType() const override; |
45 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; | 45 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
46 gfx::VectorIconId GetVectorIconId() const override; | 46 const gfx::VectorIcon& GetVectorIcon() const override; |
47 ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate() override; | 47 ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate() override; |
48 base::string16 GetMessageText() const override; | 48 base::string16 GetMessageText() const override; |
49 int GetButtons() const override; | 49 int GetButtons() const override; |
50 base::string16 GetButtonLabel(InfoBarButton button) const override; | 50 base::string16 GetButtonLabel(InfoBarButton button) const override; |
51 bool Cancel() override; | 51 bool Cancel() override; |
52 | 52 |
53 // content::NotificationObserver: | 53 // content::NotificationObserver: |
54 void Observe(int type, | 54 void Observe(int type, |
55 const content::NotificationSource& source, | 55 const content::NotificationSource& source, |
56 const content::NotificationDetails& details) override; | 56 const content::NotificationDetails& details) override; |
57 | 57 |
58 ExtensionService* extension_service_; | 58 ExtensionService* extension_service_; |
59 ThemeService* theme_service_; | 59 ThemeService* theme_service_; |
60 | 60 |
61 // Name of theme that's just been installed. | 61 // Name of theme that's just been installed. |
62 std::string name_; | 62 std::string name_; |
63 | 63 |
64 // ID of theme that's just been installed. | 64 // ID of theme that's just been installed. |
65 std::string theme_id_; | 65 std::string theme_id_; |
66 | 66 |
67 // Used to undo theme install. | 67 // Used to undo theme install. |
68 std::string previous_theme_id_; | 68 std::string previous_theme_id_; |
69 bool previous_using_system_theme_; | 69 bool previous_using_system_theme_; |
70 | 70 |
71 // Registers and unregisters us for notifications. | 71 // Registers and unregisters us for notifications. |
72 content::NotificationRegistrar registrar_; | 72 content::NotificationRegistrar registrar_; |
73 }; | 73 }; |
74 | 74 |
75 #endif // CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ | 75 #endif // CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ |
OLD | NEW |