Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 | 5 |
| 6 /** | 6 /** |
| 7 * This file defines the Input Event interfaces. | 7 * This file defines the Input Event interfaces. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 label Chrome { | 10 label Chrome { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 * | 93 * |
| 94 * Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class. | 94 * Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class. |
| 95 */ | 95 */ |
| 96 PP_INPUTEVENT_TYPE_CHAR = 9, | 96 PP_INPUTEVENT_TYPE_CHAR = 9, |
| 97 | 97 |
| 98 /** | 98 /** |
| 99 * TODO(brettw) when is this used? | 99 * TODO(brettw) when is this used? |
| 100 * | 100 * |
| 101 * Register for this event using the PP_INPUTEVENT_CLASS_MOUSE class. | 101 * Register for this event using the PP_INPUTEVENT_CLASS_MOUSE class. |
| 102 */ | 102 */ |
| 103 PP_INPUTEVENT_TYPE_CONTEXTMENU = 10 | 103 PP_INPUTEVENT_TYPE_CONTEXTMENU = 10, |
| 104 | |
| 105 /** | |
| 106 * Notification that an input method composition process has just started. | |
| 107 * | |
| 108 * Register for this event using the PP_INPUTEVENT_CLASS_IME class. | |
| 109 */ | |
| 110 PP_INPUTEVENT_TYPE_COMPOSITION_START = 11, | |
|
James Su
2011/09/16 08:45:28
I'm wondering if PP_INPUTEVENT_TYPE_IME_COMPOSITIO
| |
| 111 | |
| 112 /** | |
| 113 * Notification that the input method composition string is updated. | |
| 114 * | |
| 115 * Register for this event using the PP_INPUTEVENT_CLASS_IME class. | |
| 116 */ | |
| 117 PP_INPUTEVENT_TYPE_COMPOSITION_UPDATE = 12, | |
| 118 | |
| 119 /** | |
| 120 * Notification that an input method composition process has completed. | |
| 121 * | |
| 122 * Register for this event using the PP_INPUTEVENT_CLASS_IME class. | |
| 123 */ | |
| 124 PP_INPUTEVENT_TYPE_COMPOSITION_END = 13, | |
| 125 | |
| 126 /** | |
| 127 * Notification that an input method committed a string. | |
| 128 * | |
| 129 * Register for this event using the PP_INPUTEVENT_CLASS_IME class. | |
| 130 */ | |
| 131 PP_INPUTEVENT_TYPE_IME_TEXT = 14 | |
| 104 }; | 132 }; |
| 105 | 133 |
| 106 /** | 134 /** |
| 107 * This enumeration contains event modifier constants. Each modifier is one | 135 * This enumeration contains event modifier constants. Each modifier is one |
| 108 * bit. Retrieve the modifiers from an input event using the GetEventModifiers | 136 * bit. Retrieve the modifiers from an input event using the GetEventModifiers |
| 109 * function on PPB_InputEvent. | 137 * function on PPB_InputEvent. |
| 110 */ | 138 */ |
| 111 [assert_size(4)] | 139 [assert_size(4)] |
| 112 enum PP_InputEvent_Modifier { | 140 enum PP_InputEvent_Modifier { |
| 113 PP_INPUTEVENT_MODIFIER_SHIFTKEY = 1 << 0, | 141 PP_INPUTEVENT_MODIFIER_SHIFTKEY = 1 << 0, |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 694 * @param[in] character_event A <code>PP_Resource</code> corresponding to a | 722 * @param[in] character_event A <code>PP_Resource</code> corresponding to a |
| 695 * keyboard event. | 723 * keyboard event. |
| 696 * | 724 * |
| 697 * @return A string var representing a single typed character for character | 725 * @return A string var representing a single typed character for character |
| 698 * input events. For non-character input events the return value will be an | 726 * input events. For non-character input events the return value will be an |
| 699 * undefined var. | 727 * undefined var. |
| 700 */ | 728 */ |
| 701 PP_Var GetCharacterText([in] PP_Resource character_event); | 729 PP_Var GetCharacterText([in] PP_Resource character_event); |
| 702 }; | 730 }; |
| 703 | 731 |
| OLD | NEW |