Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Side by Side Diff: services/window_manager/window_manager_root_android.cc

Issue 1530333005: Delete the ViewManager and WindowManager services. (Closed) Base URL: git@github.com:domokit/mojo.git@cl-2c
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « services/window_manager/window_manager_root.cc ('k') | services/window_manager/window_manager_root_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698