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