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

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, 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 void WebFrameWidgetImpl::setBaseBackgroundColor(WebColor color) 400 void WebFrameWidgetImpl::setBaseBackgroundColor(WebColor color)
401 { 401 {
402 if (m_baseBackgroundColor == color) 402 if (m_baseBackgroundColor == color)
403 return; 403 return;
404 404
405 m_baseBackgroundColor = color; 405 m_baseBackgroundColor = color;
406 406
407 m_localRoot->frameView()->setBaseBackgroundColor(color); 407 m_localRoot->frameView()->setBaseBackgroundColor(color);
408 } 408 }
409 409
410 HitTestResult WebFrameWidgetImpl::coreHitTestResultAt(const WebPoint& pointInVie wport)
411 {
412 DocumentLifecycle::AllowThrottlingScope throttlingScope(m_localRoot->frame() ->document()->lifecycle());
413 FrameView* view = m_localRoot->frameView();
414 IntPoint pointInRootFrame = view->contentsToFrame(view->viewportToContents(p ointInViewport));
415 return hitTestResultForRootFramePos(pointInRootFrame);
416 }
417
410 void WebFrameWidgetImpl::scheduleAnimation() 418 void WebFrameWidgetImpl::scheduleAnimation()
411 { 419 {
412 if (m_layerTreeView) { 420 if (m_layerTreeView) {
413 m_layerTreeView->setNeedsBeginFrame(); 421 m_layerTreeView->setNeedsBeginFrame();
414 return; 422 return;
415 } 423 }
416 if (m_client) 424 if (m_client)
417 m_client->scheduleAnimation(); 425 m_client->scheduleAnimation();
418 } 426 }
419 427
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 } 1452 }
1445 1453
1446 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const 1454 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const
1447 { 1455 {
1448 if (!m_imeAcceptEvents) 1456 if (!m_imeAcceptEvents)
1449 return nullptr; 1457 return nullptr;
1450 return focusedLocalFrameInWidget(); 1458 return focusedLocalFrameInWidget();
1451 } 1459 }
1452 1460
1453 } // namespace blink 1461 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698