Index: content/browser/gamepad/gamepad_platform_data_fetcher_linux.h |
diff --git a/content/browser/gamepad/gamepad_platform_data_fetcher_linux.h b/content/browser/gamepad/gamepad_platform_data_fetcher_linux.h |
deleted file mode 100644 |
index a260760d9c109cee693a2f3862a70d5444a68955..0000000000000000000000000000000000000000 |
--- a/content/browser/gamepad/gamepad_platform_data_fetcher_linux.h |
+++ /dev/null |
@@ -1,51 +0,0 @@ |
-// Copyright (c) 2012 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 CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_ |
-#define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_ |
- |
-#include <stddef.h> |
- |
-#include <memory> |
-#include <string> |
- |
-#include "base/compiler_specific.h" |
-#include "base/macros.h" |
-#include "content/browser/gamepad/gamepad_data_fetcher.h" |
- |
-extern "C" { |
-struct udev_device; |
-} |
- |
-namespace device { |
-class UdevLinux; |
-} |
- |
-namespace content { |
- |
-class GamepadPlatformDataFetcherLinux : public GamepadDataFetcher { |
- public: |
- GamepadPlatformDataFetcherLinux(); |
- ~GamepadPlatformDataFetcherLinux() override; |
- |
- // GamepadDataFetcher implementation. |
- void GetGamepadData(blink::WebGamepads* pads, |
- bool devices_changed_hint) override; |
- |
- private: |
- void RefreshDevice(udev_device* dev); |
- void EnumerateDevices(); |
- void ReadDeviceData(size_t index); |
- |
- // File descriptor for the /dev/input/js* devices. -1 if not in use. |
- int device_fd_[blink::WebGamepads::itemsLengthCap]; |
- |
- std::unique_ptr<device::UdevLinux> udev_; |
- |
- DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherLinux); |
-}; |
- |
-} // namespace content |
- |
-#endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_ |