OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "services/window_manager/window_manager_root.h" | |
6 | |
7 #include <android/keycodes.h> | |
8 | |
9 #include "ui/events/keycodes/keyboard_codes_posix.h" | |
10 | |
11 namespace window_manager { | |
12 | |
13 ui::Accelerator WindowManagerRoot::ConvertEventToAccelerator( | |
14 const ui::KeyEvent* event) { | |
15 if (event->platform_keycode() == AKEYCODE_BACK) | |
16 return ui::Accelerator(ui::VKEY_BROWSER_BACK, 0); | |
17 return ui::Accelerator(event->key_code(), event->flags()); | |
18 } | |
19 | |
20 } // namespace window_manager | |
OLD | NEW |