OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |