Chromium Code Reviews| 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 | 39 // * STYLE_LOWERCASE text. (not used in chromeos, so maybe not needed) |
|
oshima
2011/06/01 01:29:15
can you remove (not ... needed)? Since we decide t
Emmanuel Saint-loubert-Bié
2011/06/01 01:50:07
I agree but will do that as separate CL
| |
| 40 // chromeos, so we may not need them) | |
| 41 class NativeTextfieldViews : public View, | 40 class NativeTextfieldViews : public View, |
| 42 public ContextMenuController, | 41 public ContextMenuController, |
| 43 public DragController, | 42 public DragController, |
| 44 public NativeTextfieldWrapper, | 43 public NativeTextfieldWrapper, |
| 45 public ui::SimpleMenuModel::Delegate, | 44 public ui::SimpleMenuModel::Delegate, |
| 46 public TextInputClient, | 45 public TextInputClient, |
| 47 public TextfieldViewsModel::Delegate { | 46 public TextfieldViewsModel::Delegate { |
| 48 public: | 47 public: |
| 49 explicit NativeTextfieldViews(Textfield* parent); | 48 explicit NativeTextfieldViews(Textfield* parent); |
| 50 virtual ~NativeTextfieldViews(); | 49 virtual ~NativeTextfieldViews(); |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 262 // Context menu and its content list for the textfield. | 261 // Context menu and its content list for the textfield. |
| 263 scoped_ptr<ui::SimpleMenuModel> context_menu_contents_; | 262 scoped_ptr<ui::SimpleMenuModel> context_menu_contents_; |
| 264 scoped_ptr<Menu2> context_menu_menu_; | 263 scoped_ptr<Menu2> context_menu_menu_; |
| 265 | 264 |
| 266 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); | 265 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); |
| 267 }; | 266 }; |
| 268 | 267 |
| 269 } // namespace views | 268 } // namespace views |
| 270 | 269 |
| 271 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 270 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| OLD | NEW |