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

Unified Diff: Source/web/ChromeClientImpl.cpp

Issue 749333002: Plumbing for frame-specific WebWidgets (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: dcheng review comments Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: Source/web/ChromeClientImpl.cpp
diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp
index 40779d4bdcec44f4db093d7f5bce014a967ddb18..cf61b9d73f34cdfc05002eaa01c1eb32112b2e4c 100644
--- a/Source/web/ChromeClientImpl.cpp
+++ b/Source/web/ChromeClientImpl.cpp
@@ -492,6 +492,12 @@ void ChromeClientImpl::scheduleAnimation()
m_webView->scheduleAnimation();
}
+void ChromeClientImpl::scheduleAnimationForFrame(LocalFrame* rootFrame)
+{
+ // FIXME: This will proxy to a WebWidget attached to the WebLocalFrameImpl.
+ scheduleAnimation();
+}
+
IntRect ChromeClientImpl::rootViewToScreen(const IntRect& rect) const
{
IntRect screenRect(rect);
@@ -690,8 +696,9 @@ GraphicsLayerFactory* ChromeClientImpl::graphicsLayerFactory() const
return m_webView->graphicsLayerFactory();
}
-void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer)
+void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer, LocalFrame* frame)
{
+ // FIXME: Add call to frame's widget for non-zero frames.
m_webView->setRootGraphicsLayer(rootLayer);
}

Powered by Google App Engine
This is Rietveld 408576698