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

Side by Side Diff: ui/events/ozone/gamepad/gamepad_observer.h

Issue 2805793002: ozone: evdev: Add gamepad support (Closed)
Patch Set: Support Gamepad in Ozone. Created 3 years, 8 months 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
OLDNEW
(Empty)
1 // Copyright 2017 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_EVENTS_OZONE_GAMEPAD_GAMEPAD_OBSERVER_H_
6 #define UI_EVENTS_OZONE_GAMEPAD_GAMEPAD_OBSERVER_H_
7
8 #include "base/logging.h"
9 #include "base/time/time.h"
10 #include "ui/events/ozone/gamepad/gamepad_event.h"
11
12 namespace ui {
13
14 class GamepadObserver {
15 public:
16 // Callback function when connected gamepad devices is updated.
17 virtual void OnGamepadDevicesUpdated() {}
18
19 // Callback function on gamepad.
20 virtual void OnGamepadEvent(const GamepadEvent& event) {}
spang 2017/04/21 05:38:46 We might want to consider if we can just #include
jkwang 2017/04/25 21:16:41 The Gamepad class works great if the gamepad provi
21
22 virtual ~GamepadObserver() {}
23 };
24
25 } // namespace ui
26
27 #endif // UI_EVENTS_OZONE_GAMEPAD_GAMEPAD_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698