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

Issue 5709001: Place the spinner in the right corner of the controls window. (Closed)

Created:
10 years ago by altimofeev
Modified:
9 years, 7 months ago
CC:
chromium-reviews, nkostylev+cc_chromium.org, davemoore+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Place the spinner in the right corner of the controls window. Also CL contains changes which unify communication between |UserController| and corresponding controls view (UserInput interface). BUG=chromium-os:9770 TEST=Play with login. Notice appearing spinners. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69122

Patch Set 1 #

Patch Set 2 : Stop throbbers #

Patch Set 3 : Merged with trunk. #

Total comments: 56

Patch Set 4 : code review #

Total comments: 14

Patch Set 5 : use common interface #

Patch Set 6 : nits #

Patch Set 7 : cpplist + remove debug #

Total comments: 14

Patch Set 8 : inherit from View #

Patch Set 9 : stop the right throbbedr #

Patch Set 10 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+370 lines, -265 lines) Patch
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_view.h View 1 2 3 4 5 6 7 3 chunks +21 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_view.cc View 1 2 3 4 5 6 7 8 9 6 chunks +45 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/login/guest_user_view.h View 1 2 3 4 5 6 7 3 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/guest_user_view.cc View 1 2 3 4 5 6 7 7 chunks +31 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/login/helper.h View 1 2 3 4 5 6 7 8 9 3 chunks +42 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/helper.cc View 1 2 3 4 5 6 7 8 4 chunks +47 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/login_screen.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/new_user_view.h View 1 2 3 4 5 6 7 6 chunks +13 lines, -18 lines 0 comments Download
M chrome/browser/chromeos/login/new_user_view.cc View 1 2 3 4 5 6 7 7 chunks +22 lines, -32 lines 0 comments Download
M chrome/browser/chromeos/login/rounded_view.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/screen_lock_view.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/screen_lock_view.cc View 1 2 3 4 5 6 7 6 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/screen_locker.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_controller.h View 1 2 3 4 5 6 7 6 chunks +18 lines, -40 lines 0 comments Download
M chrome/browser/chromeos/login/user_controller.cc View 1 2 3 4 5 6 7 13 chunks +55 lines, -96 lines 0 comments Download
A chrome/browser/chromeos/login/user_input.h View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_view.h View 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/user_view.cc View 1 2 3 4 5 6 7 4 chunks +0 lines, -22 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
altimofeev
10 years ago (2010-12-09 15:18:13 UTC) #1
Nikita (slow)
http://codereview.chromium.org/5709001/diff/3021/chrome/browser/chromeos/login/screen_locker.cc File chrome/browser/chromeos/login/screen_locker.cc (right): http://codereview.chromium.org/5709001/diff/3021/chrome/browser/chromeos/login/screen_locker.cc#newcode650 chrome/browser/chromeos/login/screen_locker.cc:650: StartThrobber(); As I understand this throbber is shown while ...
10 years ago (2010-12-09 15:33:21 UTC) #2
whywhat
Mitsuru, could you take a look too since it touches screen lock as well? http://codereview.chromium.org/5709001/diff/3021/chrome/browser/chromeos/login/existing_user_controller.cc ...
10 years ago (2010-12-09 16:20:18 UTC) #3
oshima
http://codereview.chromium.org/5709001/diff/3021/chrome/browser/chromeos/login/screen_lock_view.cc File chrome/browser/chromeos/login/screen_lock_view.cc (right): http://codereview.chromium.org/5709001/diff/3021/chrome/browser/chromeos/login/screen_lock_view.cc#newcode67 chrome/browser/chromeos/login/screen_lock_view.cc:67: throbber_widget_(NULL) { looks like this is not used? http://codereview.chromium.org/5709001/diff/3021/chrome/browser/chromeos/login/screen_lock_view.cc#newcode167 ...
10 years ago (2010-12-09 21:52:10 UTC) #4
altimofeev
http://codereview.chromium.org/5709001/diff/3021/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): http://codereview.chromium.org/5709001/diff/3021/chrome/browser/chromeos/login/existing_user_controller.cc#newcode364 chrome/browser/chromeos/login/existing_user_controller.cc:364: for (std::vector<UserController*>::iterator iter = controllers_.begin(); On 2010/12/09 16:20:18, whywhat ...
10 years ago (2010-12-10 16:37:40 UTC) #5
whywhat
LGTM with a couple of nits and suggestions http://codereview.chromium.org/5709001/diff/25001/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (left): http://codereview.chromium.org/5709001/diff/25001/chrome/browser/chromeos/login/existing_user_controller.cc#oldcode218 chrome/browser/chromeos/login/existing_user_controller.cc:218: new_user_view->SetUsername(username); ...
10 years ago (2010-12-13 07:57:35 UTC) #6
altimofeev
Anton, please take another look since I have changed enough from the last review. Sorry ...
10 years ago (2010-12-13 15:42:45 UTC) #7
whywhat
LGTM http://codereview.chromium.org/5709001/diff/9003/chrome/browser/chromeos/login/existing_user_view.cc File chrome/browser/chromeos/login/existing_user_view.cc (right): http://codereview.chromium.org/5709001/diff/9003/chrome/browser/chromeos/login/existing_user_view.cc#newcode113 chrome/browser/chromeos/login/existing_user_view.cc:113: This blank line is not needed imho. http://codereview.chromium.org/5709001/diff/9003/chrome/browser/chromeos/login/helper.cc ...
10 years ago (2010-12-13 16:10:55 UTC) #8
oshima
LGTM on locker bits
10 years ago (2010-12-13 19:17:41 UTC) #9
altimofeev
10 years ago (2010-12-14 11:15:21 UTC) #10
http://codereview.chromium.org/5709001/diff/9003/chrome/browser/chromeos/logi...
File chrome/browser/chromeos/login/existing_user_view.cc (right):

