Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Unified Diff: chrome/browser/gtk/browser_actions_toolbar_gtk.h

Issue 2861040: Hide the browser actions gripper when it's not in use. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: fix fixme Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/gtk/browser_actions_toolbar_gtk.h
diff --git a/chrome/browser/gtk/browser_actions_toolbar_gtk.h b/chrome/browser/gtk/browser_actions_toolbar_gtk.h
index 467d9ea4fb4b050615b703f4e8f57cdc88200c1f..e26b55585f9c06e53f0a03cf129a4c72facfca2f 100644
--- a/chrome/browser/gtk/browser_actions_toolbar_gtk.h
+++ b/chrome/browser/gtk/browser_actions_toolbar_gtk.h
@@ -195,6 +195,10 @@ class BrowserActionsToolbarGtk : public ExtensionToolbarModel::Observer,
// This is the width we were at when we started animating.
int start_width_;
+ // We only draw the browser action gripper when the user is hovering over it
+ // or dragging it.
+ bool draw_gripper_;
+
GtkSignalRegistrar signals_;
ScopedRunnableMethodFactory<BrowserActionsToolbarGtk> method_factory_;
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_actions_toolbar_gtk.cc » ('j') | chrome/browser/gtk/browser_actions_toolbar_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698