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

Unified Diff: ash/shell.cc

Issue 10700057: Add always on top windows to the alt+tab list (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review fixes Created 8 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 | « ash/focus_cycler.cc ('k') | ash/wm/window_cycle_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index a340aa1e411dbda836ecf737a14dd215e361459f..3e21f2fc3c0d9038ca3dd8e1e62f8aa4c4f2ef2f 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -457,7 +457,8 @@ void Shell::Init() {
high_contrast_controller_.reset(new HighContrastController);
video_detector_.reset(new VideoDetector);
- window_cycle_controller_.reset(new WindowCycleController);
+ window_cycle_controller_.reset(
+ new WindowCycleController(activation_controller_.get()));
tooltip_controller_.reset(new internal::TooltipController(
drag_drop_controller_.get()));
@@ -704,6 +705,7 @@ void Shell::InitRootWindowController(
DCHECK(visibility_controller_.get());
DCHECK(drag_drop_controller_.get());
DCHECK(capture_controller_.get());
+ DCHECK(window_cycle_controller_.get());
root_window->set_focus_manager(focus_manager_.get());
input_method_filter_->SetInputMethodPropertyInRootWindow(root_window);
@@ -735,6 +737,8 @@ void Shell::InitRootWindowController(
root_window->GetChildById(internal::kShellWindowId_AlwaysOnTopContainer));
root_window->SetProperty(internal::kAlwaysOnTopControllerKey,
always_on_top_controller);
+
+ window_cycle_controller_->OnRootWindowAdded(root_window);
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « ash/focus_cycler.cc ('k') | ash/wm/window_cycle_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698