Chromium Code Reviews| 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/task_manager_view.h" | 5 #include "chrome/browser/ui/views/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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 155 } | 155 } |
| 156 | 156 |
| 157 bool TaskManagerView::AcceleratorPressed(const ui::Accelerator& accelerator) { | 157 bool TaskManagerView::AcceleratorPressed(const ui::Accelerator& accelerator) { |
| 158 DCHECK_EQ(ui::VKEY_W, accelerator.key_code()); | 158 DCHECK_EQ(ui::VKEY_W, accelerator.key_code()); |
| 159 DCHECK_EQ(ui::EF_CONTROL_DOWN, accelerator.modifiers()); | 159 DCHECK_EQ(ui::EF_CONTROL_DOWN, accelerator.modifiers()); |
| 160 GetWidget()->Close(); | 160 GetWidget()->Close(); |
| 161 return true; | 161 return true; |
| 162 } | 162 } |
| 163 | 163 |
| 164 views::View* TaskManagerView::GetInitiallyFocusedView() { | 164 views::View* TaskManagerView::GetInitiallyFocusedView() { |
| 165 return tab_table_; | 165 return nullptr; |
|
sky
2017/03/23 17:50:17
?
Evan Stade
2017/03/23 22:56:26
oops, ps2 upload got stuck in the tubes.
| |
| 166 // return tab_table_; | |
| 166 } | 167 } |
| 167 | 168 |
| 168 bool TaskManagerView::CanResize() const { | 169 bool TaskManagerView::CanResize() const { |
| 169 return true; | 170 return true; |
| 170 } | 171 } |
| 171 | 172 |
| 172 bool TaskManagerView::CanMaximize() const { | 173 bool TaskManagerView::CanMaximize() const { |
| 173 return true; | 174 return true; |
| 174 } | 175 } |
| 175 | 176 |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 366 if (!g_browser_process->local_state()) | 367 if (!g_browser_process->local_state()) |
| 367 return; | 368 return; |
| 368 | 369 |
| 369 const base::DictionaryValue* dictionary = | 370 const base::DictionaryValue* dictionary = |
| 370 g_browser_process->local_state()->GetDictionary(GetWindowName()); | 371 g_browser_process->local_state()->GetDictionary(GetWindowName()); |
| 371 if (dictionary) | 372 if (dictionary) |
| 372 dictionary->GetBoolean("always_on_top", &is_always_on_top_); | 373 dictionary->GetBoolean("always_on_top", &is_always_on_top_); |
| 373 } | 374 } |
| 374 | 375 |
| 375 } // namespace task_manager | 376 } // namespace task_manager |
| OLD | NEW |