diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-19 21:21:27 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-19 21:21:27 +0000 |
commit | c9b04c8c62907e6c219708c37ccc72563852ced0 (patch) | |
tree | 95b452748bd6b81b2648609615d72fdf55f3bb97 /chrome/browser/gtk/browser_titlebar.h | |
parent | a937a06d92a426395c006ef8437e57db6be928be (diff) | |
download | chromium_src-c9b04c8c62907e6c219708c37ccc72563852ced0.zip chromium_src-c9b04c8c62907e6c219708c37ccc72563852ced0.tar.gz chromium_src-c9b04c8c62907e6c219708c37ccc72563852ced0.tar.bz2 |
Revert "GTK Theme: Make inactive titlebar legible."
This reverts commit 872a67636100b790dd034fe502e585d6a6abe716
(r23734). Use of notifications is questionable.
TBR=estade
Review URL: http://codereview.chromium.org/174087
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23744 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_titlebar.h')
-rw-r--r-- | chrome/browser/gtk/browser_titlebar.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/chrome/browser/gtk/browser_titlebar.h b/chrome/browser/gtk/browser_titlebar.h index 7263aec..29b3cb2 100644 --- a/chrome/browser/gtk/browser_titlebar.h +++ b/chrome/browser/gtk/browser_titlebar.h @@ -14,17 +14,13 @@ #include "base/scoped_ptr.h" #include "chrome/browser/gtk/menu_gtk.h" -#include "chrome/common/notification_observer.h" -#include "chrome/common/notification_registrar.h" class BrowserWindowGtk; class CustomDrawButton; -class GtkThemeProvider; class TabContents; class TabStripGtk; -class BrowserTitlebar : public MenuGtk::Delegate, - public NotificationObserver { +class BrowserTitlebar : public MenuGtk::Delegate { public: BrowserTitlebar(BrowserWindowGtk* browser_window, GtkWindow* window); virtual ~BrowserTitlebar() { } @@ -87,10 +83,6 @@ class BrowserTitlebar : public MenuGtk::Delegate, // Update the titlebar spacing based on the custom frame and maximized state. void UpdateTitlebarAlignment(); - // Updates the color of the title bar. Called whenever we have a state - // change in the window. - void UpdateTextColor(); - // Callback for changes to window state. This includes // maximizing/restoring/minimizing the window. static gboolean OnWindowStateChanged(GtkWindow* window, @@ -111,11 +103,6 @@ class BrowserTitlebar : public MenuGtk::Delegate, virtual bool IsItemChecked(int command_id) const; virtual void ExecuteCommand(int command_id); - // Overridden from NotificationObserver: - virtual void Observe(NotificationType type, - const NotificationSource& source, - const NotificationDetails& details); - // Pointers to the browser window that owns us and it's GtkWindow. BrowserWindowGtk* browser_window_; GtkWindow* window_; @@ -140,10 +127,6 @@ class BrowserTitlebar : public MenuGtk::Delegate, // Whether we are using a custom frame. bool using_custom_frame_; - // Whether we have focus (gtk_window_is_active() sometimes returns the wrong - // value, so manually track the focus-in and focus-out events.) - bool window_has_focus_; - // We change the size of these three buttons when the window is maximized, so // we use these structs to keep track of their original size. GtkRequisition close_button_req_; @@ -161,11 +144,6 @@ class BrowserTitlebar : public MenuGtk::Delegate, // The throbber used when the window is in app mode or popup window mode. Throbber throbber_; - - // Theme provider for building buttons. - GtkThemeProvider* theme_provider_; - - NotificationRegistrar registrar_; }; #endif // CHROME_BROWSER_GTK_BROWSER_TITLEBAR_H_ |