http://codereview.chromium.org/5709001/diff/9003/chrome/browser/chromeos/logi...
chrome/browser/chromeos/login/existing_user_view.cc:113: 
On 2010/12/13 16:10:55, whywhat wrote:
> This blank line is not needed imho.

Done.

http://codereview.chromium.org/5709001/diff/9003/chrome/browser/chromeos/logi...
File chrome/browser/chromeos/login/helper.cc (right):

http://codereview.chromium.org/5709001/diff/9003/chrome/browser/chromeos/logi...
chrome/browser/chromeos/login/helper.cc:72: : host_view_(host_view),
throbber_widget_(NULL) {
On 2010/12/13 16:10:55, whywhat wrote:
> Add two spaces in front of : and put the second member on the next line.

Done.

http://codereview.chromium.org/5709001/diff/9003/chrome/browser/chromeos/logi...
File chrome/browser/chromeos/login/helper.h (right):

http://codereview.chromium.org/5709001/diff/9003/chrome/browser/chromeos/logi...
chrome/browser/chromeos/login/helper.h:34: class ThrobberHost {
On 2010/12/13 16:10:55, whywhat wrote:
> It'd be better if we could embed ThrobberHost into view instead of inheriting
> from it since we only can inherit from one non-interface class. We'd have to
add
> some lines of code to each class though so I don't feel strong against this
> solution now.

Subclassed from the views::View to avoid multiple inheritance.

http://codereview.chromium.org/5709001/diff/9003/chrome/browser/chromeos/logi...
chrome/browser/chromeos/login/helper.h:61: views::Widget *throbber_widget_;
On 2010/12/13 16:10:55, whywhat wrote:
> Align * with the type, please.

Done.

http://codereview.chromium.org/5709001/diff/9003/chrome/browser/chromeos/logi...
chrome/browser/chromeos/login/helper.h:119: const int kThrobberRightMargin = 10;
On 2010/12/13 16:10:55, whywhat wrote:
> Comment about the constant?

Done.

http://codereview.chromium.org/5709001/diff/9003/chrome/browser/chromeos/logi...
File chrome/browser/chromeos/login/new_user_view.cc (right):

http://codereview.chromium.org/5709001/diff/9003/chrome/browser/chromeos/logi...
chrome/browser/chromeos/login/new_user_view.cc:491: x +=
password_field_->width()- throbber_size.width();
On 2010/12/13 16:10:55, whywhat wrote:
> space before -

Done.

http://codereview.chromium.org/5709001/diff/9003/chrome/browser/chromeos/logi...
chrome/browser/chromeos/login/new_user_view.cc:495: return
gfx::Rect(gfx::Point(x,y), throbber_size);
On 2010/12/13 16:10:55, whywhat wrote:
> space between , and y

Done.

Powered by Google App Engine
This is Rietveld 408576698