| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 eventResult = WebInputEventResult::HandledSystem; | 719 eventResult = WebInputEventResult::HandledSystem; |
| 720 else | 720 else |
| 721 eventResult = m_mouseEventManager->handleMousePressEvent(mev); | 721 eventResult = m_mouseEventManager->handleMousePressEvent(mev); |
| 722 } | 722 } |
| 723 | 723 |
| 724 if (mev.hitTestResult().innerNode() && | 724 if (mev.hitTestResult().innerNode() && |
| 725 mouseEvent.button == WebPointerProperties::Button::Left) { | 725 mouseEvent.button == WebPointerProperties::Button::Left) { |
| 726 DCHECK_EQ(WebInputEvent::MouseDown, mouseEvent.type()); | 726 DCHECK_EQ(WebInputEvent::MouseDown, mouseEvent.type()); |
| 727 HitTestResult result = mev.hitTestResult(); | 727 HitTestResult result = mev.hitTestResult(); |
| 728 result.setToShadowHostIfInRestrictedShadowRoot(); | 728 result.setToShadowHostIfInRestrictedShadowRoot(); |
| 729 m_frame->chromeClient().onMouseDown(result.innerNode()); | 729 m_frame->chromeClient().onMouseDown(*result.innerNode()); |
| 730 } | 730 } |
| 731 | 731 |
| 732 return eventResult; | 732 return eventResult; |
| 733 } | 733 } |
| 734 | 734 |
| 735 WebInputEventResult EventHandler::handleMouseMoveEvent( | 735 WebInputEventResult EventHandler::handleMouseMoveEvent( |
| 736 const WebMouseEvent& event, | 736 const WebMouseEvent& event, |
| 737 const Vector<WebMouseEvent>& coalescedEvents) { | 737 const Vector<WebMouseEvent>& coalescedEvents) { |
| 738 TRACE_EVENT0("blink", "EventHandler::handleMouseMoveEvent"); | 738 TRACE_EVENT0("blink", "EventHandler::handleMouseMoveEvent"); |
| 739 | 739 |
| (...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2086 MouseEventWithHitTestResults& mev, | 2086 MouseEventWithHitTestResults& mev, |
| 2087 LocalFrame* subframe) { | 2087 LocalFrame* subframe) { |
| 2088 WebInputEventResult result = | 2088 WebInputEventResult result = |
| 2089 subframe->eventHandler().handleMouseReleaseEvent(mev.event()); | 2089 subframe->eventHandler().handleMouseReleaseEvent(mev.event()); |
| 2090 if (result != WebInputEventResult::NotHandled) | 2090 if (result != WebInputEventResult::NotHandled) |
| 2091 return result; | 2091 return result; |
| 2092 return WebInputEventResult::HandledSystem; | 2092 return WebInputEventResult::HandledSystem; |
| 2093 } | 2093 } |
| 2094 | 2094 |
| 2095 } // namespace blink | 2095 } // namespace blink |
| OLD | NEW |