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

Unified Diff: chrome/browser/ui/gtk/custom_button.h

Issue 8743021: GTK: Move to gtk_widget_get_allocation() for some of chrome/browser/ui/gtk/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: comment nit Created 9 years, 1 month 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/ui/gtk/browser_toolbar_gtk.cc ('k') | chrome/browser/ui/gtk/custom_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/custom_button.h
diff --git a/chrome/browser/ui/gtk/custom_button.h b/chrome/browser/ui/gtk/custom_button.h
index 4fb749c7293f84c8b64897cd44ae6b011c726d70..15d837e2c06d5d575962c4ed8b5cd26dde338864 100644
--- a/chrome/browser/ui/gtk/custom_button.h
+++ b/chrome/browser/ui/gtk/custom_button.h
@@ -169,15 +169,8 @@ class CustomDrawButton : public content::NotificationObserver {
GtkWidget* widget() const { return widget_.get(); }
- gfx::Rect bounds() const {
- return gfx::Rect(widget_->allocation.x,
- widget_->allocation.y,
- widget_->allocation.width,
- widget_->allocation.height);
- }
-
- int width() const { return widget_->allocation.width; }
- int height() const { return widget_->allocation.height; }
+ // Returns the width of the widget's allocation.
+ int WidgetWidth() const;
// Returns the dimensions of the first surface.
int SurfaceWidth() const;
« no previous file with comments | « chrome/browser/ui/gtk/browser_toolbar_gtk.cc ('k') | chrome/browser/ui/gtk/custom_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698