Chromium Code Reviews

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
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 746 matching lines...)
757 ASSERT(webFrame); 757 ASSERT(webFrame);
758 ASSERT(webFrame->frameWidget()); 758 ASSERT(webFrame->frameWidget());
759 toWebFrameWidgetImpl(webFrame->frameWidget())->setRootGraphicsLayer(root Layer); 759 toWebFrameWidgetImpl(webFrame->frameWidget())->setRootGraphicsLayer(root Layer);
760 } 760 }
761 } 761 }
762 762
763 void ChromeClientImpl::didPaint(const PaintArtifact& paintArtifact) 763 void ChromeClientImpl::didPaint(const PaintArtifact& paintArtifact)
764 { 764 {
765 // TODO(jbroman): This doesn't handle OOPIF correctly. We probably need a 765 // TODO(jbroman): This doesn't handle OOPIF correctly. We probably need a
766 // branch for WebFrameWidget, like attachRootGraphicsLayer. 766 // branch for WebFrameWidget, like attachRootGraphicsLayer.
767 m_webView->paintArtifactCompositor().update(paintArtifact); 767 m_webView->getPaintArtifactCompositor().update(paintArtifact);
768 } 768 }
769 769
770 void ChromeClientImpl::attachCompositorAnimationTimeline(CompositorAnimationTime line* compositorTimeline, LocalFrame* localRoot) 770 void ChromeClientImpl::attachCompositorAnimationTimeline(CompositorAnimationTime line* compositorTimeline, LocalFrame* localRoot)
771 { 771 {
772 // FIXME: For top-level frames we still use the WebView as a WebWidget. This 772 // FIXME: For top-level frames we still use the WebView as a WebWidget. This
773 // special case will be removed when top-level frames get WebFrameWidgets. 773 // special case will be removed when top-level frames get WebFrameWidgets.
774 if (localRoot->isMainFrame()) { 774 if (localRoot->isMainFrame()) {
775 m_webView->attachCompositorAnimationTimeline(compositorTimeline); 775 m_webView->attachCompositorAnimationTimeline(compositorTimeline);
776 } else { 776 } else {
777 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(localRoot); 777 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(localRoot);
(...skipping 280 matching lines...)
1058 if (m_webView->pageImportanceSignals()) 1058 if (m_webView->pageImportanceSignals())
1059 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript(); 1059 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript();
1060 } 1060 }
1061 1061
1062 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler() 1062 PassOwnPtr<WebFrameScheduler> ChromeClientImpl::createFrameScheduler()
1063 { 1063 {
1064 return m_webView->scheduler()->createFrameScheduler().release(); 1064 return m_webView->scheduler()->createFrameScheduler().release();
1065 } 1065 }
1066 1066
1067 } // namespace blink 1067 } // namespace blink
OLDNEW

Powered by Google App Engine