| OLD | NEW |
| 1 // Copyright (c) 2012 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/ui/ash/ash_util.h" | 5 #include "chrome/browser/ui/ash/ash_util.h" |
| 6 | 6 |
| 7 #include "ash/accelerators/accelerator_controller.h" | 7 #include "ash/accelerators/accelerator_controller.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "chrome/browser/ui/ash/ash_init.h" | 9 #include "chrome/browser/ui/ash/ash_init.h" |
| 10 #include "chrome/browser/ui/host_desktop.h" | |
| 11 #include "ui/aura/window_event_dispatcher.h" | 10 #include "ui/aura/window_event_dispatcher.h" |
| 11 #include "ui/gfx/host_desktop_type.h" |
| 12 | 12 |
| 13 #if !defined(OS_CHROMEOS) | 13 #if !defined(OS_CHROMEOS) |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 namespace chrome { | 18 namespace chrome { |
| 19 | 19 |
| 20 bool ShouldOpenAshOnStartup() { | 20 bool ShouldOpenAshOnStartup() { |
| 21 #if defined(OS_CHROMEOS) | 21 #if defined(OS_CHROMEOS) |
| (...skipping 29 matching lines...) Expand all Loading... |
| 51 return IsNativeViewInAsh(native_window); | 51 return IsNativeViewInAsh(native_window); |
| 52 } | 52 } |
| 53 | 53 |
| 54 bool IsAcceleratorDeprecated(const ui::Accelerator& accelerator) { | 54 bool IsAcceleratorDeprecated(const ui::Accelerator& accelerator) { |
| 55 ash::AcceleratorController* controller = | 55 ash::AcceleratorController* controller = |
| 56 ash::Shell::GetInstance()->accelerator_controller(); | 56 ash::Shell::GetInstance()->accelerator_controller(); |
| 57 return controller->IsDeprecated(accelerator); | 57 return controller->IsDeprecated(accelerator); |
| 58 } | 58 } |
| 59 | 59 |
| 60 } // namespace chrome | 60 } // namespace chrome |
| OLD | NEW |