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

Unified Diff: chrome/browser/ui/views/frame/contents_web_view.cc

Issue 697223003: MacViews: Get chrome/browser/ui/views/frame to compile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@constrained
Patch Set: Rebase. Add mac_views_browser build flag 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: chrome/browser/ui/views/frame/contents_web_view.cc
diff --git a/chrome/browser/ui/views/frame/contents_web_view.cc b/chrome/browser/ui/views/frame/contents_web_view.cc
index a86e39c4ebfbfa89e97c153253b52e04e5089aa8..ac026a9e74184f2b9638e8d24d72e52d2eeead33 100644
--- a/chrome/browser/ui/views/frame/contents_web_view.cc
+++ b/chrome/browser/ui/views/frame/contents_web_view.cc
@@ -83,7 +83,10 @@ void ContentsWebView::OnLayerRecreated(ui::Layer* old_layer,
void ContentsWebView::CloneWebContentsLayer() {
if (!web_contents())
return;
+#if defined(USE_AURA)
+ // TODO(andresantoso): Figure out how to port this for MacViews.
cloned_layer_tree_ = wm::RecreateLayers(web_contents()->GetNativeView());
tapted 2014/11/04 02:33:43 So, after poking some more, I think this won't be
Andre 2014/11/05 02:04:23 Done. Thanks for figuring it out.
+#endif
if (!cloned_layer_tree_ || !cloned_layer_tree_->root()) {
cloned_layer_tree_.reset();
return;

Powered by Google App Engine
This is Rietveld 408576698