OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
6 #define VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 6 #define VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
7 | 7 |
8 #if defined (OS_LINUX) | 8 #if defined (OS_LINUX) |
9 #include <gdk/gdk.h> | 9 #include <gdk/gdk.h> |
10 #endif | 10 #endif |
11 | 11 |
12 #include "app/gfx/font.h" | 12 #include "app/gfx/font.h" |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/keyboard_codes.h" | 14 #include "base/keyboard_codes.h" |
15 #include "base/string16.h" | 15 #include "base/string16.h" |
16 #include "views/view.h" | 16 #include "views/view.h" |
17 #include "third_party/skia/include/core/SkColor.h" | 17 #include "third_party/skia/include/core/SkColor.h" |
18 | 18 |
19 #ifdef UNIT_TEST | 19 #ifdef UNIT_TEST |
20 #include "base/gfx/native_widget_types.h" | 20 #include "app/gfx/native_widget_types.h" |
21 #include "views/controls/textfield/native_textfield_wrapper.h" | 21 #include "views/controls/textfield/native_textfield_wrapper.h" |
22 #endif | 22 #endif |
23 | 23 |
24 namespace views { | 24 namespace views { |
25 | 25 |
26 class NativeTextfieldWrapper; | 26 class NativeTextfieldWrapper; |
27 | 27 |
28 // This class implements a ChromeView that wraps a native text (edit) field. | 28 // This class implements a ChromeView that wraps a native text (edit) field. |
29 class Textfield : public View { | 29 class Textfield : public View { |
30 public: | 30 public: |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 // TODO(beng): remove this once NativeTextfieldWin subclasses | 260 // TODO(beng): remove this once NativeTextfieldWin subclasses |
261 // NativeControlWin. | 261 // NativeControlWin. |
262 bool initialized_; | 262 bool initialized_; |
263 | 263 |
264 DISALLOW_COPY_AND_ASSIGN(Textfield); | 264 DISALLOW_COPY_AND_ASSIGN(Textfield); |
265 }; | 265 }; |
266 | 266 |
267 } // namespace views | 267 } // namespace views |
268 | 268 |
269 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 269 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |