OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 return WebInputEventResult::kNotHandled; | 370 return WebInputEventResult::kNotHandled; |
371 | 371 |
372 // FIXME: pass event to m_localRoot's WebDevToolsAgentImpl once available. | 372 // FIXME: pass event to m_localRoot's WebDevToolsAgentImpl once available. |
373 | 373 |
374 AutoReset<const WebInputEvent*> current_event_change(¤t_input_event_, | 374 AutoReset<const WebInputEvent*> current_event_change(¤t_input_event_, |
375 &input_event); | 375 &input_event); |
376 | 376 |
377 DCHECK(client_); | 377 DCHECK(client_); |
378 if (client_->IsPointerLocked() && | 378 if (client_->IsPointerLocked() && |
379 WebInputEvent::IsMouseEventType(input_event.GetType())) { | 379 WebInputEvent::IsMouseEventType(input_event.GetType())) { |
380 PointerLockMouseEvent(input_event); | 380 PointerLockMouseEvent(coalesced_event); |
381 return WebInputEventResult::kHandledSystem; | 381 return WebInputEventResult::kHandledSystem; |
382 } | 382 } |
383 | 383 |
384 if (mouse_capture_node_ && | 384 if (mouse_capture_node_ && |
385 WebInputEvent::IsMouseEventType(input_event.GetType())) { | 385 WebInputEvent::IsMouseEventType(input_event.GetType())) { |
386 TRACE_EVENT1("input", "captured mouse event", "type", | 386 TRACE_EVENT1("input", "captured mouse event", "type", |
387 input_event.GetType()); | 387 input_event.GetType()); |
388 // Save m_mouseCaptureNode since mouseCaptureLost() will clear it. | 388 // Save m_mouseCaptureNode since mouseCaptureLost() will clear it. |
389 Node* node = mouse_capture_node_; | 389 Node* node = mouse_capture_node_; |
390 | 390 |
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1195 : nullptr; | 1195 : nullptr; |
1196 } | 1196 } |
1197 | 1197 |
1198 LocalFrame* WebFrameWidgetImpl::FocusedLocalFrameAvailableForIme() const { | 1198 LocalFrame* WebFrameWidgetImpl::FocusedLocalFrameAvailableForIme() const { |
1199 if (!ime_accept_events_) | 1199 if (!ime_accept_events_) |
1200 return nullptr; | 1200 return nullptr; |
1201 return FocusedLocalFrameInWidget(); | 1201 return FocusedLocalFrameInWidget(); |
1202 } | 1202 } |
1203 | 1203 |
1204 } // namespace blink | 1204 } // namespace blink |
OLD | NEW |