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

Unified Diff: ui/aura/root_window.cc

Issue 11189148: desktop linux aura: Fix event/capture focus after dragging a window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows compile. Created 8 years, 2 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/aura/root_window.h ('k') | ui/aura/root_window_host_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 8e1cef986634b8eb7d67d2afd2ce11550ab70cef..d447b13a59a85ac6272288f0010494d031dfff28 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -924,12 +924,18 @@ bool RootWindow::OnHostTouchEvent(ui::TouchEvent* event) {
return ProcessGestures(gestures.get()) ? true : handled;
}
-void RootWindow::OnHostLostCapture() {
+void RootWindow::OnHostLostWindowCapture() {
Window* capture_window = client::GetCaptureWindow(this);
if (capture_window && capture_window->GetRootWindow() == this)
capture_window->ReleaseCapture();
}
+void RootWindow::OnHostLostMouseGrab() {
+ mouse_pressed_handler_ = NULL;
+ mouse_moved_handler_ = NULL;
+ mouse_event_dispatch_target_ = NULL;
+}
+
void RootWindow::OnHostPaint() {
Draw();
}
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/aura/root_window_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698