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

Unified Diff: ui/views/test/test_views.cc

Issue 2439093002: Reland of "Added common layout framework for system menu rows." (Closed)
Patch Set: Addressed review comments. Created 4 years, 2 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 | « ui/views/test/test_views.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/test_views.cc
diff --git a/ui/views/test/test_views.cc b/ui/views/test/test_views.cc
index d0ad7d53186134e23fd4e6e6f76a2b7f9ded69d7..78239f384a4993997cda723d7da46b0b33fba3ef 100644
--- a/ui/views/test/test_views.cc
+++ b/ui/views/test/test_views.cc
@@ -10,17 +10,16 @@
namespace views {
-StaticSizedView::StaticSizedView(const gfx::Size& size)
+StaticSizedView::StaticSizedView(const gfx::Size& preferred_size)
// Default GetMinimumSize() is GetPreferredSize(). Default GetMaximumSize()
// is 0x0.
- : size_(size),
- minimum_size_(size) {
-}
+ : preferred_size_(preferred_size),
+ minimum_size_(preferred_size) {}
StaticSizedView::~StaticSizedView() {}
gfx::Size StaticSizedView::GetPreferredSize() const {
- return size_;
+ return preferred_size_;
}
gfx::Size StaticSizedView::GetMinimumSize() const {
« no previous file with comments | « ui/views/test/test_views.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698