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

Side by Side Diff: chrome/browser/chromeos/login/existing_user_view.cc

Issue 6628037: views: Moves TextfieldController/TextRange into their own headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 years, 9 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/chromeos/login/existing_user_view.h" 5 #include "chrome/browser/chromeos/login/existing_user_view.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/chromeos/login/textfield_with_margin.h"
8 #include "chrome/browser/chromeos/login/user_controller.h" 9 #include "chrome/browser/chromeos/login/user_controller.h"
9 #include "chrome/browser/chromeos/login/textfield_with_margin.h"
10 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" 10 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h"
11 #include "grit/generated_resources.h" 11 #include "grit/generated_resources.h"
12 #include "ui/base/l10n/l10n_util.h" 12 #include "ui/base/l10n/l10n_util.h"
13 #include "views/background.h" 13 #include "views/background.h"
14 #include "views/controls/textfield/textfield.h"
14 #include "views/focus/focus_manager.h" 15 #include "views/focus/focus_manager.h"
15 #include "views/layout/fill_layout.h" 16 #include "views/layout/fill_layout.h"
16 17
17 namespace chromeos { 18 namespace chromeos {
18 19
19 // Colors for gradient background. These should be consistent with border 20 // Colors for gradient background. These should be consistent with border
20 // window background so textfield border is not visible to the user. 21 // window background so textfield border is not visible to the user.
21 // The background is needed for password textfield to imitate its borders 22 // The background is needed for password textfield to imitate its borders
22 // transparency correctly. 23 // transparency correctly.
23 const SkColor kBackgroundColorTop = SkColorSetRGB(209, 213, 216); 24 const SkColor kBackgroundColorTop = SkColorSetRGB(209, 213, 216);
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 144
144 gfx::Rect ExistingUserView::GetMainInputScreenBounds() const { 145 gfx::Rect ExistingUserView::GetMainInputScreenBounds() const {
145 return password_field_->GetScreenBounds(); 146 return password_field_->GetScreenBounds();
146 } 147 }
147 148
148 void ExistingUserView::OnLocaleChanged() { 149 void ExistingUserView::OnLocaleChanged() {
149 RecreateFields(); 150 RecreateFields();
150 } 151 }
151 152
152 } // namespace chromeos 153 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_view.h ('k') | chrome/browser/chromeos/login/new_user_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698