| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "ui/base/events.h" | 10 #include "ui/base/events.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 const gfx::Point& p) OVERRIDE; | 87 const gfx::Point& p) OVERRIDE; |
| 88 virtual bool CanStartDragForView(View* sender, | 88 virtual bool CanStartDragForView(View* sender, |
| 89 const gfx::Point& press_pt, | 89 const gfx::Point& press_pt, |
| 90 const gfx::Point& p) OVERRIDE; | 90 const gfx::Point& p) OVERRIDE; |
| 91 | 91 |
| 92 // NativeTextfieldWrapper overrides: | 92 // NativeTextfieldWrapper overrides: |
| 93 virtual string16 GetText() const OVERRIDE; | 93 virtual string16 GetText() const OVERRIDE; |
| 94 virtual void UpdateText() OVERRIDE; | 94 virtual void UpdateText() OVERRIDE; |
| 95 virtual void AppendText(const string16& text) OVERRIDE; | 95 virtual void AppendText(const string16& text) OVERRIDE; |
| 96 virtual string16 GetSelectedText() const OVERRIDE; | 96 virtual string16 GetSelectedText() const OVERRIDE; |
| 97 virtual void SelectAll() OVERRIDE; | 97 virtual void SelectAll(bool reversed) OVERRIDE; |
| 98 virtual void ClearSelection() OVERRIDE; | 98 virtual void ClearSelection() OVERRIDE; |
| 99 virtual void UpdateBorder() OVERRIDE; | 99 virtual void UpdateBorder() OVERRIDE; |
| 100 virtual void UpdateTextColor() OVERRIDE; | 100 virtual void UpdateTextColor() OVERRIDE; |
| 101 virtual void UpdateBackgroundColor() OVERRIDE; | 101 virtual void UpdateBackgroundColor() OVERRIDE; |
| 102 virtual void UpdateCursorColor() OVERRIDE; | 102 virtual void UpdateCursorColor() OVERRIDE; |
| 103 virtual void UpdateReadOnly() OVERRIDE; | 103 virtual void UpdateReadOnly() OVERRIDE; |
| 104 virtual void UpdateFont() OVERRIDE; | 104 virtual void UpdateFont() OVERRIDE; |
| 105 virtual void UpdateIsObscured() OVERRIDE; | 105 virtual void UpdateIsObscured() OVERRIDE; |
| 106 virtual void UpdateEnabled() OVERRIDE; | 106 virtual void UpdateEnabled() OVERRIDE; |
| 107 virtual gfx::Insets CalculateInsets() OVERRIDE; | 107 virtual gfx::Insets CalculateInsets() OVERRIDE; |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 scoped_ptr<views::MenuRunner> context_menu_runner_; | 280 scoped_ptr<views::MenuRunner> context_menu_runner_; |
| 281 | 281 |
| 282 scoped_ptr<TouchSelectionController> touch_selection_controller_; | 282 scoped_ptr<TouchSelectionController> touch_selection_controller_; |
| 283 | 283 |
| 284 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); | 284 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); |
| 285 }; | 285 }; |
| 286 | 286 |
| 287 } // namespace views | 287 } // namespace views |
| 288 | 288 |
| 289 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 289 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| OLD | NEW |