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

Unified Diff: ui/events/ozone/layout/layout_util.h

Issue 841263005: Use DOM- rather than Windows-based key code for non-layout cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments (sadrul) Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ui/events/ozone/layout/layout_util.h
diff --git a/ui/events/ozone/layout/layout_util.h b/ui/events/ozone/layout/layout_util.h
index 7eb8f77977ae6c6aad8eb62f8e087158f86cf672..84d9d1ddc8e65090f05df474b7e67cffc45b7657 100644
--- a/ui/events/ozone/layout/layout_util.h
+++ b/ui/events/ozone/layout/layout_util.h
@@ -13,31 +13,8 @@
namespace ui {
-enum class DomCode;
enum class DomKey;
-// Returns a Windows-based VKEY for a non-printable DOM Level 3 |key|.
-// The returned VKEY is non-located (e.g. VKEY_SHIFT).
-EVENTS_OZONE_LAYOUT_EXPORT KeyboardCode
-NonPrintableDomKeyToKeyboardCode(DomKey dom_key);
-
-// Returns the Windows-based VKEY value corresponding to a DOM Level 3 |code|.
-// The returned VKEY is located (e.g. VKEY_LSHIFT).
-EVENTS_OZONE_LAYOUT_EXPORT KeyboardCode DomCodeToKeyboardCode(DomCode dom_code);
-
-// Returns the Windows-based VKEY value corresponding to a DOM Level 3 |code|.
-// The returned VKEY is non-located (e.g. VKEY_SHIFT).
-EVENTS_OZONE_LAYOUT_EXPORT KeyboardCode
-DomCodeToNonLocatedKeyboardCode(DomCode dom_code);
-
-// Returns true control character corresponding to a physical key.
-// In some contexts this is used instead of the key layout.
-EVENTS_OZONE_LAYOUT_EXPORT bool LookupControlCharacter(DomCode dom_code,
- int flags,
- DomKey* dom_key,
- base::char16* character,
- KeyboardCode* key_code);
-
// Returns the ui::EventFlags value associated with a modifier key,
// or 0 (EF_NONE) if the key is not a modifier.
EVENTS_OZONE_LAYOUT_EXPORT int ModifierDomKeyToEventFlag(DomKey key);

Powered by Google App Engine
This is Rietveld 408576698