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 "ash/accelerators/accelerator_dispatcher.h" | 5 #include "ash/accelerators/accelerator_dispatcher.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 "ui/aura/window_event_dispatcher.h" | 9 #include "ui/aura/window_event_dispatcher.h" |
10 #include "ui/base/accelerators/accelerator.h" | 10 #include "ui/base/accelerators/accelerator.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 if (key_event.type() == ui::ET_KEY_RELEASED) | 61 if (key_event.type() == ui::ET_KEY_RELEASED) |
62 accelerator.set_type(ui::ET_KEY_RELEASED); | 62 accelerator.set_type(ui::ET_KEY_RELEASED); |
63 // Fill out context object so AcceleratorController will know what | 63 // Fill out context object so AcceleratorController will know what |
64 // was the previous accelerator or if the current accelerator is repeated. | 64 // was the previous accelerator or if the current accelerator is repeated. |
65 Shell::GetInstance()->accelerator_controller()->context()->UpdateContext( | 65 Shell::GetInstance()->accelerator_controller()->context()->UpdateContext( |
66 accelerator); | 66 accelerator); |
67 return accelerator_controller->Process(accelerator); | 67 return accelerator_controller->Process(accelerator); |
68 } | 68 } |
69 | 69 |
70 } // namespace ash | 70 } // namespace ash |
OLD | NEW |