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..6f0b0ab325196a2b686a36e14131e6814bca76be 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 IsTypePanel(); |
| + |
| // Pointers to the browser window that owns us and it's GtkWindow. |
| BrowserWindowGtk* browser_window_; |
| GtkWindow* window_; |
| @@ -202,6 +210,10 @@ class BrowserTitlebar : public NotificationObserver, |
| GtkWidget* app_mode_favicon_; |
| GtkWidget* app_mode_title_; |
| + // Wrench icon for panels. This'll only appear when panel has focus or |
|
Evan Stade
2011/06/21 22:19:21
s/panel/a panel window/
(to make it clear to some
prasadt
2011/06/21 23:23:39
Done. My double space habit comes from when I fir
|
| + // mouse is in the panel. |
| + scoped_ptr<CustomDrawButton> panel_wrench_button_; |
| + |
| // Whether we are using a custom frame. |
| bool using_custom_frame_; |
| @@ -209,6 +221,10 @@ class BrowserTitlebar : public NotificationObserver, |
| // value, so manually track the focus-in and focus-out events.) |
| bool window_has_focus_; |
| + // Whether mouse is in the window. We show the wrench icon when panel has |
|
Evan Stade
2011/06/21 22:19:21
ditto
prasadt
2011/06/21 23:23:39
Done.
|
| + // focus or mouse is in the panel. |
| + bool window_has_mouse_; |
| + |
| // 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_; |