OLD | NEW |
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/common/shell_window_ids.h" | 10 #include "ash/common/shell_window_ids.h" |
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 // Keyboard has been hidden. | 938 // Keyboard has been hidden. |
939 if (GetOobeUI()) | 939 if (GetOobeUI()) |
940 GetOobeUI()->GetCoreOobeActor()->ShowControlBar(true); | 940 GetOobeUI()->GetCoreOobeActor()->ShowControlBar(true); |
941 } else if (!new_bounds.IsEmpty()) { | 941 } else if (!new_bounds.IsEmpty()) { |
942 // Keyboard has been shown. | 942 // Keyboard has been shown. |
943 if (GetOobeUI()) | 943 if (GetOobeUI()) |
944 GetOobeUI()->GetCoreOobeActor()->ShowControlBar(false); | 944 GetOobeUI()->GetCoreOobeActor()->ShowControlBar(false); |
945 } | 945 } |
946 } | 946 } |
947 | 947 |
| 948 void LoginDisplayHostImpl::OnKeyboardHidden() {} |
| 949 |
948 //////////////////////////////////////////////////////////////////////////////// | 950 //////////////////////////////////////////////////////////////////////////////// |
949 // LoginDisplayHostImpl, display::DisplayObserver: | 951 // LoginDisplayHostImpl, display::DisplayObserver: |
950 | 952 |
951 void LoginDisplayHostImpl::OnDisplayAdded(const display::Display& new_display) { | 953 void LoginDisplayHostImpl::OnDisplayAdded(const display::Display& new_display) { |
952 } | 954 } |
953 | 955 |
954 void LoginDisplayHostImpl::OnDisplayRemoved( | 956 void LoginDisplayHostImpl::OnDisplayRemoved( |
955 const display::Display& old_display) {} | 957 const display::Display& old_display) {} |
956 | 958 |
957 void LoginDisplayHostImpl::OnDisplayMetricsChanged( | 959 void LoginDisplayHostImpl::OnDisplayMetricsChanged( |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1364 | 1366 |
1365 locale_util::SwitchLanguageCallback callback( | 1367 locale_util::SwitchLanguageCallback callback( |
1366 base::Bind(&OnLanguageSwitchedCallback, base::Passed(std::move(data)))); | 1368 base::Bind(&OnLanguageSwitchedCallback, base::Passed(std::move(data)))); |
1367 | 1369 |
1368 // Load locale keyboards here. Hardware layout would be automatically enabled. | 1370 // Load locale keyboards here. Hardware layout would be automatically enabled. |
1369 locale_util::SwitchLanguage(locale, true, true /* login_layouts_only */, | 1371 locale_util::SwitchLanguage(locale, true, true /* login_layouts_only */, |
1370 callback, ProfileManager::GetActiveUserProfile()); | 1372 callback, ProfileManager::GetActiveUserProfile()); |
1371 } | 1373 } |
1372 | 1374 |
1373 } // namespace chromeos | 1375 } // namespace chromeos |
OLD | NEW |