Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

Issue 2278283002: Implement Mac Pop-up Dictionary for OOPIF. (Closed)
Patch Set: Moved ownership of TextInputClientObserver to RenderWidget Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698