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

Unified Diff: ash/frame/caption_buttons/frame_caption_button.h

Issue 2901503003: Rename GetPreferredSize to CalculatePreferredSize in ash/ (Closed)
Patch Set: improvements Created 3 years, 7 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 | « ash/autoclick/common/autoclick_ring_handler.cc ('k') | ash/frame/caption_buttons/frame_caption_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/frame/caption_buttons/frame_caption_button.h
diff --git a/ash/frame/caption_buttons/frame_caption_button.h b/ash/frame/caption_buttons/frame_caption_button.h
index d92afea9c6fc7ac6737c81f96f458f0d34f1b67b..9b80522e2f5ef92a75bc0e11a3a29166acdc2fe6 100644
--- a/ash/frame/caption_buttons/frame_caption_button.h
+++ b/ash/frame/caption_buttons/frame_caption_button.h
@@ -47,7 +47,6 @@ class ASH_EXPORT FrameCaptionButton : public views::CustomButton {
void SetAlpha(int alpha);
// views::View overrides:
- gfx::Size GetPreferredSize() const override;
const char* GetClassName() const override;
void OnPaint(gfx::Canvas* canvas) override;
@@ -59,8 +58,6 @@ class ASH_EXPORT FrameCaptionButton : public views::CustomButton {
CaptionButtonIcon icon() const { return icon_; }
- void set_size(const gfx::Size& size) { size_ = size; }
-
protected:
// views::CustomButton override:
void OnGestureEvent(ui::GestureEvent* event) override;
@@ -73,9 +70,6 @@ class ASH_EXPORT FrameCaptionButton : public views::CustomButton {
// The button's current icon.
CaptionButtonIcon icon_;
- // The size of the button.
- gfx::Size size_;
-
// Whether the button should be painted as active.
bool paint_as_active_;
« no previous file with comments | « ash/autoclick/common/autoclick_ring_handler.cc ('k') | ash/frame/caption_buttons/frame_caption_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698