Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(661)

Side by Side Diff: ui/ozone/platform/caca/caca_event_source.h

Issue 2445323002: Ozone: Remove the caca platform from the tree (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/platform/caca/OWNERS ('k') | ui/ozone/platform/caca/caca_event_source.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 UI_OZONE_PLATFORM_CACA_CACA_EVENT_SOURCE_H_
6 #define UI_OZONE_PLATFORM_CACA_CACA_EVENT_SOURCE_H_
7
8 #include <caca.h>
9
10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h"
12 #include "base/time/time.h"
13 #include "ui/events/platform/platform_event_source.h"
14 #include "ui/events/platform/scoped_event_dispatcher.h"
15 #include "ui/gfx/geometry/point_f.h"
16
17 namespace ui {
18
19 class CacaWindow;
20
21 class CacaEventSource : public PlatformEventSource {
22 public:
23 CacaEventSource();
24 ~CacaEventSource() override;
25
26 // Poll for an event on a particular window. Input events will be
27 // dispatched on the given dispatcher.
28 void TryProcessingEvent(CacaWindow* window);
29
30 // Process an input event on a particular window.
31 void OnInputEvent(caca_event_t* event, CacaWindow* window);
32
33 private:
34 // Keep track of last cursor position to dispatch correct mouse push/release
35 // events.
36 gfx::PointF last_cursor_location_;
37
38 int modifier_flags_ = 0;
39
40 DISALLOW_COPY_AND_ASSIGN(CacaEventSource);
41 };
42
43 } // namespace ui
44
45 #endif // UI_OZONE_PLATFORM_CACA_CACA_EVENT_SOURCE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/caca/OWNERS ('k') | ui/ozone/platform/caca/caca_event_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698