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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" | 9 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
10 #include "content/common/notification_observer.h" | 10 #include "content/common/notification_observer.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 private: | 41 private: |
42 // ConfirmInfoBarDelegate: | 42 // ConfirmInfoBarDelegate: |
43 virtual gfx::Image* GetIcon() const OVERRIDE; | 43 virtual gfx::Image* GetIcon() const OVERRIDE; |
44 virtual ThemeInstalledInfoBarDelegate* | 44 virtual ThemeInstalledInfoBarDelegate* |
45 AsThemePreviewInfobarDelegate() OVERRIDE; | 45 AsThemePreviewInfobarDelegate() OVERRIDE; |
46 virtual string16 GetMessageText() const OVERRIDE; | 46 virtual string16 GetMessageText() const OVERRIDE; |
47 virtual int GetButtons() const OVERRIDE; | 47 virtual int GetButtons() const OVERRIDE; |
48 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; | 48 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; |
49 | 49 |
50 // NotificationObserver: | 50 // NotificationObserver: |
51 virtual void Observe(NotificationType type, | 51 virtual void Observe(int type, |
52 const NotificationSource& source, | 52 const NotificationSource& source, |
53 const NotificationDetails& details) OVERRIDE; | 53 const NotificationDetails& details) OVERRIDE; |
54 | 54 |
55 Profile* profile_; | 55 Profile* profile_; |
56 ThemeService* theme_service_; | 56 ThemeService* theme_service_; |
57 | 57 |
58 // Name of theme that's just been installed. | 58 // Name of theme that's just been installed. |
59 std::string name_; | 59 std::string name_; |
60 | 60 |
61 // ID of theme that's just been installed. | 61 // ID of theme that's just been installed. |
62 std::string theme_id_; | 62 std::string theme_id_; |
63 | 63 |
64 // Used to undo theme install. | 64 // Used to undo theme install. |
65 std::string previous_theme_id_; | 65 std::string previous_theme_id_; |
66 bool previous_using_native_theme_; | 66 bool previous_using_native_theme_; |
67 | 67 |
68 // Tab to which this info bar is associated. | 68 // Tab to which this info bar is associated. |
69 TabContents* tab_contents_; | 69 TabContents* tab_contents_; |
70 | 70 |
71 // Registers and unregisters us for notifications. | 71 // Registers and unregisters us for notifications. |
72 NotificationRegistrar registrar_; | 72 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 |