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

Unified Diff: trunk/src/device/hid/hid_service_mac.h

Issue 148183015: Revert 247926 "HID backend" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « trunk/src/device/hid/hid_service_linux.cc ('k') | trunk/src/device/hid/hid_service_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/device/hid/hid_service_mac.h
===================================================================
--- trunk/src/device/hid/hid_service_mac.h (revision 247933)
+++ trunk/src/device/hid/hid_service_mac.h (working copy)
@@ -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_
« no previous file with comments | « trunk/src/device/hid/hid_service_linux.cc ('k') | trunk/src/device/hid/hid_service_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698