summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/gtk_theme_preview_infobar_delegate.h
blob: cfc213de0c61b34198d108f78a486a2606fe2f16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_VIEWS_EXTENSIONS_GTK_THEME_PREVIEW_INFOBAR_DELEGATE_H_
#define CHROME_BROWSER_VIEWS_EXTENSIONS_GTK_THEME_PREVIEW_INFOBAR_DELEGATE_H_

#include "chrome/browser/extensions/theme_preview_infobar_delegate.h"

class SkBitmap;
class TabContents;

// A specialization of ThemePreviewInfobarDelegate to make "Undo" reset to the
// GTK theme if the user was in GTK theme mode before installing the theme.
class GtkThemePreviewInfobarDelegate : public ThemePreviewInfobarDelegate {
 public:
  GtkThemePreviewInfobarDelegate(TabContents* tab_contents,
                                 const std::string& name,
                                 const std::string& previous_theme,
                                 bool previous_use_gtk_theme);
  virtual bool Cancel();

 private:
  bool previous_use_gtk_theme_;
};

#endif  // CHROME_BROWSER_VIEWS_EXTENSIONS_GTK_THEME_PREVIEW_INFOBAR_DELEGATE_H_