Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(593)

Unified Diff: chrome/browser/ui/gtk/custom_button.h

Issue 7809007: GTK: Clean up the gtk extension infobar implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/custom_button.h
diff --git a/chrome/browser/ui/gtk/custom_button.h b/chrome/browser/ui/gtk/custom_button.h
index 22b19369d6bb11a974d44dd7c88e53310fd63a48..d4c77377dd2b509ca4140b14208eb13b6195f146 100644
--- a/chrome/browser/ui/gtk/custom_button.h
+++ b/chrome/browser/ui/gtk/custom_button.h
@@ -158,6 +158,10 @@ class CustomDrawButton : public NotificationObserver {
void Init();
+ // Make this CustomDrawButton always use the chrome style rendering; it will
+ // never render gtk-like.
+ void ForceChromeTheme();
+
// Flip the image horizontally. Not to be used for RTL/LTR reasons. (In RTL
// mode, this will unflip the image.)
void set_flipped(bool flipped) { button_base_.set_flipped(flipped); }
@@ -222,6 +226,10 @@ class CustomDrawButton : public NotificationObserver {
// Our theme provider.
GtkThemeService* theme_service_;
+ // Some buttons are always drawn in chrome style because they are part of
+ // HTML extensions.
Evan Stade 2011/08/31 20:00:12 explaining the current use of this var is a little
+ bool forcing_chrome_theme_;
+
// Used to listen for theme change notifications.
NotificationRegistrar registrar_;
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/custom_button.cc » ('j') | chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698