OLD | NEW |
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 CHROME_BROWSER_STORAGE_MONITOR_IMAGE_CAPTURE_DEVICE_H_ | 5 #ifndef CHROME_BROWSER_STORAGE_MONITOR_IMAGE_CAPTURE_DEVICE_H_ |
6 #define CHROME_BROWSER_STORAGE_MONITOR_IMAGE_CAPTURE_DEVICE_H_ | 6 #define CHROME_BROWSER_STORAGE_MONITOR_IMAGE_CAPTURE_DEVICE_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 #import <ImageCaptureCore/ImageCaptureCore.h> | 9 #import <ImageCaptureCore/ImageCaptureCore.h> |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 base::scoped_nsobject<ICCameraDevice> camera_; | 61 base::scoped_nsobject<ICCameraDevice> camera_; |
62 base::WeakPtr<ImageCaptureDeviceListener> listener_; | 62 base::WeakPtr<ImageCaptureDeviceListener> listener_; |
63 bool closing_; | 63 bool closing_; |
64 } | 64 } |
65 | 65 |
66 - (id)initWithCameraDevice:(ICCameraDevice*)cameraDevice; | 66 - (id)initWithCameraDevice:(ICCameraDevice*)cameraDevice; |
67 - (void)setListener:(base::WeakPtr<ImageCaptureDeviceListener>)listener; | 67 - (void)setListener:(base::WeakPtr<ImageCaptureDeviceListener>)listener; |
68 - (void)open; | 68 - (void)open; |
69 - (void)close; | 69 - (void)close; |
70 | 70 |
| 71 - (void)eject; |
| 72 |
71 // Download the given file |name| to the provided |local_path|. Completion | 73 // Download the given file |name| to the provided |local_path|. Completion |
72 // notice will be sent to the listener's DownloadedFile method. The name | 74 // notice will be sent to the listener's DownloadedFile method. The name |
73 // should be of the same form as those sent to the listener's ItemAdded method. | 75 // should be of the same form as those sent to the listener's ItemAdded method. |
74 - (void)downloadFile:(const std::string&)name | 76 - (void)downloadFile:(const std::string&)name |
75 localPath:(const base::FilePath&)localPath; | 77 localPath:(const base::FilePath&)localPath; |
76 | 78 |
77 @end | 79 @end |
78 | 80 |
79 #endif // CHROME_BROWSER_STORAGE_MONITOR_IMAGE_CAPTURE_DEVICE_H_ | 81 #endif // CHROME_BROWSER_STORAGE_MONITOR_IMAGE_CAPTURE_DEVICE_H_ |
OLD | NEW |