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