summaryrefslogtreecommitdiffstats
path: root/ui/events/test/platform_event_source_test_api.h
blob: 803cbc74b9eaa94f83b435bfc863bc08fb9601d0 (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
// 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 UI_EVENTS_TEST_PLATFORM_EVENT_SOURCE_TEST_API_H_
#define UI_EVENTS_TEST_PLATFORM_EVENT_SOURCE_TEST_API_H_

#include "base/macros.h"
#include "ui/events/platform/platform_event_types.h"

namespace ui {

class PlatformEventSource;

namespace test {

class PlatformEventSourceTestAPI {
 public:
  explicit PlatformEventSourceTestAPI(PlatformEventSource* event_source);
  ~PlatformEventSourceTestAPI();

  void Dispatch(PlatformEvent platform_event);

 private:
  PlatformEventSource* event_source_;

  DISALLOW_COPY_AND_ASSIGN(PlatformEventSourceTestAPI);
};

}  // namespace test
}  // namespace ui

#endif  // UI_EVENTS_TEST_PLATFORM_EVENT_SOURCE_TEST_API_H_