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

Side by Side Diff: chrome/browser/ui/views/login_view.cc

Issue 6257017: views: Move standard_layout.h into the layout directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/views/login_view.h" 5 #include "chrome/browser/ui/views/login_view.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "grit/generated_resources.h" 12 #include "grit/generated_resources.h"
13 #include "ui/base/l10n/l10n_util.h" 13 #include "ui/base/l10n/l10n_util.h"
14 #include "views/grid_layout.h"
15 #include "views/controls/label.h" 14 #include "views/controls/label.h"
16 #include "views/controls/textfield/textfield.h" 15 #include "views/controls/textfield/textfield.h"
17 #include "views/standard_layout.h" 16 #include "views/grid_layout.h"
17 #include "views/layout/layout_constants.h"
18 #include "views/widget/root_view.h" 18 #include "views/widget/root_view.h"
19 19
20 static const int kMessageWidth = 320; 20 static const int kMessageWidth = 320;
21 static const int kTextfieldStackHorizontalSpacing = 30; 21 static const int kTextfieldStackHorizontalSpacing = 30;
22 22
23 using views::GridLayout; 23 using views::GridLayout;
24 24
25 /////////////////////////////////////////////////////////////////////////////// 25 ///////////////////////////////////////////////////////////////////////////////
26 // LoginView, public: 26 // LoginView, public:
27 27
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 void LoginView::FocusFirstField() { 145 void LoginView::FocusFirstField() {
146 DCHECK(focus_view_); 146 DCHECK(focus_view_);
147 if (GetFocusManager()) { 147 if (GetFocusManager()) {
148 username_field_->RequestFocus(); 148 username_field_->RequestFocus();
149 } else { 149 } else {
150 // We are invisible - delay until it is no longer the case. 150 // We are invisible - delay until it is no longer the case.
151 focus_delayed_ = true; 151 focus_delayed_ = true;
152 } 152 }
153 } 153 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/local_storage_set_item_info_view.cc ('k') | chrome/browser/ui/views/options/advanced_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698