| Index: chrome/browser/ui/gtk/custom_button.cc
|
| ===================================================================
|
| --- chrome/browser/ui/gtk/custom_button.cc (revision 91880)
|
| +++ chrome/browser/ui/gtk/custom_button.cc (working copy)
|
| @@ -39,7 +39,7 @@
|
| theme_provider->InitThemesFor(this);
|
|
|
| registrar_.Add(this,
|
| - NotificationType::BROWSER_THEME_CHANGED,
|
| + chrome::NOTIFICATION_BROWSER_THEME_CHANGED,
|
| NotificationService::AllSources());
|
| } else {
|
| // Load the button images from the resource bundle.
|
| @@ -140,10 +140,10 @@
|
| }
|
| }
|
|
|
| -void CustomDrawButtonBase::Observe(NotificationType type,
|
| +void CustomDrawButtonBase::Observe(int type,
|
| const NotificationSource& source, const NotificationDetails& details) {
|
| DCHECK(theme_service_);
|
| - DCHECK(NotificationType::BROWSER_THEME_CHANGED == type);
|
| + DCHECK(chrome::NOTIFICATION_BROWSER_THEME_CHANGED == type);
|
|
|
| surfaces_[GTK_STATE_NORMAL]->UsePixbuf(normal_id_ ?
|
| theme_service_->GetRTLEnabledPixbufNamed(normal_id_) : NULL);
|
| @@ -244,7 +244,7 @@
|
|
|
| theme_service_->InitThemesFor(this);
|
| registrar_.Add(this,
|
| - NotificationType::BROWSER_THEME_CHANGED,
|
| + chrome::NOTIFICATION_BROWSER_THEME_CHANGED,
|
| NotificationService::AllSources());
|
| }
|
|
|
| @@ -262,7 +262,7 @@
|
|
|
| theme_service_->InitThemesFor(this);
|
| registrar_.Add(this,
|
| - NotificationType::BROWSER_THEME_CHANGED,
|
| + chrome::NOTIFICATION_BROWSER_THEME_CHANGED,
|
| NotificationService::AllSources());
|
| }
|
|
|
| @@ -279,9 +279,9 @@
|
| hover_controller_.Init(widget());
|
| }
|
|
|
| -void CustomDrawButton::Observe(NotificationType type,
|
| +void CustomDrawButton::Observe(int type,
|
| const NotificationSource& source, const NotificationDetails& details) {
|
| - DCHECK(NotificationType::BROWSER_THEME_CHANGED == type);
|
| + DCHECK(chrome::NOTIFICATION_BROWSER_THEME_CHANGED == type);
|
| SetBrowserTheme();
|
| }
|
|
|
|
|