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

Side by Side Diff: ash/root_window_controller.cc

Issue 2965503003: Ash: Inline InitKeyboard, and make the caller of it call CreateKeyboard. (Closed)
Patch Set: Ash: Inline InitKeyboard, and make the caller of it call CreateKeyboard. Created 3 years, 5 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 | « no previous file | 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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 | « no previous file | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698