| 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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 ->GetSystemModalLayoutManager(nullptr) | 742 ->GetSystemModalLayoutManager(nullptr) |
| 743 ->has_window_dimmer()) { | 743 ->has_window_dimmer()) { |
| 744 GetSystemModalLayoutManager(nullptr)->CreateModalBackground(); | 744 GetSystemModalLayoutManager(nullptr)->CreateModalBackground(); |
| 745 } | 745 } |
| 746 | 746 |
| 747 shell->AddShellObserver(this); | 747 shell->AddShellObserver(this); |
| 748 | 748 |
| 749 root_window_layout_manager_->OnWindowResized(); | 749 root_window_layout_manager_->OnWindowResized(); |
| 750 if (root_window_type == RootWindowType::PRIMARY) { | 750 if (root_window_type == RootWindowType::PRIMARY) { |
| 751 if (Shell::GetAshConfig() != Config::MASH) | 751 if (Shell::GetAshConfig() != Config::MASH) |
| 752 shell->InitKeyboard(); | 752 shell->CreateKeyboard(); |
| 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(root_window); | 761 shell->OnRootWindowAdded(root_window); |
| 762 } | 762 } |
| (...skipping 317 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 |