| 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 24 matching lines...) Expand all Loading... |
| 35 class MenuModelAdapter; | 35 class MenuModelAdapter; |
| 36 | 36 |
| 37 // A views/skia only implementation of NativeTextfieldWrapper. | 37 // A views/skia only implementation of NativeTextfieldWrapper. |
| 38 // No platform specific code is used. | 38 // No platform specific code is used. |
| 39 // Following features are not yet supported. | 39 // Following features are not yet supported. |
| 40 // * BIDI/Complex script. | 40 // * BIDI/Complex script. |
| 41 // * Support surrogate pair, or maybe we should just use UTF32 internally. | 41 // * Support surrogate pair, or maybe we should just use UTF32 internally. |
| 42 // * X selection (only if we want to support). | 42 // * X selection (only if we want to support). |
| 43 // Once completed, this will replace Textfield, NativeTextfieldWin and | 43 // Once completed, this will replace Textfield, NativeTextfieldWin and |
| 44 // NativeTextfieldGtk. | 44 // NativeTextfieldGtk. |
| 45 class VIEWS_API NativeTextfieldViews : public TouchSelectionClientView, | 45 class VIEWS_EXPORT NativeTextfieldViews : public TouchSelectionClientView, |
| 46 public ContextMenuController, | 46 public ContextMenuController, |
| 47 public DragController, | 47 public DragController, |
| 48 public NativeTextfieldWrapper, | 48 public NativeTextfieldWrapper, |
| 49 public TextInputClient, | 49 public TextInputClient, |
| 50 public TextfieldViewsModel::Delegate { | 50 public TextfieldViewsModel::Delegate { |
| 51 public: | 51 public: |
| 52 explicit NativeTextfieldViews(Textfield* parent); | 52 explicit NativeTextfieldViews(Textfield* parent); |
| 53 virtual ~NativeTextfieldViews(); | 53 virtual ~NativeTextfieldViews(); |
| 54 | 54 |
| 55 // View overrides: | 55 // View overrides: |
| 56 virtual gfx::NativeCursor GetCursor(const MouseEvent& event) OVERRIDE; | 56 virtual gfx::NativeCursor GetCursor(const MouseEvent& event) OVERRIDE; |
| 57 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE; | 57 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE; |
| 58 virtual bool OnMouseDragged(const MouseEvent& event) OVERRIDE; | 58 virtual bool OnMouseDragged(const MouseEvent& event) OVERRIDE; |
| 59 virtual void OnMouseReleased(const MouseEvent& event) OVERRIDE; | 59 virtual void OnMouseReleased(const MouseEvent& event) OVERRIDE; |
| 60 virtual bool OnKeyPressed(const KeyEvent& event) OVERRIDE; | 60 virtual bool OnKeyPressed(const KeyEvent& event) OVERRIDE; |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 scoped_ptr<views::MenuItemView> context_menu_menu_; | 251 scoped_ptr<views::MenuItemView> context_menu_menu_; |
| 252 | 252 |
| 253 scoped_ptr<TouchSelectionController> touch_selection_controller_; | 253 scoped_ptr<TouchSelectionController> touch_selection_controller_; |
| 254 | 254 |
| 255 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); | 255 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); |
| 256 }; | 256 }; |
| 257 | 257 |
| 258 } // namespace views | 258 } // namespace views |
| 259 | 259 |
| 260 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 260 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| OLD | NEW |