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

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

Issue 67064: Implement tooltips for the Go/Stop button in Linux. (Closed)
Patch Set: Add a NULL check on location_bar_ for tests. Created 11 years, 8 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
« no previous file with comments | « chrome/browser/gtk/browser_toolbar_gtk.cc ('k') | chrome/browser/gtk/go_button_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/go_button_gtk.h
diff --git a/chrome/browser/gtk/go_button_gtk.h b/chrome/browser/gtk/go_button_gtk.h
index 047feec8ccf60e78d6818ac5b380877f3724d3b2..e69f842084bf836cbb6bc76fc8ff2c8fb61efddc 100644
--- a/chrome/browser/gtk/go_button_gtk.h
+++ b/chrome/browser/gtk/go_button_gtk.h
@@ -13,6 +13,7 @@
#include "chrome/common/owned_widget_gtk.h"
class Browser;
+class LocationBarViewGtk;
class Task;
class GoButtonGtk {
@@ -20,7 +21,7 @@ class GoButtonGtk {
enum Mode { MODE_GO = 0, MODE_STOP };
enum ButtonState { BS_NORMAL = 0, BS_HOT };
- explicit GoButtonGtk(Browser* browser);
+ GoButtonGtk(LocationBarViewGtk* location_bar, Browser* browser);
~GoButtonGtk();
GtkWidget* widget() const { return widget_.get(); }
@@ -46,8 +47,13 @@ class GoButtonGtk {
static gboolean OnLeave(GtkButton* widget, GoButtonGtk* button);
static gboolean OnClicked(GtkButton* widget, GoButtonGtk* button);
+ void SetToggled();
+
Task* CreateButtonTimerTask();
void OnButtonTimer();
+ void SetTooltip();
+
+ LocationBarViewGtk* const location_bar_;
// Keep a pointer to the Browser object to execute commands on it.
Browser* const browser_;
« no previous file with comments | « chrome/browser/gtk/browser_toolbar_gtk.cc ('k') | chrome/browser/gtk/go_button_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698