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 |
(...skipping 24 matching lines...) Expand all Loading... |
35 namespace ui { | 35 namespace ui { |
36 class Range; | 36 class Range; |
37 } // namespace ui | 37 } // namespace ui |
38 | 38 |
39 namespace views { | 39 namespace views { |
40 | 40 |
41 class KeyEvent; | 41 class KeyEvent; |
42 class TextfieldController; | 42 class TextfieldController; |
43 | 43 |
44 // This class implements a View that wraps a native text (edit) field. | 44 // This class implements a View that wraps a native text (edit) field. |
45 class VIEWS_API Textfield : public View { | 45 class VIEWS_EXPORT Textfield : public View { |
46 public: | 46 public: |
47 // The button's class name. | 47 // The button's class name. |
48 static const char kViewClassName[]; | 48 static const char kViewClassName[]; |
49 | 49 |
50 enum StyleFlags { | 50 enum StyleFlags { |
51 STYLE_DEFAULT = 0, | 51 STYLE_DEFAULT = 0, |
52 STYLE_PASSWORD = 1 << 0, | 52 STYLE_PASSWORD = 1 << 0, |
53 STYLE_LOWERCASE = 1 << 1 | 53 STYLE_LOWERCASE = 1 << 1 |
54 }; | 54 }; |
55 | 55 |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 290 |
291 // The accessible name of the text field. | 291 // The accessible name of the text field. |
292 string16 accessible_name_; | 292 string16 accessible_name_; |
293 | 293 |
294 DISALLOW_COPY_AND_ASSIGN(Textfield); | 294 DISALLOW_COPY_AND_ASSIGN(Textfield); |
295 }; | 295 }; |
296 | 296 |
297 } // namespace views | 297 } // namespace views |
298 | 298 |
299 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 299 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |