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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 10828356: Very basic Android browser-side compositing support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index ecd1f40ce0c36f9d6fc8155f7afeee9f5d4f1988..3ecbf5e5a89ecd6aa2746b6b3a584c7251b86cd2 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1369,6 +1369,16 @@ void WebContentsImpl::RequestMediaAccessPermission(
callback.Run(content::MediaStreamDevices());
}
+void WebContentsImpl::AttachLayer(WebKit::WebLayer& layer) {
+ if (delegate_)
+ delegate_->AttachLayer(this, layer);
klobag.chromium 2012/08/22 07:01:19 Isn't this assume WebContentsImpl only have one We
no sievers 2012/08/22 21:17:40 It could end up adding more than one theoretically
+}
+
+void WebContentsImpl::RemoveLayer(WebKit::WebLayer& layer) {
+ if (delegate_)
+ delegate_->RemoveLayer(this, layer);
+}
+
void WebContentsImpl::UpdatePreferredSize(const gfx::Size& pref_size) {
preferred_size_ = pref_size;
if (delegate_)

Powered by Google App Engine
This is Rietveld 408576698