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 "chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 void CoreOobeHandler::UpdateKeyboardState() { | 391 void CoreOobeHandler::UpdateKeyboardState() { |
392 keyboard::KeyboardController* keyboard_controller = | 392 keyboard::KeyboardController* keyboard_controller = |
393 keyboard::KeyboardController::GetInstance(); | 393 keyboard::KeyboardController::GetInstance(); |
394 if (keyboard_controller) { | 394 if (keyboard_controller) { |
395 gfx::Rect bounds = keyboard_controller->current_keyboard_bounds(); | 395 gfx::Rect bounds = keyboard_controller->current_keyboard_bounds(); |
396 ShowControlBar(bounds.IsEmpty()); | 396 ShowControlBar(bounds.IsEmpty()); |
397 } | 397 } |
398 } | 398 } |
399 | 399 |
400 void CoreOobeHandler::UpdateClientAreaSize() { | 400 void CoreOobeHandler::UpdateClientAreaSize() { |
401 const gfx::Size& size = | 401 const gfx::Size& size = gfx::Screen::GetScreen()->GetPrimaryDisplay().size(); |
402 gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().size(); | |
403 SetClientAreaSize(size.width(), size.height()); | 402 SetClientAreaSize(size.width(), size.height()); |
404 } | 403 } |
405 | 404 |
406 void CoreOobeHandler::OnAccessibilityStatusChanged( | 405 void CoreOobeHandler::OnAccessibilityStatusChanged( |
407 const AccessibilityStatusEventDetails& details) { | 406 const AccessibilityStatusEventDetails& details) { |
408 if (details.notification_type == ACCESSIBILITY_MANAGER_SHUTDOWN) | 407 if (details.notification_type == ACCESSIBILITY_MANAGER_SHUTDOWN) |
409 accessibility_subscription_.reset(); | 408 accessibility_subscription_.reset(); |
410 else | 409 else |
411 UpdateA11yState(); | 410 UpdateA11yState(); |
412 } | 411 } |
(...skipping 15 matching lines...) Expand all Loading... |
428 | 427 |
429 void CoreOobeHandler::InitDemoModeDetection() { | 428 void CoreOobeHandler::InitDemoModeDetection() { |
430 demo_mode_detector_.InitDetection(); | 429 demo_mode_detector_.InitDetection(); |
431 } | 430 } |
432 | 431 |
433 void CoreOobeHandler::StopDemoModeDetection() { | 432 void CoreOobeHandler::StopDemoModeDetection() { |
434 demo_mode_detector_.StopDetection(); | 433 demo_mode_detector_.StopDetection(); |
435 } | 434 } |
436 | 435 |
437 } // namespace chromeos | 436 } // namespace chromeos |
OLD | NEW |