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

Side by Side Diff: chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc

Issue 2779973003: views: fold layout_utils::CreatePanelLayout into GridLayout::CreatePanel (Closed)
Patch Set: remove old DEPS entry Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/extensions/media_galleries_dialog_views.h" 5 #include "chrome/browser/ui/views/extensions/media_galleries_dialog_views.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 93
94 void MediaGalleriesDialogViews::InitChildViews() { 94 void MediaGalleriesDialogViews::InitChildViews() {
95 // Outer dialog layout. 95 // Outer dialog layout.
96 contents_->RemoveAllChildViews(true); 96 contents_->RemoveAllChildViews(true);
97 checkbox_map_.clear(); 97 checkbox_map_.clear();
98 98
99 int dialog_content_width = views::Widget::GetLocalizedContentsWidth( 99 int dialog_content_width = views::Widget::GetLocalizedContentsWidth(
100 IDS_MEDIA_GALLERIES_DIALOG_CONTENT_WIDTH_CHARS); 100 IDS_MEDIA_GALLERIES_DIALOG_CONTENT_WIDTH_CHARS);
101 views::GridLayout* layout = views::GridLayout::CreatePanel(contents_); 101 views::GridLayout* layout = views::GridLayout::CreatePanel(contents_);
102 contents_->SetLayoutManager(layout);
103 102
104 int column_set_id = 0; 103 int column_set_id = 0;
105 views::ColumnSet* columns = layout->AddColumnSet(column_set_id); 104 views::ColumnSet* columns = layout->AddColumnSet(column_set_id);
106 columns->AddColumn(views::GridLayout::LEADING, 105 columns->AddColumn(views::GridLayout::LEADING,
107 views::GridLayout::LEADING, 106 views::GridLayout::LEADING,
108 1, 107 1,
109 views::GridLayout::FIXED, 108 views::GridLayout::FIXED,
110 dialog_content_width, 109 dialog_content_width,
111 0); 110 0);
112 111
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 context_menu_runner_.reset(); 321 context_menu_runner_.reset();
323 } 322 }
324 323
325 // MediaGalleriesDialogViewsController ----------------------------------------- 324 // MediaGalleriesDialogViewsController -----------------------------------------
326 325
327 // static 326 // static
328 MediaGalleriesDialog* MediaGalleriesDialog::Create( 327 MediaGalleriesDialog* MediaGalleriesDialog::Create(
329 MediaGalleriesDialogController* controller) { 328 MediaGalleriesDialogController* controller) {
330 return new MediaGalleriesDialogViews(controller); 329 return new MediaGalleriesDialogViews(controller);
331 } 330 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_danger_prompt_views.cc ('k') | chrome/browser/ui/views/first_run_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698