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

Unified Diff: ui/views/corewm/capture_controller.cc

Issue 184903003: Window ownership -> WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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 | « ui/shell_dialogs/select_file_dialog_win.cc ('k') | ui/views/corewm/capture_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/capture_controller.cc
diff --git a/ui/views/corewm/capture_controller.cc b/ui/views/corewm/capture_controller.cc
index 686e877868197275835da5f82affcc026af88fa4..daa34dd1aa42849b20434dadff73bed090ff89c9 100644
--- a/ui/views/corewm/capture_controller.cc
+++ b/ui/views/corewm/capture_controller.cc
@@ -57,7 +57,7 @@ void CaptureController::SetCapture(aura::Window* new_capture_window) {
for (RootWindows::const_iterator i = root_windows.begin();
i != root_windows.end(); ++i) {
- aura::client::CaptureDelegate* delegate = (*i)->GetDispatcher();
+ aura::client::CaptureDelegate* delegate = (*i)->GetHost()->dispatcher();
delegate->UpdateCapture(old_capture_window, new_capture_window);
}
@@ -66,11 +66,12 @@ void CaptureController::SetCapture(aura::Window* new_capture_window) {
if (capture_root != old_capture_root) {
if (old_capture_root) {
aura::client::CaptureDelegate* delegate =
- old_capture_root->GetDispatcher();
+ old_capture_root->GetHost()->dispatcher();
delegate->ReleaseNativeCapture();
}
if (capture_root) {
- aura::client::CaptureDelegate* delegate = capture_root->GetDispatcher();
+ aura::client::CaptureDelegate* delegate =
+ capture_root->GetHost()->dispatcher();
delegate->SetNativeCapture();
}
}
« no previous file with comments | « ui/shell_dialogs/select_file_dialog_win.cc ('k') | ui/views/corewm/capture_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698