Chromium Code Reviews| 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_; |