| 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 #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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 69 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 70 virtual void OnFocus() OVERRIDE; | 70 virtual void OnFocus() OVERRIDE; |
| 71 virtual void OnBlur() OVERRIDE; | 71 virtual void OnBlur() OVERRIDE; |
| 72 | 72 |
| 73 // TouchSelectionClientView overrides: | 73 // TouchSelectionClientView overrides: |
| 74 virtual void SelectRect(const gfx::Point& start, | 74 virtual void SelectRect(const gfx::Point& start, |
| 75 const gfx::Point& end) OVERRIDE; | 75 const gfx::Point& end) OVERRIDE; |
| 76 | 76 |
| 77 // ContextMenuController overrides: | 77 // ContextMenuController overrides: |
| 78 virtual void ShowContextMenuForView(View* source, | 78 virtual void ShowContextMenuForView(View* source, |
| 79 const gfx::Point& p, | 79 const gfx::Point& point) OVERRIDE; |
| 80 bool is_mouse_gesture) OVERRIDE; | |
| 81 | 80 |
| 82 // Overridden from DragController: | 81 // Overridden from DragController: |
| 83 virtual void WriteDragDataForView(View* sender, | 82 virtual void WriteDragDataForView(View* sender, |
| 84 const gfx::Point& press_pt, | 83 const gfx::Point& press_pt, |
| 85 ui::OSExchangeData* data) OVERRIDE; | 84 ui::OSExchangeData* data) OVERRIDE; |
| 86 virtual int GetDragOperationsForView(View* sender, | 85 virtual int GetDragOperationsForView(View* sender, |
| 87 const gfx::Point& p) OVERRIDE; | 86 const gfx::Point& p) OVERRIDE; |
| 88 virtual bool CanStartDragForView(View* sender, | 87 virtual bool CanStartDragForView(View* sender, |
| 89 const gfx::Point& press_pt, | 88 const gfx::Point& press_pt, |
| 90 const gfx::Point& p) OVERRIDE; | 89 const gfx::Point& p) OVERRIDE; |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 scoped_ptr<views::MenuRunner> context_menu_runner_; | 273 scoped_ptr<views::MenuRunner> context_menu_runner_; |
| 275 | 274 |
| 276 scoped_ptr<TouchSelectionController> touch_selection_controller_; | 275 scoped_ptr<TouchSelectionController> touch_selection_controller_; |
| 277 | 276 |
| 278 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); | 277 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldViews); |
| 279 }; | 278 }; |
| 280 | 279 |
| 281 } // namespace views | 280 } // namespace views |
| 282 | 281 |
| 283 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ | 282 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_VIEWS_H_ |
| OLD | NEW |