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

Unified Diff: ash/shell/window_type_launcher.cc

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/shell/widgets.cc ('k') | ash/system/ime_menu/ime_menu_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/window_type_launcher.cc
diff --git a/ash/shell/window_type_launcher.cc b/ash/shell/window_type_launcher.cc
index bc25b7992134d1cef7661ba83375cfe33b30c3cb..bc8e9f4b35b5be7183959195628628fea7436937 100644
--- a/ash/shell/window_type_launcher.cc
+++ b/ash/shell/window_type_launcher.cc
@@ -66,7 +66,9 @@ class ModalWindow : public views::WidgetDelegateView,
void OnPaint(gfx::Canvas* canvas) override {
canvas->FillRect(GetLocalBounds(), color_);
}
- gfx::Size GetPreferredSize() const override { return gfx::Size(200, 200); }
+ gfx::Size CalculatePreferredSize() const override {
+ return gfx::Size(200, 200);
+ }
void Layout() override {
gfx::Size open_ps = open_button_->GetPreferredSize();
gfx::Rect local_bounds = GetLocalBounds();
@@ -125,7 +127,9 @@ class NonModalTransient : public views::WidgetDelegateView {
void OnPaint(gfx::Canvas* canvas) override {
canvas->FillRect(GetLocalBounds(), color_);
}
- gfx::Size GetPreferredSize() const override { return gfx::Size(250, 250); }
+ gfx::Size CalculatePreferredSize() const override {
+ return gfx::Size(250, 250);
+ }
// Overridden from views::WidgetDelegate:
bool CanResize() const override { return true; }
« no previous file with comments | « ash/shell/widgets.cc ('k') | ash/system/ime_menu/ime_menu_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698