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

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

Issue 1312833006: Remove ui::KeyEvent::platform_keycode_ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « ui/events/ozone/events_ozone.cc ('k') | ui/events/ozone/layout/no/no_keyboard_layout_engine.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_OZONE_PUBLIC_KEYBOARD_LAYOUT_ENGINE_H_ 5 #ifndef UI_OZONE_PUBLIC_KEYBOARD_LAYOUT_ENGINE_H_
6 #define UI_OZONE_PUBLIC_KEYBOARD_LAYOUT_ENGINE_H_ 6 #define UI_OZONE_PUBLIC_KEYBOARD_LAYOUT_ENGINE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Returns true if it can determine the DOM meaning (i.e. ui::DomKey and 54 // Returns true if it can determine the DOM meaning (i.e. ui::DomKey and
55 // character) and the corresponding (non-located) KeyboardCode from the given 55 // character) and the corresponding (non-located) KeyboardCode from the given
56 // physical state (ui::DomCode and ui::EventFlags), OR if it can determine 56 // physical state (ui::DomCode and ui::EventFlags), OR if it can determine
57 // that there is no meaning in the current layout (e.g. the key is unbound). 57 // that there is no meaning in the current layout (e.g. the key is unbound).
58 // In the latter case, the function sets *dom_key to UNIDENTIFIED, *character 58 // In the latter case, the function sets *dom_key to UNIDENTIFIED, *character
59 // to 0, and *key_code to VKEY_UNKNOWN. 59 // to 0, and *key_code to VKEY_UNKNOWN.
60 // 60 //
61 // Returns false if it cannot determine the meaning (and cannot determine 61 // Returns false if it cannot determine the meaning (and cannot determine
62 // that there is none); in this case it does not set any of the output 62 // that there is none); in this case it does not set any of the output
63 // parameters. 63 // parameters.
64 //
65 // TODO(kpschoedel): remove the platform_keycode output. crbug.com/442757
66 virtual bool Lookup(DomCode dom_code, 64 virtual bool Lookup(DomCode dom_code,
67 int event_flags, 65 int event_flags,
68 DomKey* dom_key, 66 DomKey* dom_key,
69 KeyboardCode* key_code, 67 KeyboardCode* key_code) const = 0;
70 uint32* platform_keycode) const = 0;
71 }; 68 };
72 69
73 } // namespace ui 70 } // namespace ui
74 71
75 #endif // UI_OZONE_PUBLIC_KEYBOARD_LAYOUT_ENGINE_H_ 72 #endif // UI_OZONE_PUBLIC_KEYBOARD_LAYOUT_ENGINE_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/events_ozone.cc ('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