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

Unified Diff: mash/example/window_type_launcher/window_type_launcher.cc

Issue 2859193004: Remove GridLayout::SetInsets in favor of an empty border on the host. (Closed)
Patch Set: edits 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
Index: mash/example/window_type_launcher/window_type_launcher.cc
diff --git a/mash/example/window_type_launcher/window_type_launcher.cc b/mash/example/window_type_launcher/window_type_launcher.cc
index 8add499098ab42bb78100766fb0e16c3377597af..76efd2eb99c91b08c116701d660e6cf6e85578ec 100644
--- a/mash/example/window_type_launcher/window_type_launcher.cc
+++ b/mash/example/window_type_launcher/window_type_launcher.cc
@@ -267,8 +267,8 @@ class WindowTypeLauncherView : public views::WidgetDelegateView,
jank_button_(
MdTextButton::Create(this, base::ASCIIToUTF16("Jank for (s):"))),
jank_duration_field_(new views::Textfield) {
+ SetBorder(views::CreateEmptyBorder(gfx::Insets(5)));
views::GridLayout* layout = new views::GridLayout(this);
- layout->SetInsets(5, 5, 5, 5);
SetLayoutManager(layout);
views::ColumnSet* column_set = layout->AddColumnSet(0);
column_set->AddColumn(views::GridLayout::LEADING,

Powered by Google App Engine
This is Rietveld 408576698