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

Issue 8976012: chromeos: Implement power button animations for Aura. (Closed)

Created:
9 years ago by Daniel Erat
Modified:
8 years, 11 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, Ian Vollick, dhollowa+watch_chromium.org, jonathan.backer, Paweł Hajdan Jr., brettw-cc_chromium.org, piman+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

chromeos: Implement power button animations for Aura. This adds animated transitions first to the lock screen and then to shutdown similar to those currently implemented in the Chrome OS power manager and X window manager. I'll add support for the lock key in a later change. BUG=98328 TEST=added tests; also did a lot of manual testing TBR=evan@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116245

Patch Set 1 #

Patch Set 2 : tests and more #

Patch Set 3 : notify controller about initial state #

Patch Set 4 : hopefully fix windows compilation errors #

Patch Set 5 : use aura::RootWindow::ShowCursor() to hide cursor #

Total comments: 2

Patch Set 6 : add User::is_guest() #

Patch Set 7 : update copyright year to 2012 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1290 lines, -49 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 3 chunks +4 lines, -1 line 0 comments Download
M ash/shell.h View 1 2 3 4 5 6 4 chunks +6 lines, -2 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 3 chunks +5 lines, -6 lines 0 comments Download
A ash/wm/power_button_controller.h View 1 2 3 4 5 6 1 chunk +224 lines, -0 lines 0 comments Download
A ash/wm/power_button_controller.cc View 1 2 3 4 5 6 1 chunk +495 lines, -0 lines 0 comments Download
A ash/wm/power_button_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +276 lines, -0 lines 0 comments Download
M ash/wm/shadow_controller.h View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
M base/timer.h View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.h View 1 2 3 4 5 6 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 3 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/chromeos/dbus/power_manager_client.h View 1 2 3 4 5 6 3 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/dbus/power_manager_client.cc View 1 2 3 4 5 6 12 chunks +34 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/login/screen_locker.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/user.h View 1 2 3 4 5 6 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/user.cc View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager.cc View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
A chrome/browser/chromeos/power/power_button_controller_delegate_chromeos.h View 1 2 3 4 5 6 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/power/power_button_controller_delegate_chromeos.cc View 1 2 3 4 5 6 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/power/power_button_observer.h View 1 2 3 4 5 6 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/power/power_button_observer.cc View 1 2 3 4 5 6 1 chunk +84 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 2 chunks +8 lines, -1 line 0 comments Download
M ui/aura/root_window.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M ui/aura/root_window_observer.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Daniel Erat
This change got sort of big. At least it has tests? Steven: chrome/browser/chromeos/ Ben: everything ...
8 years, 12 months ago (2011-12-29 01:05:14 UTC) #1
Ben Goodger (Google)
You probably need a base owner for the comment change there to satisfy the owners ...
8 years, 11 months ago (2012-01-03 17:03:42 UTC) #2
stevenjb
lgtm with nit http://codereview.chromium.org/8976012/diff/12001/chrome/browser/chromeos/power/power_button_observer.cc File chrome/browser/chromeos/power/power_button_observer.cc (right): http://codereview.chromium.org/8976012/diff/12001/chrome/browser/chromeos/power/power_button_observer.cc#newcode38 chrome/browser/chromeos/power/power_button_observer.cc:38: user_manager->logged_in_user().email() == UserManager::kGuestUser; nit: I think ...
8 years, 11 months ago (2012-01-03 17:05:41 UTC) #3
Daniel Erat
http://codereview.chromium.org/8976012/diff/12001/chrome/browser/chromeos/power/power_button_observer.cc File chrome/browser/chromeos/power/power_button_observer.cc (right): http://codereview.chromium.org/8976012/diff/12001/chrome/browser/chromeos/power/power_button_observer.cc#newcode38 chrome/browser/chromeos/power/power_button_observer.cc:38: user_manager->logged_in_user().email() == UserManager::kGuestUser; On 2012/01/03 17:05:41, stevenjb (chromium) wrote: ...
8 years, 11 months ago (2012-01-03 19:12:12 UTC) #4
stevenjb
8 years, 11 months ago (2012-01-03 19:26:48 UTC) #5
LGTM
Storing is_guest_ explicitly in User seems best to me.

Powered by Google App Engine
This is Rietveld 408576698