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

Side by Side Diff: content/browser/gamepad/gamepad_platform_data_fetcher_linux.h

Issue 633843002: Replacing the OVERRIDE with override and FINAL with final in content/browser/[dom_storage|gamepad|… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_ 5 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_
6 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_ 6 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 11 matching lines...) Expand all
22 22
23 class UdevLinux; 23 class UdevLinux;
24 24
25 class GamepadPlatformDataFetcherLinux : public GamepadDataFetcher { 25 class GamepadPlatformDataFetcherLinux : public GamepadDataFetcher {
26 public: 26 public:
27 GamepadPlatformDataFetcherLinux(); 27 GamepadPlatformDataFetcherLinux();
28 virtual ~GamepadPlatformDataFetcherLinux(); 28 virtual ~GamepadPlatformDataFetcherLinux();
29 29
30 // GamepadDataFetcher implementation. 30 // GamepadDataFetcher implementation.
31 virtual void GetGamepadData(blink::WebGamepads* pads, 31 virtual void GetGamepadData(blink::WebGamepads* pads,
32 bool devices_changed_hint) OVERRIDE; 32 bool devices_changed_hint) override;
33 33
34 private: 34 private:
35 void RefreshDevice(udev_device* dev); 35 void RefreshDevice(udev_device* dev);
36 void EnumerateDevices(); 36 void EnumerateDevices();
37 void ReadDeviceData(size_t index); 37 void ReadDeviceData(size_t index);
38 38
39 // File descriptors for the /dev/input/js* devices. -1 if not in use. 39 // File descriptors for the /dev/input/js* devices. -1 if not in use.
40 int device_fds_[blink::WebGamepads::itemsLengthCap]; 40 int device_fds_[blink::WebGamepads::itemsLengthCap];
41 41
42 // Functions to map from device data to standard layout, if available. May 42 // Functions to map from device data to standard layout, if available. May
43 // be null if no mapping is available. 43 // be null if no mapping is available.
44 GamepadStandardMappingFunction mappers_[blink::WebGamepads::itemsLengthCap]; 44 GamepadStandardMappingFunction mappers_[blink::WebGamepads::itemsLengthCap];
45 45
46 // Data that's returned to the consumer. 46 // Data that's returned to the consumer.
47 blink::WebGamepads data_; 47 blink::WebGamepads data_;
48 48
49 scoped_ptr<UdevLinux> udev_; 49 scoped_ptr<UdevLinux> udev_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherLinux); 51 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherLinux);
52 }; 52 };
53 53
54 } // namespace content 54 } // namespace content
55 55
56 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_ 56 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698