| 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" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 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). | 29 // * Clipboard (Cut & Paste). |
| 30 // * Context Menu. | 30 // * Context Menu. |
| 31 // * IME/i18n support. | 31 // * IME/i18n support. |
| 32 // * X selection (only if we want to support). | 32 // * X selection (only if we want to support). |
| 33 // * STYLE_MULTILINE, STYLE_LOWERCASE text. (These are not used in | 33 // * STYLE_MULTILINE, STYLE_LOWERCASE text. (These are not used in |
| 34 // chromeos, so we may not need them) | 34 // chromeos, so we may not need them) |
| 35 // * Double click to select word, and triple click to select all. | 35 // * Double click to select word, and triple click to select all. |
| 36 // * Undo/Redo |
| 36 class NativeTextfieldViews : public views::View, | 37 class NativeTextfieldViews : public views::View, |
| 37 public NativeTextfieldWrapper { | 38 public NativeTextfieldWrapper { |
| 38 public: | 39 public: |
| 39 explicit NativeTextfieldViews(Textfield* parent); | 40 explicit NativeTextfieldViews(Textfield* parent); |
| 40 ~NativeTextfieldViews(); | 41 ~NativeTextfieldViews(); |
| 41 | 42 |
| 42 // views::View overrides: | 43 // views::View overrides: |
| 43 virtual bool OnMousePressed(const views::MouseEvent& e); | 44 virtual bool OnMousePressed(const views::MouseEvent& e); |
| 44 virtual bool OnMouseDragged(const views::MouseEvent& e); | 45 virtual bool OnMouseDragged(const views::MouseEvent& e); |
| 45 virtual void OnMouseReleased(const views::MouseEvent& e, bool canceled); | 46 virtual void OnMouseReleased(const views::MouseEvent& e, bool canceled); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 168 |
| 168 // A runnable method factory for callback to update the cursor. | 169 // A runnable method factory for callback to update the cursor. |
| 169 ScopedRunnableMethodFactory<NativeTextfieldViews> cursor_timer_; | 170 ScopedRunnableMethodFactory<NativeTextfieldViews> cursor_timer_; |
| 170 | 171 |
| 171 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); | 172 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); |
| 172 }; | 173 }; |
| 173 | 174 |
| 174 } // namespace views | 175 } // namespace views |
| 175 | 176 |
| 176 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 177 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| OLD | NEW |