Lines Matching full:key_event
133 const WebKeyboardEvent& key_event =
136 result.event_modifiers = key_event.modifiers;
137 result.key_code = key_event.windowsKeyCode;
138 result.code = CodeForKeyboardEvent(key_event);
144 const WebKeyboardEvent& key_event =
155 key_event.text[utf16_char_count])
159 base::i18n::UTF16CharIterator iter(key_event.text, utf16_char_count);
162 result.event_modifiers = key_event.modifiers;
363 WebKeyboardEvent* key_event = new WebKeyboardEvent();
366 key_event->type = WebInputEvent::RawKeyDown;
369 key_event->type = WebInputEvent::KeyDown;
372 key_event->type = WebInputEvent::KeyUp;
377 key_event->timeStampSeconds = PPTimeTicksToEventTime(event.event_time_stamp);
378 key_event->modifiers = event.event_modifiers;
379 key_event->windowsKeyCode = event.key_code;
380 key_event->setKeyIdentifierFromWindowsKeyCode();
381 return key_event;
385 WebKeyboardEvent* key_event = new WebKeyboardEvent();
386 key_event->type = WebInputEvent::Char;
387 key_event->timeStampSeconds = PPTimeTicksToEventTime(event.event_time_stamp);
388 key_event->modifiers = event.event_modifiers;
395 memset(key_event->text, 0, text_length_cap);
396 memset(key_event->unmodifiedText, 0, text_length_cap);
398 key_event->text[i] = text16[i];
399 return key_event;