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

Side by Side Diff: chrome/browser/gtk/browser_toolbar_gtk.h

Issue 3029032: Cleanup: Rename gtk button state names to (a) match other platforms and (b) n... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_
6 #define CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ 6 #define CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // AnimationDelegate implementation ------------------------------------------ 114 // AnimationDelegate implementation ------------------------------------------
115 virtual void AnimationEnded(const Animation* animation); 115 virtual void AnimationEnded(const Animation* animation);
116 virtual void AnimationProgressed(const Animation* animation); 116 virtual void AnimationProgressed(const Animation* animation);
117 virtual void AnimationCanceled(const Animation* animation); 117 virtual void AnimationCanceled(const Animation* animation);
118 118
119 // ActiveWindowWatcher::Observer implementation ------------------------------ 119 // ActiveWindowWatcher::Observer implementation ------------------------------
120 virtual void ActiveWindowChanged(GdkWindow* active_window); 120 virtual void ActiveWindowChanged(GdkWindow* active_window);
121 121
122 private: 122 private:
123 // Builds a toolbar button with all the properties set.
124 // |spacing| is the width of padding (in pixels) on the left and right of the
125 // button.
126 CustomDrawButton* BuildToolbarButton(int normal_id,
127 int active_id,
128 int highlight_id,
129 int depressed_id,
130 int background_id,
131 const std::string& localized_tooltip,
132 const char* stock_id,
133 int spacing);
134
135 // Create a menu for the toolbar given the icon id and tooltip. Returns the 123 // Create a menu for the toolbar given the icon id and tooltip. Returns the
136 // widget created. 124 // widget created.
137 GtkWidget* BuildToolbarMenuButton(const std::string& localized_tooltip, 125 GtkWidget* BuildToolbarMenuButton(const std::string& localized_tooltip,
138 OwnedWidgetGtk* owner); 126 OwnedWidgetGtk* owner);
139 127
140 // Connect/Disconnect signals for dragging a url onto the home button. 128 // Connect/Disconnect signals for dragging a url onto the home button.
141 void SetUpDragForHomeButton(bool enable); 129 void SetUpDragForHomeButton(bool enable);
142 130
143 // Sets the top corners of the toolbar to rounded, or sets them to normal, 131 // Sets the top corners of the toolbar to rounded, or sets them to normal,
144 // depending on the state of the browser window. Returns false if no action 132 // depending on the state of the browser window. Returns false if no action
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 244
257 ThrobAnimation upgrade_reminder_animation_; 245 ThrobAnimation upgrade_reminder_animation_;
258 246
259 // We have already shown and dismissed the upgrade reminder animation. 247 // We have already shown and dismissed the upgrade reminder animation.
260 bool upgrade_reminder_canceled_; 248 bool upgrade_reminder_canceled_;
261 249
262 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk); 250 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk);
263 }; 251 };
264 252
265 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_ 253 #endif // CHROME_BROWSER_GTK_BROWSER_TOOLBAR_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/back_forward_button_gtk.cc ('k') | chrome/browser/gtk/browser_toolbar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698