OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 if (!webFrame->frameWidget()) { | 714 if (!webFrame->frameWidget()) { |
715 m_webView->setRootGraphicsLayer(rootLayer); | 715 m_webView->setRootGraphicsLayer(rootLayer); |
716 return; | 716 return; |
717 } | 717 } |
718 ASSERT(webFrame); | 718 ASSERT(webFrame); |
719 ASSERT(webFrame->frameWidget()); | 719 ASSERT(webFrame->frameWidget()); |
720 toWebFrameWidgetImpl(webFrame->frameWidget())->setRootGraphicsLayer(root
Layer); | 720 toWebFrameWidgetImpl(webFrame->frameWidget())->setRootGraphicsLayer(root
Layer); |
721 } | 721 } |
722 } | 722 } |
723 | 723 |
| 724 void ChromeClientImpl::setCompositedDisplayList(PassOwnPtr<CompositedDisplayList
> compositedDisplayList) |
| 725 { |
| 726 m_webView->setCompositedDisplayList(compositedDisplayList); |
| 727 } |
| 728 |
| 729 CompositedDisplayList* ChromeClientImpl::compositedDisplayListForTesting() |
| 730 { |
| 731 if (WebCompositedDisplayList* compositedDisplayList = m_webView->compositedD
isplayList()) |
| 732 return compositedDisplayList->compositedDisplayListForTesting(); |
| 733 return nullptr; |
| 734 } |
| 735 |
724 void ChromeClientImpl::attachCompositorAnimationTimeline(WebCompositorAnimationT
imeline* compositorTimeline, LocalFrame* localRoot) | 736 void ChromeClientImpl::attachCompositorAnimationTimeline(WebCompositorAnimationT
imeline* compositorTimeline, LocalFrame* localRoot) |
725 { | 737 { |
726 // FIXME: For top-level frames we still use the WebView as a WebWidget. This | 738 // FIXME: For top-level frames we still use the WebView as a WebWidget. This |
727 // special case will be removed when top-level frames get WebFrameWidgets. | 739 // special case will be removed when top-level frames get WebFrameWidgets. |
728 if (localRoot->isMainFrame()) { | 740 if (localRoot->isMainFrame()) { |
729 m_webView->attachCompositorAnimationTimeline(compositorTimeline); | 741 m_webView->attachCompositorAnimationTimeline(compositorTimeline); |
730 } else { | 742 } else { |
731 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(localRoot); | 743 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(localRoot); |
732 // FIXME: The following conditional is only needed for staging until the | 744 // FIXME: The following conditional is only needed for staging until the |
733 // Chromium patch lands that instantiates a WebFrameWidget. | 745 // Chromium patch lands that instantiates a WebFrameWidget. |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 for (const auto& observer : observers) | 988 for (const auto& observer : observers) |
977 observer->willOpenPopup(); | 989 observer->willOpenPopup(); |
978 } | 990 } |
979 | 991 |
980 FloatSize ChromeClientImpl::elasticOverscroll() const | 992 FloatSize ChromeClientImpl::elasticOverscroll() const |
981 { | 993 { |
982 return m_webView->elasticOverscroll(); | 994 return m_webView->elasticOverscroll(); |
983 } | 995 } |
984 | 996 |
985 } // namespace blink | 997 } // namespace blink |
OLD | NEW |