| OLD | NEW |
| (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) {} |
| 21 |
| 22 virtual ~GamepadObserver() {} |
| 23 }; |
| 24 |
| 25 } // namespace ui |
| 26 |
| 27 #endif // UI_EVENTS_OZONE_GAMEPAD_GAMEPAD_OBSERVER_H_ |
| OLD | NEW |