OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/views/options/exceptions_page_view.h" | 5 #include "chrome/browser/views/options/exceptions_page_view.h" |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "base/string_util.h" | 8 #include "base/string_util.h" |
8 #include "chrome/browser/profile.h" | 9 #include "chrome/browser/profile.h" |
9 #include "chrome/browser/views/standard_layout.h" | 10 #include "chrome/browser/views/standard_layout.h" |
10 #include "chrome/common/l10n_util.h" | |
11 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
12 #include "chrome/common/pref_service.h" | 12 #include "chrome/common/pref_service.h" |
13 #include "chrome/views/background.h" | 13 #include "chrome/views/background.h" |
14 #include "chrome/views/controls/button/native_button.h" | 14 #include "chrome/views/controls/button/native_button.h" |
15 #include "chrome/views/grid_layout.h" | 15 #include "chrome/views/grid_layout.h" |
16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
17 | 17 |
18 using views::ColumnSet; | 18 using views::ColumnSet; |
19 using views::GridLayout; | 19 using views::GridLayout; |
20 | 20 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 columns.back().sortable = true; | 170 columns.back().sortable = true; |
171 table_view_ = new views::TableView(&table_model_, columns, views::TEXT_ONLY, | 171 table_view_ = new views::TableView(&table_model_, columns, views::TEXT_ONLY, |
172 true, true, true); | 172 true, true, true); |
173 // Make the table initially sorted by host. | 173 // Make the table initially sorted by host. |
174 views::TableView::SortDescriptors sort; | 174 views::TableView::SortDescriptors sort; |
175 sort.push_back(views::TableView::SortDescriptor( | 175 sort.push_back(views::TableView::SortDescriptor( |
176 IDS_PASSWORDS_PAGE_VIEW_SITE_COLUMN, true)); | 176 IDS_PASSWORDS_PAGE_VIEW_SITE_COLUMN, true)); |
177 table_view_->SetSortDescriptors(sort); | 177 table_view_->SetSortDescriptors(sort); |
178 table_view_->SetObserver(this); | 178 table_view_->SetObserver(this); |
179 } | 179 } |
OLD | NEW |