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

Side by Side Diff: chrome/browser/chromeos/login/ui/login_display_host_impl.cc

Issue 2024313002: Moves mash/wm/public -> ash/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 6 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 | « chrome/browser/chromeos/login/DEPS ('k') | mash/DEPS » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/chromeos/login/ui/login_display_host_impl.h" 5 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/audio/sounds.h" 10 #include "ash/audio/sounds.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 #include "ui/gfx/geometry/size.h" 98 #include "ui/gfx/geometry/size.h"
99 #include "ui/gfx/transform.h" 99 #include "ui/gfx/transform.h"
100 #include "ui/keyboard/keyboard_controller.h" 100 #include "ui/keyboard/keyboard_controller.h"
101 #include "ui/keyboard/keyboard_util.h" 101 #include "ui/keyboard/keyboard_util.h"
102 #include "ui/views/focus/focus_manager.h" 102 #include "ui/views/focus/focus_manager.h"
103 #include "ui/views/widget/widget.h" 103 #include "ui/views/widget/widget.h"
104 #include "ui/views/widget/widget_delegate.h" 104 #include "ui/views/widget/widget_delegate.h"
105 #include "url/gurl.h" 105 #include "url/gurl.h"
106 106
107 #if defined(MOJO_SHELL_CLIENT) 107 #if defined(MOJO_SHELL_CLIENT)
108 #include "ash/public/interfaces/container.mojom.h"
108 #include "components/mus/public/cpp/property_type_converters.h" 109 #include "components/mus/public/cpp/property_type_converters.h"
109 #include "mash/wm/public/interfaces/container.mojom.h"
110 #endif 110 #endif
111 111
112 namespace { 112 namespace {
113 113
114 // Maximum delay for startup sound after 'loginPromptVisible' signal. 114 // Maximum delay for startup sound after 'loginPromptVisible' signal.
115 const int kStartupSoundMaxDelayMs = 2000; 115 const int kStartupSoundMaxDelayMs = 2000;
116 116
117 // URL which corresponds to the login WebUI. 117 // URL which corresponds to the login WebUI.
118 const char kLoginURL[] = "chrome://oobe/login"; 118 const char kLoginURL[] = "chrome://oobe/login";
119 119
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 params.bounds = background_bounds(); 1140 params.bounds = background_bounds();
1141 params.show_state = ui::SHOW_STATE_FULLSCREEN; 1141 params.show_state = ui::SHOW_STATE_FULLSCREEN;
1142 params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW; 1142 params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
1143 // The ash::Shell containers are not available in Mash 1143 // The ash::Shell containers are not available in Mash
1144 if (!chrome::IsRunningInMash()) { 1144 if (!chrome::IsRunningInMash()) {
1145 params.parent = 1145 params.parent =
1146 ash::Shell::GetContainer(ash::Shell::GetPrimaryRootWindow(), 1146 ash::Shell::GetContainer(ash::Shell::GetPrimaryRootWindow(),
1147 ash::kShellWindowId_LockScreenContainer); 1147 ash::kShellWindowId_LockScreenContainer);
1148 } else { 1148 } else {
1149 #if defined(MOJO_SHELL_CLIENT) 1149 #if defined(MOJO_SHELL_CLIENT)
1150 params.mus_properties[mash::wm::mojom::kWindowContainer_Property] = 1150 params.mus_properties[ash::mojom::kWindowContainer_Property] =
1151 mojo::ConvertTo<std::vector<uint8_t>>( 1151 mojo::ConvertTo<std::vector<uint8_t>>(
1152 static_cast<int32_t>(mash::wm::mojom::Container::LOGIN_WINDOWS)); 1152 static_cast<int32_t>(ash::mojom::Container::LOGIN_WINDOWS));
1153 #else 1153 #else
1154 NOTREACHED(); 1154 NOTREACHED();
1155 #endif 1155 #endif
1156 } 1156 }
1157 login_window_ = new views::Widget; 1157 login_window_ = new views::Widget;
1158 params.delegate = new LoginWidgetDelegate(login_window_); 1158 params.delegate = new LoginWidgetDelegate(login_window_);
1159 login_window_->Init(params); 1159 login_window_->Init(params);
1160 1160
1161 login_view_ = new WebUILoginView(); 1161 login_view_ = new WebUILoginView();
1162 login_view_->Init(); 1162 login_view_->Init();
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1383 1383
1384 locale_util::SwitchLanguageCallback callback( 1384 locale_util::SwitchLanguageCallback callback(
1385 base::Bind(&OnLanguageSwitchedCallback, base::Passed(std::move(data)))); 1385 base::Bind(&OnLanguageSwitchedCallback, base::Passed(std::move(data))));
1386 1386
1387 // Load locale keyboards here. Hardware layout would be automatically enabled. 1387 // Load locale keyboards here. Hardware layout would be automatically enabled.
1388 locale_util::SwitchLanguage(locale, true, true /* login_layouts_only */, 1388 locale_util::SwitchLanguage(locale, true, true /* login_layouts_only */,
1389 callback, ProfileManager::GetActiveUserProfile()); 1389 callback, ProfileManager::GetActiveUserProfile());
1390 } 1390 }
1391 1391
1392 } // namespace chromeos 1392 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/DEPS ('k') | mash/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698