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

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

Issue 1284433002: Revise ui::DomKey to unify character and non-character codes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IsDead Created 5 years, 3 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 #ifndef UI_EVENTS_OZONE_LAYOUT_LAYOUT_UTIL_H_ 5 #ifndef UI_EVENTS_OZONE_LAYOUT_LAYOUT_UTIL_H_
6 #define UI_EVENTS_OZONE_LAYOUT_LAYOUT_UTIL_H_ 6 #define UI_EVENTS_OZONE_LAYOUT_LAYOUT_UTIL_H_
7 7
8 // TODO(kpschoedel): consider moving this out of Ozone. 8 // TODO(kpschoedel): consider moving this out of Ozone.
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "ui/events/keycodes/dom/dom_key.h"
11 #include "ui/events/keycodes/keyboard_codes.h" 12 #include "ui/events/keycodes/keyboard_codes.h"
12 #include "ui/events/ozone/layout/events_ozone_layout_export.h" 13 #include "ui/events/ozone/layout/events_ozone_layout_export.h"
13 14
14 namespace ui { 15 namespace ui {
15 16
16 enum class DomKey;
17
18 // Returns the ui::EventFlags value associated with a modifier key, 17 // Returns the ui::EventFlags value associated with a modifier key,
19 // or 0 (EF_NONE) if the key is not a modifier. 18 // or 0 (EF_NONE) if the key is not a modifier.
20 EVENTS_OZONE_LAYOUT_EXPORT int ModifierDomKeyToEventFlag(DomKey key); 19 EVENTS_OZONE_LAYOUT_EXPORT int ModifierDomKeyToEventFlag(DomKey key);
21 20
22 } // namespace ui 21 } // namespace ui
23 22
24 #endif // UI_EVENTS_OZONE_LAYOUT_LAYOUT_UTIL_H_ 23 #endif // UI_EVENTS_OZONE_LAYOUT_LAYOUT_UTIL_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/layout/keyboard_layout_engine.h ('k') | ui/events/ozone/layout/no/no_keyboard_layout_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698