| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GTK_THEME_INSTALLED_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_GTK_THEME_INSTALLED_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_GTK_THEME_INSTALLED_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_GTK_THEME_INSTALLED_INFOBAR_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/extensions/theme_installed_infobar_delegate.h" | 9 #include "chrome/browser/extensions/theme_installed_infobar_delegate.h" |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 class Extension; | 13 class Extension; |
| 14 class SkBitmap; | |
| 15 class TabContents; | 14 class TabContents; |
| 16 | 15 |
| 17 // A specialization of ThemeInstalledInfoBarDelegate to make "Undo" reset to the | 16 // A specialization of ThemeInstalledInfoBarDelegate to make "Undo" reset to the |
| 18 // GTK theme if the user was in GTK theme mode before installing the theme. | 17 // GTK theme if the user was in GTK theme mode before installing the theme. |
| 19 class GtkThemeInstalledInfoBarDelegate : public ThemeInstalledInfoBarDelegate { | 18 class GtkThemeInstalledInfoBarDelegate : public ThemeInstalledInfoBarDelegate { |
| 20 public: | 19 public: |
| 21 GtkThemeInstalledInfoBarDelegate(TabContents* tab_contents, | 20 GtkThemeInstalledInfoBarDelegate(TabContents* tab_contents, |
| 22 const Extension* new_theme, | 21 const Extension* new_theme, |
| 23 const std::string& previous_theme_id, | 22 const std::string& previous_theme_id, |
| 24 bool previous_use_gtk_theme); | 23 bool previous_use_gtk_theme); |
| 25 virtual bool Cancel(); | 24 virtual bool Cancel(); |
| 26 | 25 |
| 27 private: | 26 private: |
| 28 bool previous_use_gtk_theme_; | 27 bool previous_use_gtk_theme_; |
| 29 }; | 28 }; |
| 30 | 29 |
| 31 #endif // CHROME_BROWSER_EXTENSIONS_GTK_THEME_INSTALLED_INFOBAR_DELEGATE_H_ | 30 #endif // CHROME_BROWSER_EXTENSIONS_GTK_THEME_INSTALLED_INFOBAR_DELEGATE_H_ |
| OLD | NEW |