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

Side by Side Diff: chrome/browser/ui/views/content_setting_bubble_contents.cc

Issue 2934503002: Remove references to ui/views/layout/layout_constants.h (Closed)
Patch Set: Created 3 years, 6 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/content_setting_bubble_contents.h" 5 #include "chrome/browser/ui/views/content_setting_bubble_contents.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 using views::GridLayout; 206 using views::GridLayout;
207 207
208 GridLayout* layout = new views::GridLayout(this); 208 GridLayout* layout = new views::GridLayout(this);
209 SetLayoutManager(layout); 209 SetLayoutManager(layout);
210 const ChromeLayoutProvider* provider = ChromeLayoutProvider::Get(); 210 const ChromeLayoutProvider* provider = ChromeLayoutProvider::Get();
211 const int related_control_horizontal_spacing = 211 const int related_control_horizontal_spacing =
212 provider->GetDistanceMetric(views::DISTANCE_RELATED_CONTROL_HORIZONTAL); 212 provider->GetDistanceMetric(views::DISTANCE_RELATED_CONTROL_HORIZONTAL);
213 const int related_control_vertical_spacing = 213 const int related_control_vertical_spacing =
214 provider->GetDistanceMetric(views::DISTANCE_RELATED_CONTROL_VERTICAL); 214 provider->GetDistanceMetric(views::DISTANCE_RELATED_CONTROL_VERTICAL);
215 const int unrelated_control_vertical_spacing = 215 const int unrelated_control_vertical_spacing =
216 provider->GetDistanceMetric(DISTANCE_UNRELATED_CONTROL_VERTICAL); 216 provider->GetDistanceMetric(views::DISTANCE_UNRELATED_CONTROL_VERTICAL);
217 217
218 const int kSingleColumnSetId = 0; 218 const int kSingleColumnSetId = 0;
219 views::ColumnSet* column_set = layout->AddColumnSet(kSingleColumnSetId); 219 views::ColumnSet* column_set = layout->AddColumnSet(kSingleColumnSetId);
220 column_set->AddColumn(GridLayout::LEADING, GridLayout::FILL, 1, 220 column_set->AddColumn(GridLayout::LEADING, GridLayout::FILL, 1,
221 GridLayout::USE_PREF, 0, 0); 221 GridLayout::USE_PREF, 0, 0);
222 column_set->AddPaddingColumn(0, related_control_horizontal_spacing); 222 column_set->AddPaddingColumn(0, related_control_horizontal_spacing);
223 column_set->AddColumn(GridLayout::LEADING, GridLayout::FILL, 1, 223 column_set->AddColumn(GridLayout::LEADING, GridLayout::FILL, 1,
224 GridLayout::USE_PREF, 0, 0); 224 GridLayout::USE_PREF, 0, 0);
225 225
226 const ContentSettingBubbleModel::BubbleContent& bubble_content = 226 const ContentSettingBubbleModel::BubbleContent& bubble_content =
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 DCHECK(i != list_item_links_.end()); 509 DCHECK(i != list_item_links_.end());
510 content_setting_bubble_model_->OnListItemClicked(i->second); 510 content_setting_bubble_model_->OnListItemClicked(i->second);
511 } 511 }
512 512
513 void ContentSettingBubbleContents::OnPerformAction(views::Combobox* combobox) { 513 void ContentSettingBubbleContents::OnPerformAction(views::Combobox* combobox) {
514 MediaComboboxModel* model = 514 MediaComboboxModel* model =
515 static_cast<MediaComboboxModel*>(combobox->model()); 515 static_cast<MediaComboboxModel*>(combobox->model());
516 content_setting_bubble_model_->OnMediaMenuClicked( 516 content_setting_bubble_model_->OnMediaMenuClicked(
517 model->type(), model->GetDevices()[combobox->selected_index()].id); 517 model->type(), model->GetDevices()[combobox->selected_index()].id);
518 } 518 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/collected_cookies_views.cc ('k') | chrome/browser/ui/views/crypto_module_password_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698