OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/options/cookies_view.h" | 5 #include "chrome/browser/ui/views/options/cookies_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 remove_button_ = new views::NativeButton( | 313 remove_button_ = new views::NativeButton( |
314 this, | 314 this, |
315 UTF16ToWide(l10n_util::GetStringUTF16(IDS_COOKIES_REMOVE_LABEL))); | 315 UTF16ToWide(l10n_util::GetStringUTF16(IDS_COOKIES_REMOVE_LABEL))); |
316 remove_all_button_ = new views::NativeButton( | 316 remove_all_button_ = new views::NativeButton( |
317 this, | 317 this, |
318 UTF16ToWide(l10n_util::GetStringUTF16(IDS_COOKIES_REMOVE_ALL_LABEL))); | 318 UTF16ToWide(l10n_util::GetStringUTF16(IDS_COOKIES_REMOVE_ALL_LABEL))); |
319 | 319 |
320 using views::GridLayout; | 320 using views::GridLayout; |
321 using views::ColumnSet; | 321 using views::ColumnSet; |
322 | 322 |
323 GridLayout* layout = CreatePanelGridLayout(this); | 323 GridLayout* layout = GridLayout::CreatePanel(this); |
324 SetLayoutManager(layout); | 324 SetLayoutManager(layout); |
325 | 325 |
326 const int five_column_layout_id = 0; | 326 const int five_column_layout_id = 0; |
327 ColumnSet* column_set = layout->AddColumnSet(five_column_layout_id); | 327 ColumnSet* column_set = layout->AddColumnSet(five_column_layout_id); |
328 column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 0, | 328 column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 0, |
329 GridLayout::USE_PREF, 0, 0); | 329 GridLayout::USE_PREF, 0, 0); |
330 column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing); | 330 column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing); |
331 column_set->AddColumn(GridLayout::FILL, GridLayout::FILL, 1, | 331 column_set->AddColumn(GridLayout::FILL, GridLayout::FILL, 1, |
332 GridLayout::USE_PREF, 0, 0); | 332 GridLayout::USE_PREF, 0, 0); |
333 column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing); | 333 column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 GetTotalNodeCount() > 1); | 392 GetTotalNodeCount() > 1); |
393 } | 393 } |
394 | 394 |
395 void CookiesView::UpdateVisibleDetailedInfo(views::View* view) { | 395 void CookiesView::UpdateVisibleDetailedInfo(views::View* view) { |
396 cookie_info_view_->SetVisible(view == cookie_info_view_); | 396 cookie_info_view_->SetVisible(view == cookie_info_view_); |
397 database_info_view_->SetVisible(view == database_info_view_); | 397 database_info_view_->SetVisible(view == database_info_view_); |
398 local_storage_info_view_->SetVisible(view == local_storage_info_view_); | 398 local_storage_info_view_->SetVisible(view == local_storage_info_view_); |
399 appcache_info_view_->SetVisible(view == appcache_info_view_); | 399 appcache_info_view_->SetVisible(view == appcache_info_view_); |
400 indexed_db_info_view_->SetVisible(view == indexed_db_info_view_); | 400 indexed_db_info_view_->SetVisible(view == indexed_db_info_view_); |
401 } | 401 } |
OLD | NEW |