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

Unified Diff: device/gamepad/game_controller_data_fetcher_mac.h

Issue 2271353002: Added support for GameController devices on OSX (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review feedback Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: device/gamepad/game_controller_data_fetcher_mac.h
diff --git a/device/gamepad/game_controller_data_fetcher_mac.h b/device/gamepad/game_controller_data_fetcher_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..cc7a57c5972f0adb5009a1618ec470cb98d5caca
--- /dev/null
+++ b/device/gamepad/game_controller_data_fetcher_mac.h
@@ -0,0 +1,38 @@
+// Copyright 2016 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 DEVICE_GAMEPAD_GAME_CONTROLLER_DATA_FETCHER_MAC_H_
+#define DEVICE_GAMEPAD_GAME_CONTROLLER_DATA_FETCHER_MAC_H_
+
+#include "base/macros.h"
+#include "device/gamepad/gamepad_data_fetcher.h"
+
+#if defined(__OBJC__)
+@class NSArray;
+#else
+class NSArray;
+#endif
+
+namespace device {
+
+class GameControllerDataFetcherMac : public GamepadDataFetcher {
+ public:
+ typedef GamepadDataFetcherFactoryImpl<GameControllerDataFetcherMac,
+ GAMEPAD_SOURCE_MAC_GC>
+ Factory;
+
+ GameControllerDataFetcherMac();
+ ~GameControllerDataFetcherMac() override;
+
+ GamepadSource source() override;
+
+ void GetGamepadData(bool devices_changed_hint) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(GameControllerDataFetcherMac);
+};
+
+} // namespace device
+
+#endif // DEVICE_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698