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

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

Issue 2278283002: Implement Mac Pop-up Dictionary for OOPIF. (Closed)
Patch Set: Addressing lfg@'s comment Created 4 years, 2 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 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 m_layerTreeView->attachCompositorAnimationTimeline(compositorTimeline->a nimationTimeline()); 1381 m_layerTreeView->attachCompositorAnimationTimeline(compositorTimeline->a nimationTimeline());
1382 1382
1383 } 1383 }
1384 1384
1385 void WebFrameWidgetImpl::detachCompositorAnimationTimeline(CompositorAnimationTi meline* compositorTimeline) 1385 void WebFrameWidgetImpl::detachCompositorAnimationTimeline(CompositorAnimationTi meline* compositorTimeline)
1386 { 1386 {
1387 if (m_layerTreeView) 1387 if (m_layerTreeView)
1388 m_layerTreeView->detachCompositorAnimationTimeline(compositorTimeline->a nimationTimeline()); 1388 m_layerTreeView->detachCompositorAnimationTimeline(compositorTimeline->a nimationTimeline());
1389 } 1389 }
1390 1390
1391 HitTestResult WebFrameWidgetImpl::coreHitTestResultAt(const WebPoint& pointInVie wport)
1392 {
1393 DocumentLifecycle::AllowThrottlingScope throttlingScope(m_localRoot->frame() ->document()->lifecycle());
1394 FrameView* view = m_localRoot->frameView();
1395 IntPoint pointInRootFrame = view->contentsToFrame(view->viewportToContents(p ointInViewport));
1396 return hitTestResultForRootFramePos(pointInRootFrame);
1397 }
1398
1391 void WebFrameWidgetImpl::setVisibilityState(WebPageVisibilityState visibilitySta te) 1399 void WebFrameWidgetImpl::setVisibilityState(WebPageVisibilityState visibilitySta te)
1392 { 1400 {
1393 if (m_layerTreeView) 1401 if (m_layerTreeView)
1394 m_layerTreeView->setVisible(visibilityState == WebPageVisibilityStateVis ible); 1402 m_layerTreeView->setVisible(visibilityState == WebPageVisibilityStateVis ible);
1395 } 1403 }
1396 1404
1397 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p osInRootFrame) 1405 HitTestResult WebFrameWidgetImpl::hitTestResultForRootFramePos(const IntPoint& p osInRootFrame)
1398 { 1406 {
1399 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo tFrame)); 1407 IntPoint docPoint(m_localRoot->frame()->view()->rootFrameToContents(posInRoo tFrame));
1400 HitTestResult result = m_localRoot->frame()->eventHandler().hitTestResultAtP oint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); 1408 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
1493 } 1501 }
1494 1502
1495 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const 1503 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const
1496 { 1504 {
1497 if (!m_imeAcceptEvents) 1505 if (!m_imeAcceptEvents)
1498 return nullptr; 1506 return nullptr;
1499 return focusedLocalFrameInWidget(); 1507 return focusedLocalFrameInWidget();
1500 } 1508 }
1501 1509
1502 } // namespace blink 1510 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetImpl.h ('k') | third_party/WebKit/Source/web/WebViewFrameWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698