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

Unified Diff: ash/common/wm/window_cycle_list.cc

Issue 2284763002: Redirect all mouse input to Alt+Tab window when it's visible, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: handle lost capture Created 4 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
« no previous file with comments | « no previous file | ash/wm/window_cycle_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/window_cycle_list.cc
diff --git a/ash/common/wm/window_cycle_list.cc b/ash/common/wm/window_cycle_list.cc
index 70620fbfa0636a83d55f7bafe28a54fbde6c5e1e..0807798230308a1c262a8f933a90c4f312cab8fe 100644
--- a/ash/common/wm/window_cycle_list.cc
+++ b/ash/common/wm/window_cycle_list.cc
@@ -388,6 +388,10 @@ class WindowCycleView : public views::WidgetDelegateView {
}
}
+ void OnMouseCaptureLost() override {
+ WmShell::Get()->window_cycle_controller()->StopCycling();
+ }
+
View* GetContentsView() override { return this; }
View* GetInitiallyFocusedView() override {
@@ -595,6 +599,8 @@ void WindowCycleList::InitWindowCycleView() {
widget_rect.set_height(widget_height);
widget->SetBounds(widget_rect);
widget->Show();
+ widget->SetCapture(cycle_view_);
+ widget->set_auto_release_capture(false);
cycle_ui_widget_.reset(widget);
}
« no previous file with comments | « no previous file | ash/wm/window_cycle_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698