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 | |
10 #include "base/file_path.h" | |
11 #include "base/memory/scoped_nsobject.h" | |
12 #include "base/platform_file.h" | |
13 #include "base/string_util.h" | |
14 #include "base/sys_string_conversions.h" | |
15 | |
16 @protocol ICDeviceBrowserDelegate; | |
17 @class ImageCaptureCameraInterface; | |
18 @class ImageCaptureDeviceBrowserMac; | |
19 class ImageCaptureDeviceBrowserTest; | |
20 | |
21 namespace chrome { | |
22 | |
23 // This wrapper basically allows the owner to have a scoped_ptr rather than a | |
24 // scoped_nsobject, isolating the Objective-C parts of the implementation away. | |
25 class ImageCaptureDeviceBrowser { | |
26 public: | |
27 ImageCaptureDeviceBrowser(); | |
28 ~ImageCaptureDeviceBrowser(); | |
29 | |
30 // The UUIDs passed here are available in the device attach notifications | |
31 // given through SystemMonitor. They're gotten by cracking the device ID | |
32 // and taking the unique ID output. | |
33 static ImageCaptureCameraInterface* cameraInterfaceForUUID( | |
34 const std::string& uuid); | |
35 | |
36 // Return a weak pointer to the internal ImageCapture interface protocol. | |
sail
2012/12/17 23:55:03
Return -> Returns
Greg Billock
2012/12/19 00:05:09
Done.
| |
37 // Currently useful for unit tests. | |
sail
2012/12/17 23:55:03
probably don't need
Greg Billock
2012/12/19 00:05:09
Done.
| |
38 id<ICDeviceBrowserDelegate> device_browser(); | |
39 | |
40 private: | |
41 // friend class ::ImageCaptureDeviceBrowserTest; | |
sail
2012/12/17 23:55:03
remove?
Greg Billock
2012/12/19 00:05:09
Oops! yes.
On 2012/12/17 23:55:03, sail wrote:
| |
42 | |
43 scoped_nsobject<ImageCaptureDeviceBrowserMac> device_browser_; | |
44 }; | |
45 | |
46 } // namespace chrome | |
47 | |
48 | |
49 | |
50 #endif // CHROME_BROWSER_SYSTEM_MONITOR_IMAGE_CAPTURE_DEVICE_MAC_H_ | |
OLD | NEW |