| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 const WebInputEvent& event = coalescedEvent.event(); | 121 const WebInputEvent& event = coalescedEvent.event(); |
| 122 if (event.modifiers() & WebInputEvent::IsTouchAccessibility && | 122 if (event.modifiers() & WebInputEvent::IsTouchAccessibility && |
| 123 WebInputEvent::isMouseEventType(event.type())) { | 123 WebInputEvent::isMouseEventType(event.type())) { |
| 124 WebMouseEvent mouseEvent = TransformWebMouseEvent( | 124 WebMouseEvent mouseEvent = TransformWebMouseEvent( |
| 125 root->view(), static_cast<const WebMouseEvent&>(event)); | 125 root->view(), static_cast<const WebMouseEvent&>(event)); |
| 126 | 126 |
| 127 IntPoint docPoint(root->view()->rootFrameToContents( | 127 IntPoint docPoint(root->view()->rootFrameToContents( |
| 128 flooredIntPoint(mouseEvent.positionInRootFrame()))); | 128 flooredIntPoint(mouseEvent.positionInRootFrame()))); |
| 129 HitTestResult result = root->eventHandler().hitTestResultAtPoint( | 129 HitTestResult result = root->eventHandler().hitTestResultAtPoint( |
| 130 docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); | 130 docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); |
| 131 result.setToShadowHostIfInUserAgentShadowRoot(); | 131 result.setToShadowHostIfInRestrictedShadowRoot(); |
| 132 if (result.innerNodeFrame()) { | 132 if (result.innerNodeFrame()) { |
| 133 Document* document = result.innerNodeFrame()->document(); | 133 Document* document = result.innerNodeFrame()->document(); |
| 134 if (document) { | 134 if (document) { |
| 135 AXObjectCache* cache = document->existingAXObjectCache(); | 135 AXObjectCache* cache = document->existingAXObjectCache(); |
| 136 if (cache) | 136 if (cache) |
| 137 cache->onTouchAccessibilityHover( | 137 cache->onTouchAccessibilityHover( |
| 138 result.roundedPointInInnerNodeFrame()); | 138 result.roundedPointInInnerNodeFrame()); |
| 139 } | 139 } |
| 140 } | 140 } |
| 141 } | 141 } |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 const WebTouchEvent& event, | 269 const WebTouchEvent& event, |
| 270 const std::vector<const WebInputEvent*>& coalescedEvents) { | 270 const std::vector<const WebInputEvent*>& coalescedEvents) { |
| 271 WebTouchEvent transformedEvent = | 271 WebTouchEvent transformedEvent = |
| 272 TransformWebTouchEvent(mainFrame.view(), event); | 272 TransformWebTouchEvent(mainFrame.view(), event); |
| 273 return mainFrame.eventHandler().handleTouchEvent( | 273 return mainFrame.eventHandler().handleTouchEvent( |
| 274 transformedEvent, | 274 transformedEvent, |
| 275 TransformWebTouchEventVector(mainFrame.view(), coalescedEvents)); | 275 TransformWebTouchEventVector(mainFrame.view(), coalescedEvents)); |
| 276 } | 276 } |
| 277 | 277 |
| 278 } // namespace blink | 278 } // namespace blink |
| OLD | NEW |