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

Side by Side Diff: ui/events/ozone/layout/layout_util.cc

Issue 1136503003: Consolidate ui/events/keycodes/dom[34]/ into .../dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 months 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/events/ozone/layout/layout_util.h" 5 #include "ui/events/ozone/layout/layout_util.h"
6 6
7 #include "ui/events/event_constants.h" 7 #include "ui/events/event_constants.h"
8 #include "ui/events/keycodes/dom3/dom_key.h" 8 #include "ui/events/keycodes/dom/dom_key.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 int ModifierDomKeyToEventFlag(DomKey key) { 12 int ModifierDomKeyToEventFlag(DomKey key) {
13 switch (key) { 13 switch (key) {
14 case DomKey::ALT: 14 case DomKey::ALT:
15 return EF_ALT_DOWN; 15 return EF_ALT_DOWN;
16 case DomKey::ALT_GRAPH: 16 case DomKey::ALT_GRAPH:
17 return EF_ALTGR_DOWN; 17 return EF_ALTGR_DOWN;
18 // ChromeOS uses F16 to represent CapsLock before the rewriting stage, 18 // ChromeOS uses F16 to represent CapsLock before the rewriting stage,
(...skipping 21 matching lines...) Expand all
40 // DomKey::ACCEL 40 // DomKey::ACCEL
41 // DomKey::FN 41 // DomKey::FN
42 // DomKey::FN_LOCK 42 // DomKey::FN_LOCK
43 // DomKey::NUM_LOCK 43 // DomKey::NUM_LOCK
44 // DomKey::SCROLL_LOCK 44 // DomKey::SCROLL_LOCK
45 // DomKey::SYMBOL 45 // DomKey::SYMBOL
46 // DomKey::SYMBOL_LOCK 46 // DomKey::SYMBOL_LOCK
47 } 47 }
48 48
49 } // namespace ui 49 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/ozone/events_ozone.gyp ('k') | ui/events/ozone/layout/stub/stub_keyboard_layout_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698