OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |