Lines Matching defs:mouse_event
129 bool TouchEmulator::HandleMouseEvent(const WebMouseEvent& mouse_event) {
133 if (mouse_event.button == WebMouseEvent::ButtonRight &&
134 mouse_event.type == WebInputEvent::MouseDown) {
135 client_->ShowContextMenuAtPoint(gfx::Point(mouse_event.x, mouse_event.y));
138 if (mouse_event.button != WebMouseEvent::ButtonLeft)
141 if (mouse_event.type == WebInputEvent::MouseMove) {
143 mouse_event.timeStampSeconds < last_mouse_move_timestamp_ +
148 last_mouse_move_timestamp_ = mouse_event.timeStampSeconds;
153 if (mouse_event.type == WebInputEvent::MouseDown)
155 else if (mouse_event.type == WebInputEvent::MouseUp)
158 UpdateShiftPressed((mouse_event.modifiers & WebInputEvent::ShiftKey) != 0);
160 if (FillTouchEventAndPoint(mouse_event) &&
396 bool TouchEmulator::FillTouchEventAndPoint(const WebMouseEvent& mouse_event) {
397 if (mouse_event.type != WebInputEvent::MouseDown &&
398 mouse_event.type != WebInputEvent::MouseMove &&
399 mouse_event.type != WebInputEvent::MouseUp) {
404 switch (mouse_event.type) {
419 touch_event_.modifiers = mouse_event.modifiers;
421 eventType, mouse_event.timeStampSeconds, &touch_event_);
429 point.position.x = mouse_event.x;
430 point.screenPosition.x = mouse_event.globalX;
431 point.position.y = mouse_event.y;
432 point.screenPosition.y = mouse_event.globalY;