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_NATIVE_TEXTFIELD_VIEWS_H_ | 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "base/task.h" | 10 #include "base/task.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 class FocusableBorder; | 29 class FocusableBorder; |
30 class KeyEvent; | 30 class KeyEvent; |
31 class Menu2; | 31 class Menu2; |
32 | 32 |
33 // A views/skia only implementation of NativeTextfieldWrapper. | 33 // A views/skia only implementation of NativeTextfieldWrapper. |
34 // No platform specific code is used. | 34 // No platform specific code is used. |
35 // Following features are not yet supported. | 35 // Following features are not yet supported. |
36 // * BIDI/Complex script. | 36 // * BIDI/Complex script. |
37 // * Support surrogate pair, or maybe we should just use UTF32 internally. | 37 // * Support surrogate pair, or maybe we should just use UTF32 internally. |
38 // * X selection (only if we want to support). | 38 // * X selection (only if we want to support). |
39 // * STYLE_MULTILINE, STYLE_LOWERCASE text. (These are not used in | |
40 // chromeos, so we may not need them) | |
41 // Once completed, this will replace Textfield, NativeTextfieldWin and | 39 // Once completed, this will replace Textfield, NativeTextfieldWin and |
42 // NativeTextfieldGtk. | 40 // NativeTextfieldGtk. |
43 class NativeTextfieldViews : public View, | 41 class NativeTextfieldViews : public View, |
44 public ContextMenuController, | 42 public ContextMenuController, |
45 public DragController, | 43 public DragController, |
46 public NativeTextfieldWrapper, | 44 public NativeTextfieldWrapper, |
47 public ui::SimpleMenuModel::Delegate, | 45 public ui::SimpleMenuModel::Delegate, |
48 public TextInputClient, | 46 public TextInputClient, |
49 public TextfieldViewsModel::Delegate { | 47 public TextfieldViewsModel::Delegate { |
50 public: | 48 public: |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 // Context menu and its content list for the textfield. | 267 // Context menu and its content list for the textfield. |
270 scoped_ptr<ui::SimpleMenuModel> context_menu_contents_; | 268 scoped_ptr<ui::SimpleMenuModel> context_menu_contents_; |
271 scoped_ptr<Menu2> context_menu_menu_; | 269 scoped_ptr<Menu2> context_menu_menu_; |
272 | 270 |
273 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); | 271 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); |
274 }; | 272 }; |
275 | 273 |
276 } // namespace views | 274 } // namespace views |
277 | 275 |
278 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 276 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
OLD | NEW |