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

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

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with fixed off-by-1 in git-clang-format Created 7 years, 6 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 | Annotate | Revision Log
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_MAC_H_ 5 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_MAC_H_
6 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_MAC_H_ 6 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_MAC_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/mac/scoped_cftyperef.h" 10 #include "base/mac/scoped_cftyperef.h"
(...skipping 20 matching lines...) Expand all
31 public XboxDataFetcher::Delegate { 31 public XboxDataFetcher::Delegate {
32 public: 32 public:
33 GamepadPlatformDataFetcherMac(); 33 GamepadPlatformDataFetcherMac();
34 virtual ~GamepadPlatformDataFetcherMac(); 34 virtual ~GamepadPlatformDataFetcherMac();
35 virtual void GetGamepadData(WebKit::WebGamepads* pads, 35 virtual void GetGamepadData(WebKit::WebGamepads* pads,
36 bool devices_changed_hint) OVERRIDE; 36 bool devices_changed_hint) OVERRIDE;
37 virtual void PauseHint(bool paused) OVERRIDE; 37 virtual void PauseHint(bool paused) OVERRIDE;
38 38
39 private: 39 private:
40 bool enabled_; 40 bool enabled_;
41 base::mac::ScopedCFTypeRef<IOHIDManagerRef> hid_manager_ref_; 41 base::ScopedCFTypeRef<IOHIDManagerRef> hid_manager_ref_;
42 42
43 static GamepadPlatformDataFetcherMac* InstanceFromContext(void* context); 43 static GamepadPlatformDataFetcherMac* InstanceFromContext(void* context);
44 static void DeviceAddCallback(void* context, 44 static void DeviceAddCallback(void* context,
45 IOReturn result, 45 IOReturn result,
46 void* sender, 46 void* sender,
47 IOHIDDeviceRef ref); 47 IOHIDDeviceRef ref);
48 static void DeviceRemoveCallback(void* context, 48 static void DeviceRemoveCallback(void* context,
49 IOReturn result, 49 IOReturn result,
50 void* sender, 50 void* sender,
51 IOHIDDeviceRef ref); 51 IOHIDDeviceRef ref);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 }; 97 };
98 }; 98 };
99 AssociatedData associated_[WebKit::WebGamepads::itemsLengthCap]; 99 AssociatedData associated_[WebKit::WebGamepads::itemsLengthCap];
100 100
101 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherMac); 101 DISALLOW_COPY_AND_ASSIGN(GamepadPlatformDataFetcherMac);
102 }; 102 };
103 103
104 } // namespace content 104 } // namespace content
105 105
106 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_MAC_H_ 106 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_PLATFORM_DATA_FETCHER_MAC_H_
OLDNEW
« no previous file with comments | « content/browser/download/file_metadata_mac.mm ('k') | content/browser/gamepad/gamepad_platform_data_fetcher_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698