| 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 "chrome/grit/generated_resources.h" | 7 #include "components/strings/grit/components_strings.h" |
| 8 #include "ui/base/l10n/l10n_util.h" | 8 #include "ui/base/l10n/l10n_util.h" |
| 9 #include "ui/views/controls/label.h" | 9 #include "ui/views/controls/label.h" |
| 10 #include "ui/views/controls/textfield/textfield.h" | 10 #include "ui/views/controls/textfield/textfield.h" |
| 11 #include "ui/views/layout/grid_layout.h" | 11 #include "ui/views/layout/grid_layout.h" |
| 12 #include "ui/views/layout/layout_constants.h" | 12 #include "ui/views/layout/layout_constants.h" |
| 13 | 13 |
| 14 static const int kMessageWidth = 320; | 14 static const int kMessageWidth = 320; |
| 15 static const int kTextfieldStackHorizontalSpacing = 30; | 15 static const int kTextfieldStackHorizontalSpacing = 30; |
| 16 | 16 |
| 17 using password_manager::LoginModel; | 17 using password_manager::LoginModel; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 void LoginView::OnLoginModelDestroying() { | 126 void LoginView::OnLoginModelDestroying() { |
| 127 login_model_->RemoveObserver(this); | 127 login_model_->RemoveObserver(this); |
| 128 login_model_ = NULL; | 128 login_model_ = NULL; |
| 129 } | 129 } |
| 130 | 130 |
| 131 const char* LoginView::GetClassName() const { | 131 const char* LoginView::GetClassName() const { |
| 132 return "LoginView"; | 132 return "LoginView"; |
| 133 } | 133 } |
| 134 | 134 |
| OLD | NEW |