| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |