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

Side by Side Diff: chrome/browser/chromeos/login/lock/webui_screen_locker.cc

Issue 2323823004: Add action for each button on opt-in IME menu. (Closed)
Patch Set: Created 4 years, 3 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698