OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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" |
11 #include "gfx/font.h" | 11 #include "gfx/font.h" |
12 #include "views/border.h" | 12 #include "views/border.h" |
13 #include "views/controls/textfield/native_textfield_wrapper.h" | 13 #include "views/controls/textfield/native_textfield_wrapper.h" |
14 #include "views/view.h" | 14 #include "views/view.h" |
15 | 15 |
16 namespace gfx { | 16 namespace gfx { |
17 class Canvas; | 17 class Canvas; |
18 } // namespace | 18 } // namespace |
19 | 19 |
20 namespace views { | 20 namespace views { |
21 | 21 |
22 class KeyEvent; | 22 class KeyEvent; |
23 class TextfieldViewsModel; | 23 class TextfieldViewsModel; |
24 | 24 |
25 // A views/skia only implementation of NativeTextfieldWrapper. | 25 // A views/skia only implementation of NativeTextfieldWrapper. |
26 // No platform specific code is used. | 26 // No platform specific code is used. |
27 // Following features are not yet supported. | 27 // Following features are not yet supported. |
28 // * BIDI | 28 // * BIDI |
29 // * Clipboard (Cut & Paste). | |
30 // * Context Menu. | 29 // * Context Menu. |
31 // * IME/i18n support. | 30 // * IME/i18n support. |
32 // * X selection (only if we want to support). | 31 // * X selection (only if we want to support). |
33 // * STYLE_MULTILINE, STYLE_LOWERCASE text. (These are not used in | 32 // * STYLE_MULTILINE, STYLE_LOWERCASE text. (These are not used in |
34 // chromeos, so we may not need them) | 33 // chromeos, so we may not need them) |
35 // * Double click to select word, and triple click to select all. | 34 // * Double click to select word, and triple click to select all. |
36 // * Undo/Redo | 35 // * Undo/Redo |
37 class NativeTextfieldViews : public views::View, | 36 class NativeTextfieldViews : public views::View, |
38 public NativeTextfieldWrapper { | 37 public NativeTextfieldWrapper { |
39 public: | 38 public: |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 167 |
169 // A runnable method factory for callback to update the cursor. | 168 // A runnable method factory for callback to update the cursor. |
170 ScopedRunnableMethodFactory<NativeTextfieldViews> cursor_timer_; | 169 ScopedRunnableMethodFactory<NativeTextfieldViews> cursor_timer_; |
171 | 170 |
172 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); | 171 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); |
173 }; | 172 }; |
174 | 173 |
175 } // namespace views | 174 } // namespace views |
176 | 175 |
177 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 176 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
OLD | NEW |