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 // These classes define a text field widget that can be used in the views UI | 5 // These classes define a text field widget that can be used in the views UI |
6 // toolkit. | 6 // toolkit. |
7 | 7 |
8 #ifndef VIEWS_CONTROLS_TEXT_FIELD_H_ | 8 #ifndef VIEWS_CONTROLS_TEXT_FIELD_H_ |
9 #define VIEWS_CONTROLS_TEXT_FIELD_H_ | 9 #define VIEWS_CONTROLS_TEXT_FIELD_H_ |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "app/gfx/chrome_font.h" | 13 #include "app/gfx/chrome_font.h" |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "views/view.h" | 15 #include "views/view.h" |
16 #include "skia/include/SkColor.h" | 16 #include "third_party/skia/include/core/SkColor.h" |
17 | 17 |
18 namespace views { | 18 namespace views { |
19 | 19 |
20 class HWNDView; | 20 class HWNDView; |
21 | 21 |
22 // This class implements a ChromeView that wraps a native text (edit) field. | 22 // This class implements a ChromeView that wraps a native text (edit) field. |
23 class TextField : public View { | 23 class TextField : public View { |
24 public: | 24 public: |
25 // This defines the callback interface for other code to be notified of | 25 // This defines the callback interface for other code to be notified of |
26 // changes in the state of a text field. | 26 // changes in the state of a text field. |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 protected: | 199 protected: |
200 // Calculates the insets for the text field. | 200 // Calculates the insets for the text field. |
201 void CalculateInsets(gfx::Insets* insets); | 201 void CalculateInsets(gfx::Insets* insets); |
202 | 202 |
203 DISALLOW_COPY_AND_ASSIGN(TextField); | 203 DISALLOW_COPY_AND_ASSIGN(TextField); |
204 }; | 204 }; |
205 | 205 |
206 } // namespace views | 206 } // namespace views |
207 | 207 |
208 #endif // VIEWS_CONTROLS_TEXT_FIELD_H_ | 208 #endif // VIEWS_CONTROLS_TEXT_FIELD_H_ |
OLD | NEW |