| 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_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 5 #ifndef VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
| 6 #define VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 6 #define VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ui/gfx/point.h" | 9 #include "ui/gfx/point.h" |
| 10 #include "views/touchui/touch_selection_controller.h" | 10 #include "views/touchui/touch_selection_controller.h" |
| 11 #include "views/view.h" | 11 #include "views/view.h" |
| 12 #include "views/views_export.h" |
| 12 | 13 |
| 13 namespace views { | 14 namespace views { |
| 14 | 15 |
| 15 // Touch specific implementation of TouchSelectionController. Responsible for | 16 // Touch specific implementation of TouchSelectionController. Responsible for |
| 16 // displaying selection handles and menu elements relevant in a touch interface. | 17 // displaying selection handles and menu elements relevant in a touch interface. |
| 17 class TouchSelectionControllerImpl : public TouchSelectionController { | 18 class VIEWS_EXPORT TouchSelectionControllerImpl |
| 19 : public TouchSelectionController { |
| 18 public: | 20 public: |
| 19 // Use TextSelectionController::create(). | 21 // Use TextSelectionController::create(). |
| 20 explicit TouchSelectionControllerImpl(TouchSelectionClientView* client_view); | 22 explicit TouchSelectionControllerImpl(TouchSelectionClientView* client_view); |
| 21 | 23 |
| 22 virtual ~TouchSelectionControllerImpl(); | 24 virtual ~TouchSelectionControllerImpl(); |
| 23 | 25 |
| 24 // TextSelectionController. | 26 // TextSelectionController. |
| 25 virtual void SelectionChanged(const gfx::Point& p1, | 27 virtual void SelectionChanged(const gfx::Point& p1, |
| 26 const gfx::Point& p2) OVERRIDE; | 28 const gfx::Point& p2) OVERRIDE; |
| 27 | 29 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 51 | 53 |
| 52 // Pointer to the SelectionHandleView being dragged during a drag session. | 54 // Pointer to the SelectionHandleView being dragged during a drag session. |
| 53 SelectionHandleView* dragging_handle_; | 55 SelectionHandleView* dragging_handle_; |
| 54 | 56 |
| 55 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerImpl); | 57 DISALLOW_COPY_AND_ASSIGN(TouchSelectionControllerImpl); |
| 56 }; | 58 }; |
| 57 | 59 |
| 58 } // namespace views | 60 } // namespace views |
| 59 | 61 |
| 60 #endif // VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ | 62 #endif // VIEWS_TOUCHUI_TOUCH_SELECTION_CONTROLLER_IMPL_H_ |
| OLD | NEW |