OLD | NEW |
| (Empty) |
1 // Copyright 2016 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 HEADLESS_LIB_BROWSER_HEADLESS_PLATFORM_EVENT_SOURCE_H_ | |
6 #define HEADLESS_LIB_BROWSER_HEADLESS_PLATFORM_EVENT_SOURCE_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "ui/events/platform/platform_event_source.h" | |
10 | |
11 namespace headless { | |
12 | |
13 // A stub event source whose main purpose is to prevent the default platform | |
14 // event source from getting created. | |
15 class HeadlessPlatformEventSource : public ui::PlatformEventSource { | |
16 public: | |
17 HeadlessPlatformEventSource(); | |
18 ~HeadlessPlatformEventSource() override; | |
19 | |
20 private: | |
21 DISALLOW_COPY_AND_ASSIGN(HeadlessPlatformEventSource); | |
22 }; | |
23 | |
24 } // namespace headless | |
25 | |
26 #endif // HEADLESS_LIB_BROWSER_HEADLESS_PLATFORM_EVENT_SOURCE_H_ | |
OLD | NEW |