Lines Matching defs:key_event
136 const WebKeyboardEvent& key_event =
139 result.event_modifiers = key_event.modifiers;
140 result.key_code = key_event.windowsKeyCode;
141 result.usb_key_code = UsbKeyCodeForKeyboardEvent(key_event);
147 const WebKeyboardEvent& key_event =
158 key_event.text[utf16_char_count])
162 base::i18n::UTF16CharIterator iter(key_event.text, utf16_char_count);
165 result.event_modifiers = key_event.modifiers;
342 WebKeyboardEvent* key_event = new WebKeyboardEvent();
345 key_event->type = WebInputEvent::RawKeyDown;
348 key_event->type = WebInputEvent::KeyDown;
351 key_event->type = WebInputEvent::KeyUp;
356 key_event->timeStampSeconds = PPTimeTicksToEventTime(event.event_time_stamp);
357 key_event->modifiers = event.event_modifiers;
358 key_event->windowsKeyCode = event.key_code;
359 key_event->setKeyIdentifierFromWindowsKeyCode();
360 return key_event;
364 WebKeyboardEvent* key_event = new WebKeyboardEvent();
365 key_event->type = WebInputEvent::Char;
366 key_event->timeStampSeconds = PPTimeTicksToEventTime(event.event_time_stamp);
367 key_event->modifiers = event.event_modifiers;
374 memset(key_event->text, 0, text_length_cap);
375 memset(key_event->unmodifiedText, 0, text_length_cap);
379 key_event->text[i] = text16[i];
380 return key_event;