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

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

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: and another rebase Created 4 years, 11 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
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 "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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 void CoreOobeHandler::UpdateKeyboardState() { 389 void CoreOobeHandler::UpdateKeyboardState() {
390 keyboard::KeyboardController* keyboard_controller = 390 keyboard::KeyboardController* keyboard_controller =
391 keyboard::KeyboardController::GetInstance(); 391 keyboard::KeyboardController::GetInstance();
392 if (keyboard_controller) { 392 if (keyboard_controller) {
393 gfx::Rect bounds = keyboard_controller->current_keyboard_bounds(); 393 gfx::Rect bounds = keyboard_controller->current_keyboard_bounds();
394 ShowControlBar(bounds.IsEmpty()); 394 ShowControlBar(bounds.IsEmpty());
395 } 395 }
396 } 396 }
397 397
398 void CoreOobeHandler::UpdateClientAreaSize() { 398 void CoreOobeHandler::UpdateClientAreaSize() {
399 const gfx::Size& size = 399 const gfx::Size& size = gfx::Screen::GetScreen()->GetPrimaryDisplay().size();
400 gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().size();
401 SetClientAreaSize(size.width(), size.height()); 400 SetClientAreaSize(size.width(), size.height());
402 } 401 }
403 402
404 void CoreOobeHandler::OnAccessibilityStatusChanged( 403 void CoreOobeHandler::OnAccessibilityStatusChanged(
405 const AccessibilityStatusEventDetails& details) { 404 const AccessibilityStatusEventDetails& details) {
406 if (details.notification_type == ACCESSIBILITY_MANAGER_SHUTDOWN) 405 if (details.notification_type == ACCESSIBILITY_MANAGER_SHUTDOWN)
407 accessibility_subscription_.reset(); 406 accessibility_subscription_.reset();
408 else 407 else
409 UpdateA11yState(); 408 UpdateA11yState();
410 } 409 }
(...skipping 15 matching lines...) Expand all
426 425
427 void CoreOobeHandler::InitDemoModeDetection() { 426 void CoreOobeHandler::InitDemoModeDetection() {
428 demo_mode_detector_.InitDetection(); 427 demo_mode_detector_.InitDetection();
429 } 428 }
430 429
431 void CoreOobeHandler::StopDemoModeDetection() { 430 void CoreOobeHandler::StopDemoModeDetection() {
432 demo_mode_detector_.StopDetection(); 431 demo_mode_detector_.StopDetection();
433 } 432 }
434 433
435 } // namespace chromeos 434 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/toolbar/toolbar_button.cc ('k') | chrome/browser/ui/window_sizer/window_sizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698