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

Side by Side Diff: chrome/browser/ui/views/autofill/decorated_textfield.h

Issue 120503005: Merge NativeTextfieldViews into views::Textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename GetText to text. Created 6 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_DECORATED_TEXTFIELD_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_DECORATED_TEXTFIELD_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_DECORATED_TEXTFIELD_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_DECORATED_TEXTFIELD_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/gfx/image/image.h" 10 #include "ui/gfx/image/image.h"
11 #include "ui/views/controls/textfield/textfield.h" 11 #include "ui/views/controls/textfield/textfield.h"
12 12
13 namespace views { 13 namespace views {
14 class FocusableBorder; 14 class FocusableBorder;
15 class ImageView;
15 class TextfieldController; 16 class TextfieldController;
16 } 17 }
17 18
18 namespace autofill { 19 namespace autofill {
19 20
20 // A class which holds a textfield and draws extra stuff on top, like 21 // A class which holds a textfield and draws extra stuff on top, like
21 // invalid content indications. 22 // invalid content indications.
22 class DecoratedTextfield : public views::Textfield { 23 class DecoratedTextfield : public views::Textfield {
23 public: 24 public:
24 static const char kViewClassName[]; 25 static const char kViewClassName[];
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // pieces of the textfield disappear (border, background, icon, placeholder 87 // pieces of the textfield disappear (border, background, icon, placeholder
87 // text) and it can't receive focus. 88 // text) and it can't receive focus.
88 bool editable_; 89 bool editable_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(DecoratedTextfield); 91 DISALLOW_COPY_AND_ASSIGN(DecoratedTextfield);
91 }; 92 };
92 93
93 } // namespace autofill 94 } // namespace autofill
94 95
95 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_DECORATED_TEXTFIELD_H_ 96 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_DECORATED_TEXTFIELD_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/autofill/decorated_textfield.cc » ('j') | ui/views/controls/textfield/textfield.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698