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/lock/webui_screen_locker.h" | 5 #include "chrome/browser/chromeos/login/lock/webui_screen_locker.h" |
6 | 6 |
7 #include "ash/common/wm_shell.h" | 7 #include "ash/common/wm_shell.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ash/system/chromeos/power/power_event_observer.h" | 9 #include "ash/system/chromeos/power/power_event_observer.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 } | 379 } |
380 } else { | 380 } else { |
381 // Keyboard has been shown. | 381 // Keyboard has been shown. |
382 if (GetOobeUI()) { | 382 if (GetOobeUI()) { |
383 GetOobeUI()->GetCoreOobeActor()->ShowControlBar(false); | 383 GetOobeUI()->GetCoreOobeActor()->ShowControlBar(false); |
384 GetOobeUI()->GetCoreOobeActor()->ShowPinKeyboard(false); | 384 GetOobeUI()->GetCoreOobeActor()->ShowPinKeyboard(false); |
385 } | 385 } |
386 } | 386 } |
387 } | 387 } |
388 | 388 |
| 389 void WebUIScreenLocker::OnKeyboardHidden() {} |
| 390 |
389 //////////////////////////////////////////////////////////////////////////////// | 391 //////////////////////////////////////////////////////////////////////////////// |
390 // display::DisplayObserver: | 392 // display::DisplayObserver: |
391 | 393 |
392 void WebUIScreenLocker::OnDisplayAdded(const display::Display& new_display) {} | 394 void WebUIScreenLocker::OnDisplayAdded(const display::Display& new_display) {} |
393 | 395 |
394 void WebUIScreenLocker::OnDisplayRemoved(const display::Display& old_display) {} | 396 void WebUIScreenLocker::OnDisplayRemoved(const display::Display& old_display) {} |
395 | 397 |
396 void WebUIScreenLocker::OnDisplayMetricsChanged(const display::Display& display, | 398 void WebUIScreenLocker::OnDisplayMetricsChanged(const display::Display& display, |
397 uint32_t changed_metrics) { | 399 uint32_t changed_metrics) { |
398 display::Display primary_display = | 400 display::Display primary_display = |
399 display::Screen::GetScreen()->GetPrimaryDisplay(); | 401 display::Screen::GetScreen()->GetPrimaryDisplay(); |
400 if (display.id() != primary_display.id() || | 402 if (display.id() != primary_display.id() || |
401 !(changed_metrics & DISPLAY_METRIC_BOUNDS)) { | 403 !(changed_metrics & DISPLAY_METRIC_BOUNDS)) { |
402 return; | 404 return; |
403 } | 405 } |
404 | 406 |
405 if (GetOobeUI()) { | 407 if (GetOobeUI()) { |
406 const gfx::Size& size = primary_display.size(); | 408 const gfx::Size& size = primary_display.size(); |
407 GetOobeUI()->GetCoreOobeActor()->SetClientAreaSize(size.width(), | 409 GetOobeUI()->GetCoreOobeActor()->SetClientAreaSize(size.width(), |
408 size.height()); | 410 size.height()); |
409 } | 411 } |
410 } | 412 } |
411 | 413 |
412 } // namespace chromeos | 414 } // namespace chromeos |
OLD | NEW |