| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "chrome/browser/views/login_view.h" | 7 #include "chrome/browser/views/login_view.h" |
| 8 | 8 |
| 9 #include "app/l10n_util.h" |
| 9 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 10 #include "chrome/browser/views/standard_layout.h" | 11 #include "chrome/browser/views/standard_layout.h" |
| 11 #include "chrome/common/l10n_util.h" | |
| 12 #include "chrome/views/grid_layout.h" | 12 #include "chrome/views/grid_layout.h" |
| 13 #include "chrome/views/controls/label.h" | 13 #include "chrome/views/controls/label.h" |
| 14 #include "chrome/views/controls/text_field.h" | 14 #include "chrome/views/controls/text_field.h" |
| 15 #include "chrome/views/widget/root_view.h" | 15 #include "chrome/views/widget/root_view.h" |
| 16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
| 17 | 17 |
| 18 namespace views { | 18 namespace views { |
| 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; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 } | 114 } |
| 115 | 115 |
| 116 /////////////////////////////////////////////////////////////////////////////// | 116 /////////////////////////////////////////////////////////////////////////////// |
| 117 // LoginView, private: | 117 // LoginView, private: |
| 118 | 118 |
| 119 void LoginView::FocusFirstField() { | 119 void LoginView::FocusFirstField() { |
| 120 username_field_->RequestFocus(); | 120 username_field_->RequestFocus(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 } // namespace | 123 } // namespace |
| OLD | NEW |