| 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 <queue> | 7 #include <queue> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/ash_constants.h" | 10 #include "ash/ash_constants.h" |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 shell->AddShellObserver(this); | 615 shell->AddShellObserver(this); |
| 616 | 616 |
| 617 if (root_window_type == PRIMARY) { | 617 if (root_window_type == PRIMARY) { |
| 618 root_window_layout()->OnWindowResized(); | 618 root_window_layout()->OnWindowResized(); |
| 619 shell->InitKeyboard(this); | 619 shell->InitKeyboard(this); |
| 620 } else { | 620 } else { |
| 621 root_window_layout()->OnWindowResized(); | 621 root_window_layout()->OnWindowResized(); |
| 622 shell->desktop_background_controller()->OnRootWindowAdded(root_window()); | 622 shell->desktop_background_controller()->OnRootWindowAdded(root_window()); |
| 623 shell->high_contrast_controller()->OnRootWindowAdded( | 623 shell->high_contrast_controller()->OnRootWindowAdded( |
| 624 root_window_->window()); | 624 root_window_->window()); |
| 625 root_window_->ShowRootWindow(); | 625 root_window_->host()->Show(); |
| 626 | 626 |
| 627 // Create a launcher if a user is already logged in. | 627 // Create a launcher if a user is already logged in. |
| 628 if (shell->session_state_delegate()->NumberOfLoggedInUsers()) | 628 if (shell->session_state_delegate()->NumberOfLoggedInUsers()) |
| 629 shelf()->CreateLauncher(); | 629 shelf()->CreateLauncher(); |
| 630 } | 630 } |
| 631 | 631 |
| 632 solo_window_tracker_.reset(new SoloWindowTracker(root_window_.get())); | 632 solo_window_tracker_.reset(new SoloWindowTracker(root_window_.get())); |
| 633 if (docked_layout_manager_) | 633 if (docked_layout_manager_) |
| 634 docked_layout_manager_->AddObserver(solo_window_tracker_.get()); | 634 docked_layout_manager_->AddObserver(solo_window_tracker_.get()); |
| 635 } | 635 } |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 DisableTouchHudProjection(); | 922 DisableTouchHudProjection(); |
| 923 } | 923 } |
| 924 | 924 |
| 925 RootWindowController* GetRootWindowController( | 925 RootWindowController* GetRootWindowController( |
| 926 const aura::Window* root_window) { | 926 const aura::Window* root_window) { |
| 927 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; | 927 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; |
| 928 } | 928 } |
| 929 | 929 |
| 930 } // namespace internal | 930 } // namespace internal |
| 931 } // namespace ash | 931 } // namespace ash |
| OLD | NEW |