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_NATIVE_TEXTFIELD_WIN_H_ | 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ |
6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ | 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlapp.h> | 9 #include <atlapp.h> |
10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
11 #include <atlctrls.h> | 11 #include <atlctrls.h> |
12 #include <atlmisc.h> | 12 #include <atlmisc.h> |
13 #include <tom.h> // For ITextDocument, a COM interface to CRichEditCtrl | 13 #include <tom.h> // For ITextDocument, a COM interface to CRichEditCtrl |
14 #include <vsstyle.h> | 14 #include <vsstyle.h> |
15 | 15 |
| 16 #include "app/gfx/insets.h" |
16 #include "base/scoped_comptr_win.h" | 17 #include "base/scoped_comptr_win.h" |
17 #include "views/controls/menu/simple_menu_model.h" | 18 #include "views/controls/menu/simple_menu_model.h" |
18 #include "views/controls/textfield/native_textfield_wrapper.h" | 19 #include "views/controls/textfield/native_textfield_wrapper.h" |
19 | 20 |
20 namespace views { | 21 namespace views { |
21 | 22 |
22 class NativeViewHost; | 23 class NativeViewHost; |
23 class Textfield; | 24 class Textfield; |
24 | 25 |
25 static const int kDefaultEditStyle = WS_CHILD | WS_VISIBLE; | 26 static const int kDefaultEditStyle = WS_CHILD | WS_VISIBLE; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 NativeViewHost* container_view_; | 211 NativeViewHost* container_view_; |
211 | 212 |
212 COLORREF bg_color_; | 213 COLORREF bg_color_; |
213 | 214 |
214 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldWin); | 215 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldWin); |
215 }; | 216 }; |
216 | 217 |
217 } // namespace views | 218 } // namespace views |
218 | 219 |
219 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ | 220 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_WIN_H_ |
OLD | NEW |