summaryrefslogtreecommitdiffstats
path: root/remoting/host/event_executor_win.h
blob: 4a354e65381da635a84a2b581b2c87e8f6c2468d (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
32
33
34
35
// Copyright (c) 2010 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 REMOTING_HOST_EVENT_EXECUTOR_WIN_H_
#define REMOTING_HOST_EVENT_EXECUTOR_WIN_H_

#include <vector>

#include "remoting/host/event_executor.h"

namespace remoting {

// A class to generate events on Windows.
class EventExecutorWin : public EventExecutor {
 public:
  EventExecutorWin(Capturer* capturer);
  virtual ~EventExecutorWin();

  virtual void HandleInputEvents(ClientMessageList* messages);

 private:
  void HandleMouseSetPosition(ChromotingClientMessage* msg);
  void HandleMouseMove(ChromotingClientMessage* msg);
  void HandleMouseWheel(ChromotingClientMessage* msg);
  void HandleMouseButtonDown(ChromotingClientMessage* msg);
  void HandleMouseButtonUp(ChromotingClientMessage* msg);
  void HandleKey(ChromotingClientMessage* msg);

  DISALLOW_COPY_AND_ASSIGN(EventExecutorWin);
};

}  // namespace remoting

#endif  // REMOTING_HOST_EVENT_EXECUTOR_WIN_H_