Chromium Code Reviews| Index: chrome/browser/ui/gtk/browser_titlebar.h |
| diff --git a/chrome/browser/ui/gtk/browser_titlebar.h b/chrome/browser/ui/gtk/browser_titlebar.h |
| index b7e982c2967d62b74fe312657dc74ed891d05ca6..d7642d2a9a4ddeb7589a1a3a56877e11f82a3571 100644 |
| --- a/chrome/browser/ui/gtk/browser_titlebar.h |
| +++ b/chrome/browser/ui/gtk/browser_titlebar.h |
| @@ -109,7 +109,7 @@ class BrowserTitlebar : public NotificationObserver, |
| // the button into, and a tooltip id (IDS_). |
| CustomDrawButton* BuildTitlebarButton(int image, int image_pressed, |
| int image_hot, GtkWidget* box, |
| - int tooltip); |
| + bool start, int tooltip); |
| // Update the titlebar spacing based on the custom frame and maximized state. |
| void UpdateTitlebarAlignment(); |
| @@ -138,6 +138,12 @@ class BrowserTitlebar : public NotificationObserver, |
| CHROMEGTK_CALLBACK_1(BrowserTitlebar, gboolean, OnScroll, |
| GdkEventScroll*); |
| + // Callbacks for mouse enter leave events. |
| + CHROMEGTK_CALLBACK_1(BrowserTitlebar, gboolean, OnEnterNotify, |
| + GdkEventCrossing*); |
| + CHROMEGTK_CALLBACK_1(BrowserTitlebar, gboolean, OnLeaveNotify, |
| + GdkEventCrossing*); |
| + |
| // Callback for min/max/close buttons. |
| CHROMEGTK_CALLBACK_0(BrowserTitlebar, void, OnButtonClicked); |
| @@ -162,6 +168,8 @@ class BrowserTitlebar : public NotificationObserver, |
| // Overriden from ActiveWindowWatcher::Observer. |
| virtual void ActiveWindowChanged(GdkWindow* active_window); |
| + bool is_type_panel(); |
|
Evan Stade
2011/06/21 02:58:08
c-style capitalization indicates a simple getter (
prasadt
2011/06/21 18:21:06
Done.
|
| + |
| // Pointers to the browser window that owns us and it's GtkWindow. |
| BrowserWindowGtk* browser_window_; |
| GtkWindow* window_; |
| @@ -202,12 +210,15 @@ class BrowserTitlebar : public NotificationObserver, |
| GtkWidget* app_mode_favicon_; |
| GtkWidget* app_mode_title_; |
| + scoped_ptr<CustomDrawButton> panel_wrench_button_; |
|
Evan Stade
2011/06/21 02:58:08
please comment this variable
prasadt
2011/06/21 18:21:06
Done.
|
| + |
| // 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_; |
| + bool window_has_mouse_; |
|
Evan Stade
2011/06/21 02:58:08
please comment this variable
prasadt
2011/06/21 18:21:06
Done.
|
| // 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. |