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 private: | 36 private: |
37 ThemeInstalledInfoBarDelegate(ExtensionService* extension_service, | 37 ThemeInstalledInfoBarDelegate(ExtensionService* extension_service, |
38 ThemeService* theme_service, | 38 ThemeService* theme_service, |
39 const extensions::Extension* new_theme, | 39 const extensions::Extension* new_theme, |
40 const std::string& previous_theme_id, | 40 const std::string& previous_theme_id, |
41 bool previous_using_system_theme); | 41 bool previous_using_system_theme); |
42 ~ThemeInstalledInfoBarDelegate() override; | 42 ~ThemeInstalledInfoBarDelegate() override; |
43 | 43 |
44 // ConfirmInfoBarDelegate: | 44 // ConfirmInfoBarDelegate: |
45 Type GetInfoBarType() const override; | 45 Type GetInfoBarType() const override; |
| 46 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
46 int GetIconId() const override; | 47 int GetIconId() const override; |
47 gfx::VectorIconId GetVectorIconId() const override; | 48 gfx::VectorIconId GetVectorIconId() const override; |
48 ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate() override; | 49 ThemeInstalledInfoBarDelegate* AsThemePreviewInfobarDelegate() override; |
49 base::string16 GetMessageText() const override; | 50 base::string16 GetMessageText() const override; |
50 int GetButtons() const override; | 51 int GetButtons() const override; |
51 base::string16 GetButtonLabel(InfoBarButton button) const override; | 52 base::string16 GetButtonLabel(InfoBarButton button) const override; |
52 bool Cancel() override; | 53 bool Cancel() override; |
53 | 54 |
54 // content::NotificationObserver: | 55 // content::NotificationObserver: |
55 void Observe(int type, | 56 void Observe(int type, |
(...skipping 11 matching lines...) Expand all Loading... |
67 | 68 |
68 // Used to undo theme install. | 69 // Used to undo theme install. |
69 std::string previous_theme_id_; | 70 std::string previous_theme_id_; |
70 bool previous_using_system_theme_; | 71 bool previous_using_system_theme_; |
71 | 72 |
72 // Registers and unregisters us for notifications. | 73 // Registers and unregisters us for notifications. |
73 content::NotificationRegistrar registrar_; | 74 content::NotificationRegistrar registrar_; |
74 }; | 75 }; |
75 | 76 |
76 #endif // CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ | 77 #endif // CHROME_BROWSER_EXTENSIONS_THEME_INSTALLED_INFOBAR_DELEGATE_H_ |
OLD | NEW |