Chromium Code Reviews| 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..c416572793a4e7ec63a2e5370a36f405aa64db0c 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 dimensions of the widget's allocation. |
|
Evan Stade
2011/11/30 23:02:37
s/dimensions/width
|
| + int WidgetWidth() const; |
| // Returns the dimensions of the first surface. |
| int SurfaceWidth() const; |