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

Unified Diff: mojo/views/native_widget_view_manager.cc

Issue 541013002: Fix the buttons in the mojo demo window manager debug panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « mojo/views/native_widget_view_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/views/native_widget_view_manager.cc
diff --git a/mojo/views/native_widget_view_manager.cc b/mojo/views/native_widget_view_manager.cc
index 259e3fbb3660dacc8ec0ac514f3ce1222a9ca1ba..5bbf7a5bbf0c2db09fc2eb3fea06ba8065b4b6ac 100644
--- a/mojo/views/native_widget_view_manager.cc
+++ b/mojo/views/native_widget_view_manager.cc
@@ -113,8 +113,7 @@ NativeWidgetViewManager::NativeWidgetViewManager(
focus_client_.get());
window_tree_host_->window()->AddPreTargetHandler(focus_client_.get());
- aura::client::SetCaptureClient(
- window_tree_host_->window(),
+ capture_client_.reset(
new aura::client::DefaultCaptureClient(window_tree_host_->window()));
}
@@ -128,8 +127,6 @@ void NativeWidgetViewManager::InitNativeWidget(
views::Widget::InitParams params(in_params);
params.parent = window_tree_host_->window();
NativeWidgetAura::InitNativeWidget(params);
- capture_client_.reset(
- new wm::ScopedCaptureClient(window_tree_host_->window()));
}
void NativeWidgetViewManager::CompositorContentsChanged(
« no previous file with comments | « mojo/views/native_widget_view_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698