OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/new_task_manager_view.h" | 5 #include "chrome/browser/ui/views/new_task_manager_view.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 } | 271 } |
272 | 272 |
273 bool NewTaskManagerView::IsCommandIdChecked(int id) const { | 273 bool NewTaskManagerView::IsCommandIdChecked(int id) const { |
274 return tab_table_->IsColumnVisible(id); | 274 return tab_table_->IsColumnVisible(id); |
275 } | 275 } |
276 | 276 |
277 bool NewTaskManagerView::IsCommandIdEnabled(int id) const { | 277 bool NewTaskManagerView::IsCommandIdEnabled(int id) const { |
278 return true; | 278 return true; |
279 } | 279 } |
280 | 280 |
281 bool NewTaskManagerView::GetAcceleratorForCommandId( | |
282 int command_id, | |
283 ui::Accelerator* accelerator) const { | |
284 return false; | |
285 } | |
286 | |
287 void NewTaskManagerView::ExecuteCommand(int id, int event_flags) { | 281 void NewTaskManagerView::ExecuteCommand(int id, int event_flags) { |
288 table_model_->ToggleColumnVisibility(id); | 282 table_model_->ToggleColumnVisibility(id); |
289 } | 283 } |
290 | 284 |
291 NewTaskManagerView::NewTaskManagerView() | 285 NewTaskManagerView::NewTaskManagerView() |
292 : tab_table_(nullptr), | 286 : tab_table_(nullptr), |
293 tab_table_parent_(nullptr), | 287 tab_table_parent_(nullptr), |
294 is_always_on_top_(false) { | 288 is_always_on_top_(false) { |
295 Init(); | 289 Init(); |
296 } | 290 } |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 if (!g_browser_process->local_state()) | 348 if (!g_browser_process->local_state()) |
355 return; | 349 return; |
356 | 350 |
357 const base::DictionaryValue* dictionary = | 351 const base::DictionaryValue* dictionary = |
358 g_browser_process->local_state()->GetDictionary(GetWindowName()); | 352 g_browser_process->local_state()->GetDictionary(GetWindowName()); |
359 if (dictionary) | 353 if (dictionary) |
360 dictionary->GetBoolean("always_on_top", &is_always_on_top_); | 354 dictionary->GetBoolean("always_on_top", &is_always_on_top_); |
361 } | 355 } |
362 | 356 |
363 } // namespace task_management | 357 } // namespace task_management |
OLD | NEW |