OLD | NEW |
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 #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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
11 #if defined(OS_LINUX) | 11 #if defined(OS_LINUX) |
12 #include <gdk/gdk.h> | 12 #include <gdk/gdk.h> |
13 #endif | 13 #endif |
14 | 14 |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
18 #include "base/string16.h" | 18 #include "base/string16.h" |
19 #include "gfx/font.h" | |
20 #include "third_party/skia/include/core/SkColor.h" | 19 #include "third_party/skia/include/core/SkColor.h" |
21 #include "ui/base/keycodes/keyboard_codes.h" | 20 #include "ui/base/keycodes/keyboard_codes.h" |
| 21 #include "ui/gfx/font.h" |
22 #include "views/view.h" | 22 #include "views/view.h" |
23 | 23 |
24 #if !defined(OS_LINUX) | 24 #if !defined(OS_LINUX) |
25 #include "base/logging.h" | 25 #include "base/logging.h" |
26 #endif | 26 #endif |
27 #ifdef UNIT_TEST | 27 #ifdef UNIT_TEST |
28 #include "gfx/native_widget_types.h" | 28 #include "ui/gfx/native_widget_types.h" |
29 #include "views/controls/textfield/native_textfield_wrapper.h" | 29 #include "views/controls/textfield/native_textfield_wrapper.h" |
30 #endif | 30 #endif |
31 | 31 |
32 namespace views { | 32 namespace views { |
33 | 33 |
34 class KeyEvent; | 34 class KeyEvent; |
35 class NativeTextfieldWrapper; | 35 class NativeTextfieldWrapper; |
36 | 36 |
37 // TextRange specifies the range of text in the Textfield. This is | 37 // TextRange specifies the range of text in the Textfield. This is |
38 // used to specify selected text and will be used to change the | 38 // used to specify selected text and will be used to change the |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 | 340 |
341 // Text to display when empty. | 341 // Text to display when empty. |
342 string16 text_to_display_when_empty_; | 342 string16 text_to_display_when_empty_; |
343 | 343 |
344 DISALLOW_COPY_AND_ASSIGN(Textfield); | 344 DISALLOW_COPY_AND_ASSIGN(Textfield); |
345 }; | 345 }; |
346 | 346 |
347 } // namespace views | 347 } // namespace views |
348 | 348 |
349 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 349 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |