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 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1366 m_layerTreeView->attachCompositorAnimationTimeline(compositorTimeline->a
nimationTimeline()); | 1366 m_layerTreeView->attachCompositorAnimationTimeline(compositorTimeline->a
nimationTimeline()); |
1367 | 1367 |
1368 } | 1368 } |
1369 | 1369 |
1370 void WebFrameWidgetImpl::detachCompositorAnimationTimeline(CompositorAnimationTi
meline* compositorTimeline) | 1370 void WebFrameWidgetImpl::detachCompositorAnimationTimeline(CompositorAnimationTi
meline* compositorTimeline) |
1371 { | 1371 { |
1372 if (m_layerTreeView) | 1372 if (m_layerTreeView) |
1373 m_layerTreeView->detachCompositorAnimationTimeline(compositorTimeline->a
nimationTimeline()); | 1373 m_layerTreeView->detachCompositorAnimationTimeline(compositorTimeline->a
nimationTimeline()); |
1374 } | 1374 } |
1375 | 1375 |
| 1376 HitTestResult WebFrameWidgetImpl::coreHitTestResultAt(const WebPoint& pointInVie
wport) |
| 1377 { |
| 1378 DocumentLifecycle::AllowThrottlingScope throttlingScope(m_localRoot->frame()
->document()->lifecycle()); |
| 1379 FrameView* view = m_localRoot->frameView(); |
| 1380 IntPoint pointInRootFrame = view->contentsToFrame(view->viewportToContents(p
ointInViewport)); |
| 1381 return hitTestResultForRootFramePos(pointInRootFrame); |
| 1382 } |
| 1383 |
1376 void WebFrameWidgetImpl::setVisibilityState(WebPageVisibilityState visibilitySta
te) | 1384 void WebFrameWidgetImpl::setVisibilityState(WebPageVisibilityState visibilitySta
te) |
1377 { | 1385 { |
1378 if (m_layerTreeView) | 1386 if (m_layerTreeView) |
1379 m_layerTreeView->setVisible(visibilityState == WebPageVisibilityStateVis
ible); | 1387 m_layerTreeView->setVisible(visibilityState == WebPageVisibilityStateVis
ible); |
1380 } | 1388 } |
1381 | 1389 |
1382 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p
osInRootFrame) | 1390 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p
osInRootFrame) |
1383 { | 1391 { |
1384 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo
tFrame)); | 1392 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo
tFrame)); |
1385 HitTestResult result = m_localRoot->frame()->eventHandler().hitTestResultAtP
oint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); | 1393 HitTestResult result = m_localRoot->frame()->eventHandler().hitTestResultAtP
oint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1478 } | 1486 } |
1479 | 1487 |
1480 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const | 1488 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const |
1481 { | 1489 { |
1482 if (!m_imeAcceptEvents) | 1490 if (!m_imeAcceptEvents) |
1483 return nullptr; | 1491 return nullptr; |
1484 return focusedLocalFrameInWidget(); | 1492 return focusedLocalFrameInWidget(); |
1485 } | 1493 } |
1486 | 1494 |
1487 } // namespace blink | 1495 } // namespace blink |
OLD | NEW |