summaryrefslogtreecommitdiffstats
path: root/components/mus/gesture_manager_delegate.h
blob: d26b2dc74caeb6cfb7959ec61e5774539c903a31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_MUS_GESTURE_MANAGER_DELEGATE_H_
#define COMPONENTS_MUS_GESTURE_MANAGER_DELEGATE_H_

#include <set>

#include "components/mus/public/cpp/types.h"
#include "ui/mojo/events/input_events.mojom.h"

namespace view_manager {

class GestureManagerDelegate {
 public:
  // Informs the delegate of a pointer event. The delegate should asynchronously
  // respond with the set of gestures appropriate for the view
  // (GestureManager::SetGestures()).
  // |has_chosen_gesture| is true if a gesture has been chosen.
  virtual void ProcessEvent(const ServerView* view,
                            mojo::EventPtr event,
                            bool has_chosen_gesture) = 0;

 protected:
  virtual ~GestureManagerDelegate() {}
};

}  // namespace view_manager

#endif  // COMPONENTS_MUS_GESTURE_MANAGER_DELEGATE_H_