OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/strings/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 "ui/views/controls/label.h" | 14 #include "ui/views/controls/label.h" |
15 #include "ui/views/controls/textfield/textfield.h" | 15 #include "ui/views/controls/textfield/textfield.h" |
16 #include "ui/views/layout/grid_layout.h" | 16 #include "ui/views/layout/grid_layout.h" |
17 #include "ui/views/layout/layout_constants.h" | 17 #include "ui/views/layout/layout_constants.h" |
18 #include "ui/views/widget/root_view.h" | 18 #include "ui/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; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 username_field_->SetText(username); | 109 username_field_->SetText(username); |
110 password_field_->SetText(password); | 110 password_field_->SetText(password); |
111 username_field_->SelectAll(true); | 111 username_field_->SelectAll(true); |
112 } | 112 } |
113 } | 113 } |
114 | 114 |
115 void LoginView::OnLoginModelDestroying() { | 115 void LoginView::OnLoginModelDestroying() { |
116 login_model_->SetObserver(NULL); | 116 login_model_->SetObserver(NULL); |
117 login_model_ = NULL; | 117 login_model_ = NULL; |
118 } | 118 } |
OLD | NEW |