OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SERVICES_VIEW_MANAGER_GESTURE_MANAGER_DELEGATE_H_ |
| 6 #define SERVICES_VIEW_MANAGER_GESTURE_MANAGER_DELEGATE_H_ |
| 7 |
| 8 #include <set> |
| 9 |
| 10 #include "third_party/mojo_services/src/input_events/public/interfaces/input_eve
nts.mojom.h" |
| 11 #include "third_party/mojo_services/src/view_manager/public/cpp/types.h" |
| 12 |
| 13 namespace view_manager { |
| 14 |
| 15 class GestureManagerDelegate { |
| 16 public: |
| 17 // Informs the delegate of a pointer event. The delegate should asynchronously |
| 18 // respond with the set of gestures appropriate for the view |
| 19 // (GestureManager::SetGestures()). |
| 20 // |has_chosen_gesture| is true if a gesture has been chosen. |
| 21 virtual void ProcessEvent(const ServerView* view, |
| 22 mojo::EventPtr event, |
| 23 bool has_chosen_gesture) = 0; |
| 24 |
| 25 protected: |
| 26 virtual ~GestureManagerDelegate() {} |
| 27 }; |
| 28 |
| 29 } // namespace view_manager |
| 30 |
| 31 #endif // SERVICES_VIEW_MANAGER_GESTURE_MANAGER_DELEGATE_H_ |
OLD | NEW |