OLD | NEW |
1 // Copyright (c) 2011 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/task_manager/task_manager.h" | 5 #include "chrome/browser/task_manager/task_manager.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/metrics/stats_table.h" | 9 #include "base/metrics/stats_table.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/app/chrome_command_ids.h" | 11 #include "chrome/app/chrome_command_ids.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 } | 163 } |
164 } | 164 } |
165 | 165 |
166 SkBitmap TaskManagerTableModel::GetIcon(int row) { | 166 SkBitmap TaskManagerTableModel::GetIcon(int row) { |
167 return model_->GetResourceIcon(row); | 167 return model_->GetResourceIcon(row); |
168 } | 168 } |
169 | 169 |
170 | 170 |
171 void TaskManagerTableModel::GetGroupRangeForItem(int item, | 171 void TaskManagerTableModel::GetGroupRangeForItem(int item, |
172 views::GroupRange* range) { | 172 views::GroupRange* range) { |
173 std::pair<int, int> range_pair = model_->GetGroupRangeForResource(item); | 173 TaskManagerModel::GroupRange range_pair = |
| 174 model_->GetGroupRangeForResource(item); |
174 range->start = range_pair.first; | 175 range->start = range_pair.first; |
175 range->length = range_pair.second; | 176 range->length = range_pair.second; |
176 } | 177 } |
177 | 178 |
178 void TaskManagerTableModel::SetObserver(ui::TableModelObserver* observer) { | 179 void TaskManagerTableModel::SetObserver(ui::TableModelObserver* observer) { |
179 observer_ = observer; | 180 observer_ = observer; |
180 } | 181 } |
181 | 182 |
182 int TaskManagerTableModel::CompareValues(int row1, int row2, int column_id) { | 183 int TaskManagerTableModel::CompareValues(int row1, int row2, int column_id) { |
183 return model_->CompareValues(row1, row2, column_id); | 184 return model_->CompareValues(row1, row2, column_id); |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 // Declared in browser_dialogs.h so others don't need to depend on our header. | 797 // Declared in browser_dialogs.h so others don't need to depend on our header. |
797 void ShowTaskManager() { | 798 void ShowTaskManager() { |
798 TaskManagerView::Show(false); | 799 TaskManagerView::Show(false); |
799 } | 800 } |
800 | 801 |
801 void ShowBackgroundPages() { | 802 void ShowBackgroundPages() { |
802 TaskManagerView::Show(true); | 803 TaskManagerView::Show(true); |
803 } | 804 } |
804 | 805 |
805 } // namespace browser | 806 } // namespace browser |
OLD | NEW |