| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 return gfx::Size(460, 270); | 154 return gfx::Size(460, 270); |
| 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() { |
| 165 return nullptr; |
| 166 } |
| 167 |
| 164 bool TaskManagerView::CanResize() const { | 168 bool TaskManagerView::CanResize() const { |
| 165 return true; | 169 return true; |
| 166 } | 170 } |
| 167 | 171 |
| 168 bool TaskManagerView::CanMaximize() const { | 172 bool TaskManagerView::CanMaximize() const { |
| 169 return true; | 173 return true; |
| 170 } | 174 } |
| 171 | 175 |
| 172 bool TaskManagerView::CanMinimize() const { | 176 bool TaskManagerView::CanMinimize() const { |
| 173 return true; | 177 return true; |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 if (!g_browser_process->local_state()) | 366 if (!g_browser_process->local_state()) |
| 363 return; | 367 return; |
| 364 | 368 |
| 365 const base::DictionaryValue* dictionary = | 369 const base::DictionaryValue* dictionary = |
| 366 g_browser_process->local_state()->GetDictionary(GetWindowName()); | 370 g_browser_process->local_state()->GetDictionary(GetWindowName()); |
| 367 if (dictionary) | 371 if (dictionary) |
| 368 dictionary->GetBoolean("always_on_top", &is_always_on_top_); | 372 dictionary->GetBoolean("always_on_top", &is_always_on_top_); |
| 369 } | 373 } |
| 370 | 374 |
| 371 } // namespace task_manager | 375 } // namespace task_manager |
| OLD | NEW |