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

Issue 10008074: Cancel partial screenshot UI when lock happens. (Closed)

Created:
8 years, 8 months ago by Jun Mukai
Modified:
8 years, 8 months ago
Reviewers:
Daniel Erat, sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Cancel partial screenshot UI when lock happens. BUG=122901 TEST=manually, aura_shell_unittests passed Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=133164

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : Use observers #

Total comments: 6

Patch Set 4 : #

Total comments: 2

Patch Set 5 : use enum #

Total comments: 7

Patch Set 6 : #

Patch Set 7 : #

Total comments: 6

Patch Set 8 : #

Patch Set 9 : coding style fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -90 lines) Patch
M ash/shell.h View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 3 chunks +14 lines, -0 lines 0 comments Download
M ash/shell_observer.h View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M ash/wm/partial_screenshot_event_filter.h View 1 2 3 4 5 4 chunks +12 lines, -2 lines 0 comments Download
M ash/wm/partial_screenshot_event_filter.cc View 1 2 3 4 5 3 chunks +18 lines, -1 line 0 comments Download
M ash/wm/power_button_controller.h View 1 2 3 4 5 6 5 chunks +13 lines, -20 lines 0 comments Download
M ash/wm/power_button_controller.cc View 1 2 3 4 5 6 7 11 chunks +37 lines, -20 lines 0 comments Download
M ash/wm/power_button_controller_unittest.cc View 1 2 3 4 5 19 chunks +33 lines, -33 lines 0 comments Download
M chrome/browser/chromeos/power/power_button_observer.cc View 1 2 3 4 5 6 7 8 4 chunks +23 lines, -14 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Jun Mukai
8 years, 8 months ago (2012-04-13 01:49:32 UTC) #1
sky
I don't like tying these two classes together. Could you add a notification/observer so that ...
8 years, 8 months ago (2012-04-13 15:43:47 UTC) #2
Jun Mukai
Added methods to ShellObserver. Not sure this is the right class to be added though...
8 years, 8 months ago (2012-04-16 05:33:53 UTC) #3
sky
http://codereview.chromium.org/10008074/diff/6001/ash/shell_observer.h File ash/shell_observer.h (right): http://codereview.chromium.org/10008074/diff/6001/ash/shell_observer.h#newcode19 ash/shell_observer.h:19: virtual void OnLoginStateChange(bool logged_in, bool is_guest) {} This should ...
8 years, 8 months ago (2012-04-16 14:47:44 UTC) #4
Jun Mukai
http://codereview.chromium.org/10008074/diff/6001/ash/shell_observer.h File ash/shell_observer.h (right): http://codereview.chromium.org/10008074/diff/6001/ash/shell_observer.h#newcode19 ash/shell_observer.h:19: virtual void OnLoginStateChange(bool logged_in, bool is_guest) {} On 2012/04/16 ...
8 years, 8 months ago (2012-04-17 03:34:39 UTC) #5
Jun Mukai
PTAL
8 years, 8 months ago (2012-04-18 12:52:04 UTC) #6
sky
http://codereview.chromium.org/10008074/diff/9001/ash/shell_observer.h File ash/shell_observer.h (right): http://codereview.chromium.org/10008074/diff/9001/ash/shell_observer.h#newcode19 ash/shell_observer.h:19: virtual void OnLoginStateChanged(bool logged_in, bool is_guest) {} Are logged_in ...
8 years, 8 months ago (2012-04-18 14:41:11 UTC) #7
Jun Mukai
On 2012/04/18 14:41:11, sky wrote: > http://codereview.chromium.org/10008074/diff/9001/ash/shell_observer.h > File ash/shell_observer.h (right): > > http://codereview.chromium.org/10008074/diff/9001/ash/shell_observer.h#newcode19 > ...
8 years, 8 months ago (2012-04-18 14:54:28 UTC) #8
Jun Mukai
uploaded patchset5, which uses an enum for OnLoginStateChanged. http://codereview.chromium.org/10008074/diff/9001/ash/shell_observer.h File ash/shell_observer.h (right): http://codereview.chromium.org/10008074/diff/9001/ash/shell_observer.h#newcode19 ash/shell_observer.h:19: virtual ...
8 years, 8 months ago (2012-04-18 15:41:00 UTC) #9
sky
http://codereview.chromium.org/10008074/diff/14001/ash/shell.h File ash/shell.h (right): http://codereview.chromium.org/10008074/diff/14001/ash/shell.h#newcode100 ash/shell.h:100: enum LoginStatus { Move this into it's own file ...
8 years, 8 months ago (2012-04-18 16:03:31 UTC) #10
Daniel Erat
Thanks for cleaning this up! I'm fine with it going in after Scott is happy. ...
8 years, 8 months ago (2012-04-18 16:50:42 UTC) #11
sadrul
http://codereview.chromium.org/10008074/diff/14001/ash/shell.h File ash/shell.h (right): http://codereview.chromium.org/10008074/diff/14001/ash/shell.h#newcode104 ash/shell.h:104: }; Can you please use ash::user::LoginStatus instead? (in ash/system/user/login_status.h)
8 years, 8 months ago (2012-04-18 16:53:20 UTC) #12
Jun Mukai
http://codereview.chromium.org/10008074/diff/14001/ash/shell.h File ash/shell.h (right): http://codereview.chromium.org/10008074/diff/14001/ash/shell.h#newcode100 ash/shell.h:100: enum LoginStatus { On 2012/04/18 16:03:31, sky wrote: > ...
8 years, 8 months ago (2012-04-19 06:19:25 UTC) #13
sky
LGTM http://codereview.chromium.org/10008074/diff/20010/ash/wm/power_button_controller.cc File ash/wm/power_button_controller.cc (right): http://codereview.chromium.org/10008074/diff/20010/ash/wm/power_button_controller.cc#newcode472 ash/wm/power_button_controller.cc:472: DCHECK(login_status_ != user::LOGGED_IN_LOCKED); DCHECK_NE http://codereview.chromium.org/10008074/diff/20010/ash/wm/power_button_controller.cc#newcode480 ash/wm/power_button_controller.cc:480: DCHECK(login_status_ == ...
8 years, 8 months ago (2012-04-19 15:43:29 UTC) #14
Jun Mukai
8 years, 8 months ago (2012-04-20 07:27:33 UTC) #15
http://codereview.chromium.org/10008074/diff/20010/ash/wm/power_button_contro...
File ash/wm/power_button_controller.cc (right):

http://codereview.chromium.org/10008074/diff/20010/ash/wm/power_button_contro...
ash/wm/power_button_controller.cc:472: DCHECK(login_status_ !=
user::LOGGED_IN_LOCKED);
On 2012/04/19 15:43:29, sky wrote:
> DCHECK_NE

Done.

http://codereview.chromium.org/10008074/diff/20010/ash/wm/power_button_contro...
ash/wm/power_button_controller.cc:480: DCHECK(login_status_ ==
user::LOGGED_IN_LOCKED);
On 2012/04/19 15:43:29, sky wrote:
> DCHECK_EQ

Done.

http://codereview.chromium.org/10008074/diff/20010/chrome/browser/chromeos/po...
File chrome/browser/chromeos/power/power_button_observer.cc (right):

http://codereview.chromium.org/10008074/diff/20010/chrome/browser/chromeos/po...
chrome/browser/chromeos/power/power_button_observer.cc:66:
ash::user::LoginStatus login_status = user->is_guest() ?
On 2012/04/19 15:43:29, sky wrote:
> this is nearly identical to 43-48. Refactor into a common function. (it can be
> in an anonmyous namespace in this file if you want, or if there is some more
> central place put it there).

Done.

Powered by Google App Engine
This is Rietveld 408576698