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

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

Issue 2934503002: Remove references to ui/views/layout/layout_constants.h (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
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/browser/ui/views/harmony/chrome_layout_provider.h" 7 #include "chrome/browser/ui/views/harmony/chrome_layout_provider.h"
8 #include "components/strings/grit/components_strings.h" 8 #include "components/strings/grit/components_strings.h"
9 #include "ui/base/l10n/l10n_util.h" 9 #include "ui/base/l10n/l10n_util.h"
10 #include "ui/views/controls/label.h" 10 #include "ui/views/controls/label.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 layout->AddView(username_field_); 86 layout->AddView(username_field_);
87 87
88 layout->AddPaddingRow( 88 layout->AddPaddingRow(
89 0, provider->GetDistanceMetric(views::DISTANCE_RELATED_CONTROL_VERTICAL)); 89 0, provider->GetDistanceMetric(views::DISTANCE_RELATED_CONTROL_VERTICAL));
90 90
91 layout->StartRow(0, labels_column_set_id); 91 layout->StartRow(0, labels_column_set_id);
92 layout->AddView(password_label_); 92 layout->AddView(password_label_);
93 layout->AddView(password_field_); 93 layout->AddView(password_field_);
94 94
95 if (provider->UseExtraDialogPadding()) { 95 if (provider->UseExtraDialogPadding()) {
96 layout->AddPaddingRow( 96 layout->AddPaddingRow(0, provider->GetDistanceMetric(
97 0, provider->GetDistanceMetric(DISTANCE_UNRELATED_CONTROL_VERTICAL)); 97 views::DISTANCE_UNRELATED_CONTROL_VERTICAL));
98 } 98 }
99 99
100 if (login_model_data) { 100 if (login_model_data) {
101 login_model_->AddObserverAndDeliverCredentials(this, 101 login_model_->AddObserverAndDeliverCredentials(this,
102 login_model_data->form); 102 login_model_data->form);
103 } 103 }
104 } 104 }
105 105
106 LoginView::~LoginView() { 106 LoginView::~LoginView() {
107 if (login_model_) 107 if (login_model_)
(...skipping 27 matching lines...) Expand all
135 135
136 void LoginView::OnLoginModelDestroying() { 136 void LoginView::OnLoginModelDestroying() {
137 login_model_->RemoveObserver(this); 137 login_model_->RemoveObserver(this);
138 login_model_ = NULL; 138 login_model_ = NULL;
139 } 139 }
140 140
141 const char* LoginView::GetClassName() const { 141 const char* LoginView::GetClassName() const {
142 return "LoginView"; 142 return "LoginView";
143 } 143 }
144 144
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/harmony/harmony_layout_provider.cc ('k') | chrome/browser/ui/views/profiles/profile_chooser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698