| 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/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 virtual void UpdateFont() OVERRIDE; | 103 virtual void UpdateFont() OVERRIDE; |
| 104 virtual void UpdateIsPassword() OVERRIDE; | 104 virtual void UpdateIsPassword() OVERRIDE; |
| 105 virtual void UpdateEnabled() OVERRIDE; | 105 virtual void UpdateEnabled() OVERRIDE; |
| 106 virtual gfx::Insets CalculateInsets() OVERRIDE; | 106 virtual gfx::Insets CalculateInsets() OVERRIDE; |
| 107 virtual void UpdateHorizontalMargins() OVERRIDE; | 107 virtual void UpdateHorizontalMargins() OVERRIDE; |
| 108 virtual void UpdateVerticalMargins() OVERRIDE; | 108 virtual void UpdateVerticalMargins() OVERRIDE; |
| 109 virtual bool SetFocus() OVERRIDE; | 109 virtual bool SetFocus() OVERRIDE; |
| 110 virtual View* GetView() OVERRIDE; | 110 virtual View* GetView() OVERRIDE; |
| 111 virtual gfx::NativeView GetTestingHandle() const OVERRIDE; | 111 virtual gfx::NativeView GetTestingHandle() const OVERRIDE; |
| 112 virtual bool IsIMEComposing() const OVERRIDE; | 112 virtual bool IsIMEComposing() const OVERRIDE; |
| 113 virtual void GetSelectedRange(ui::Range* range) const OVERRIDE; |
| 114 virtual void SelectRange(const ui::Range& range) OVERRIDE; |
| 113 virtual void GetSelectionModel(gfx::SelectionModel* sel) const OVERRIDE; | 115 virtual void GetSelectionModel(gfx::SelectionModel* sel) const OVERRIDE; |
| 114 virtual void SelectSelectionModel(const gfx::SelectionModel& sel) OVERRIDE; | 116 virtual void SelectSelectionModel(const gfx::SelectionModel& sel) OVERRIDE; |
| 115 virtual size_t GetCursorPosition() const OVERRIDE; | 117 virtual size_t GetCursorPosition() const OVERRIDE; |
| 116 virtual bool HandleKeyPressed(const KeyEvent& e) OVERRIDE; | 118 virtual bool HandleKeyPressed(const KeyEvent& e) OVERRIDE; |
| 117 virtual bool HandleKeyReleased(const KeyEvent& e) OVERRIDE; | 119 virtual bool HandleKeyReleased(const KeyEvent& e) OVERRIDE; |
| 118 virtual void HandleFocus() OVERRIDE; | 120 virtual void HandleFocus() OVERRIDE; |
| 119 virtual void HandleBlur() OVERRIDE; | 121 virtual void HandleBlur() OVERRIDE; |
| 120 virtual TextInputClient* GetTextInputClient() OVERRIDE; | 122 virtual TextInputClient* GetTextInputClient() OVERRIDE; |
| 121 virtual void ApplyStyleRange(const gfx::StyleRange& style) OVERRIDE; | 123 virtual void ApplyStyleRange(const gfx::StyleRange& style) OVERRIDE; |
| 122 virtual void ApplyDefaultStyle() OVERRIDE; | 124 virtual void ApplyDefaultStyle() OVERRIDE; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 scoped_ptr<views::MenuRunner> context_menu_runner_; | 254 scoped_ptr<views::MenuRunner> context_menu_runner_; |
| 253 | 255 |
| 254 scoped_ptr<TouchSelectionController> touch_selection_controller_; | 256 scoped_ptr<TouchSelectionController> touch_selection_controller_; |
| 255 | 257 |
| 256 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); | 258 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); |
| 257 }; | 259 }; |
| 258 | 260 |
| 259 } // namespace views | 261 } // namespace views |
| 260 | 262 |
| 261 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 263 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| OLD | NEW |