diff options
author | nkostylev@chromium.org <nkostylev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-30 11:33:44 +0000 |
---|---|---|
committer | nkostylev@chromium.org <nkostylev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-30 11:33:44 +0000 |
commit | 0c5fde3c14b1e1f10bfaf5fb41259a39125f9125 (patch) | |
tree | 2ed57ee7614052229c3d7f73fc19cf3a4bc63d45 /device/hid/hid_service_mac.h | |
parent | 25b8cb3a52846019f5aab8107b647cff245ac6fd (diff) | |
download | chromium_src-0c5fde3c14b1e1f10bfaf5fb41259a39125f9125.zip chromium_src-0c5fde3c14b1e1f10bfaf5fb41259a39125f9125.tar.gz chromium_src-0c5fde3c14b1e1f10bfaf5fb41259a39125f9125.tar.bz2 |
Revert 247926 "HID backend"
Breaks CrOS buildbots
http://build.chromium.org/p/chromium.chromiumos/buildstatus?builder=ChromiumOS%20%28daisy%29&number=16073
http://build.chromium.org/p/chromium.chromiumos/buildstatus?builder=ChromiumOS%20%28amd64%29&number=13917
http://build.chromium.org/p/chromium.memory/buildstatus?builder=Chromium%20OS%20%28x86%29%20ASAN&number=8064
> HID backend
>
> BUG=290428
>
> Review URL: https://codereview.chromium.org/143883005
TBR=ikarienator@chromium.org
Review URL: https://codereview.chromium.org/148183015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247934 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/hid/hid_service_mac.h')
-rw-r--r-- | device/hid/hid_service_mac.h | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/device/hid/hid_service_mac.h b/device/hid/hid_service_mac.h deleted file mode 100644 index ef02e4f..0000000 --- a/device/hid/hid_service_mac.h +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2014 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_HID_HID_SERVICE_MAC_H_ -#define DEVICE_HID_HID_SERVICE_MAC_H_ - -#include <map> -#include <string> -#include <vector> - -#include "base/basictypes.h" -#include "base/mac/foundation_util.h" -#include "base/memory/ref_counted.h" -#include "base/memory/singleton.h" -#include "base/message_loop/message_loop.h" -#include "base/strings/string16.h" -#include "base/synchronization/waitable_event.h" -#include "base/threading/thread.h" -#include "base/threading/thread_checker.h" -#include "build/build_config.h" -#include "device/hid/hid_device_info.h" -#include "device/hid/hid_service.h" - -#include <CoreFoundation/CoreFoundation.h> -#include <IOKit/hid/IOHIDManager.h> - -namespace device { - -class HidConnection; -class HidService; - -class HidServiceMac : public HidService { - public: - HidServiceMac(); - - virtual scoped_refptr<HidConnection> Connect(std::string device_id) OVERRIDE; - - private: - virtual ~HidServiceMac(); - - void ScheduleRunLoop(); - void UnscheduleRunLoop(); - - // Device changing callbacks. - static void AddDeviceCallback(void* context, - IOReturn result, - void* sender, - IOHIDDeviceRef ref); - static void RemoveDeviceCallback(void* context, - IOReturn result, - void* sender, - IOHIDDeviceRef ref); - static HidServiceMac* InstanceFromContext(void* context); - - IOHIDDeviceRef FindDevice(std::string id); - - void Enumerate(); - - void PlatformAddDevice(IOHIDDeviceRef ref); - void PlatformRemoveDevice(IOHIDDeviceRef ref); - - // The message loop this object belongs to. - scoped_refptr<base::MessageLoopProxy> message_loop_; - - // Platform HID Manager - base::ScopedCFTypeRef<IOHIDManagerRef> hid_manager_ref_; - - // Enumeration thread. - scoped_ptr<base::Thread> enumeration_runloop_thread_; - CFRunLoopRef enumeration_runloop_; - base::WaitableEvent enumeration_runloop_init_; - - bool available_; - - DISALLOW_COPY_AND_ASSIGN(HidServiceMac); -}; - -} // namespace device - -#endif // DEVICE_HID_HID_SERVICE_MAC_H_ |