OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_SYSTEM_MONITOR_IMAGE_CAPTURE_DEVICE_MAC_H_ | |
6 #define CHROME_BROWSER_SYSTEM_MONITOR_IMAGE_CAPTURE_DEVICE_MAC_H_ | |
7 | |
8 #import <Foundation/Foundation.h> | |
9 #import <ImageCaptureCore/ImageCaptureCore.h> | |
10 | |
11 #include "base/file_path.h" | |
12 #include "base/memory/scoped_nsobject.h" | |
13 #include "base/platform_file.h" | |
14 #include "base/string_util.h" | |
15 #include "base/sys_string_conversions.h" | |
16 | |
17 @class ImageCaptureCameraInterface; | |
18 @class ImageCaptureDeviceBrowserMac; | |
19 | |
20 namespace chrome { | |
21 | |
22 // This wrapper basically allows the owner to have a scoped_ptr rather than a | |
23 // scoped_nsobject, isolating the Objective-C parts of the implementation away. | |
24 class ImageCaptureDeviceBrowser { | |
sail
2012/12/14 01:26:32
I think SystemMonitorICDeviceBrowser would be a be
Greg Billock
2012/12/14 18:59:11
I suspect we'll end up not going through SystemMon
sail
2012/12/14 19:27:32
Sorry, I wasn't referring to the base/system_monit
Greg Billock
2012/12/14 22:03:56
Ah, hmmm. We haven't really followed that elsewher
sail
2012/12/14 22:14:48
In ui/cocoa/* we normally name the class after the
| |
25 public: | |
26 ImageCaptureDeviceBrowser(); | |
27 ~ImageCaptureDeviceBrowser(); | |
28 | |
29 // The UUIDs passed here are available in the device attach notifications | |
30 // given through SystemMonitor. They're gotten by cracking the device ID | |
31 // and taking the unique ID output. | |
32 static ImageCaptureCameraInterface* cameraInterfaceForUUID( | |
33 const std::string& uuid); | |
34 | |
35 private: | |
36 scoped_nsobject<ImageCaptureDeviceBrowserMac> device_browser_; | |
37 }; | |
38 | |
39 } // namespace chrome | |
40 | |
41 | |
42 | |
43 #endif // CHROME_BROWSER_SYSTEM_MONITOR_IMAGE_CAPTURE_DEVICE_MAC_H_ | |
OLD | NEW |