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

Side by Side Diff: ash/root_window_controller.cc

Issue 2906693003: [mus+ash] Removes WmWindow from screen_dimmer and video_detector (Closed)
Patch Set: [mus+ash] Removes WmWindow from screen_dimmer and video_detector Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « ash/high_contrast/high_contrast_controller.cc ('k') | ash/shell.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/root_window_controller.h" 5 #include "ash/root_window_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <queue> 8 #include <queue>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 if (Shell::GetAshConfig() != Config::MASH) 751 if (Shell::GetAshConfig() != Config::MASH)
752 shell->InitKeyboard(); 752 shell->InitKeyboard();
753 } else { 753 } else {
754 window_tree_host_->Show(); 754 window_tree_host_->Show();
755 755
756 // At the login screen the shelf will be hidden because its container window 756 // At the login screen the shelf will be hidden because its container window
757 // is hidden. InitializeShelf() will make it visible. 757 // is hidden. InitializeShelf() will make it visible.
758 InitializeShelf(); 758 InitializeShelf();
759 759
760 // Notify shell observers about new root window. 760 // Notify shell observers about new root window.
761 shell->OnRootWindowAdded(WmWindow::Get(root_window)); 761 shell->OnRootWindowAdded(root_window);
762 } 762 }
763 763
764 // TODO: AshTouchExplorationManager doesn't work with mus. 764 // TODO: AshTouchExplorationManager doesn't work with mus.
765 // http://crbug.com/679782 765 // http://crbug.com/679782
766 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( 766 if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
767 switches::kAshDisableTouchExplorationMode) && 767 switches::kAshDisableTouchExplorationMode) &&
768 Shell::GetAshConfig() != Config::MASH) { 768 Shell::GetAshConfig() != Config::MASH) {
769 touch_exploration_manager_.reset(new AshTouchExplorationManager(this)); 769 touch_exploration_manager_.reset(new AshTouchExplorationManager(this));
770 } 770 }
771 } 771 }
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 EnableTouchHudProjection(); 1080 EnableTouchHudProjection();
1081 else 1081 else
1082 DisableTouchHudProjection(); 1082 DisableTouchHudProjection();
1083 } 1083 }
1084 1084
1085 RootWindowController* GetRootWindowController(const aura::Window* root_window) { 1085 RootWindowController* GetRootWindowController(const aura::Window* root_window) {
1086 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr; 1086 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr;
1087 } 1087 }
1088 1088
1089 } // namespace ash 1089 } // namespace ash
OLDNEW
« no previous file with comments | « ash/high_contrast/high_contrast_controller.cc ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698