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 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // This will be reported as the "desired size". Defaults to 0. | 224 // This will be reported as the "desired size". Defaults to 0. |
225 int default_width_in_chars_; | 225 int default_width_in_chars_; |
226 | 226 |
227 // Whether the border is drawn. | 227 // Whether the border is drawn. |
228 bool draw_border_; | 228 bool draw_border_; |
229 | 229 |
230 // The background color to be used when painting the Textfield, provided | 230 // The background color to be used when painting the Textfield, provided |
231 // |use_default_background_color_| is set to false. | 231 // |use_default_background_color_| is set to false. |
232 SkColor background_color_; | 232 SkColor background_color_; |
233 | 233 |
234 // When true, the system colors for Textfields are used when painting this | 234 // When true, the system background color for Textfields is used when painting |
235 // Textfield. When false, the value of |background_color_| determines the | 235 // this Textfield. When false, the value of |background_color_| determines the |
236 // Textfield's background color. | 236 // Textfield's background color. |
237 bool use_default_background_color_; | 237 bool use_default_background_color_; |
238 | 238 |
239 // The number of lines of text this Textfield displays at once. | 239 // The number of lines of text this Textfield displays at once. |
240 int num_lines_; | 240 int num_lines_; |
241 | 241 |
242 // TODO(beng): remove this once NativeTextfieldWin subclasses | 242 // TODO(beng): remove this once NativeTextfieldWin subclasses |
243 // NativeControlWin. | 243 // NativeControlWin. |
244 bool initialized_; | 244 bool initialized_; |
245 | 245 |
246 DISALLOW_COPY_AND_ASSIGN(Textfield); | 246 DISALLOW_COPY_AND_ASSIGN(Textfield); |
247 }; | 247 }; |
248 | 248 |
249 } // namespace views | 249 } // namespace views |
250 | 250 |
251 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ | 251 #endif // VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ |
OLD | NEW |