Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_SCANNER_H_ | 5 #ifndef IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_SCANNER_H_ |
| 6 #define IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_SCANNER_H_ | 6 #define IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_SCANNER_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 50 - (void)stop; | 50 - (void)stop; |
| 51 | 51 |
| 52 // Returns a list of physical web devices (PhysicalWebDevice). | 52 // Returns a list of physical web devices (PhysicalWebDevice). |
| 53 - (NSArray*)devices; | 53 - (NSArray*)devices; |
| 54 | 54 |
| 55 // Returns the metadata for all resolved physical web URLs. The returned value | 55 // Returns the metadata for all resolved physical web URLs. The returned value |
| 56 // will never be nil; if no metadata has been received then an empty list is | 56 // will never be nil; if no metadata has been received then an empty list is |
| 57 // returned. | 57 // returned. |
| 58 - (std::unique_ptr<base::ListValue>)metadata; | 58 - (std::unique_ptr<base::ListValue>)metadata; |
| 59 | 59 |
| 60 // Returns the metadata for all resolved physical web URLs. The returned value | |
| 61 // will never be nil; if no metadata has been received then an empty list is | |
| 62 // returned. | |
| 63 - (std::unique_ptr<base::ListValue>)metadataList; | |
|
mattreynolds
2017/01/11 20:54:50
physical_web::MetadataList
cco3
2017/01/11 22:51:02
Done.
| |
| 64 | |
| 60 @end | 65 @end |
| 61 | 66 |
| 62 @protocol PhysicalWebScannerDelegate<NSObject> | 67 @protocol PhysicalWebScannerDelegate<NSObject> |
| 63 | 68 |
| 64 // This delegate method is called when the list of discovered devices is updated | 69 // This delegate method is called when the list of discovered devices is updated |
| 65 // by the scanner. | 70 // by the scanner. |
| 66 - (void)scannerUpdatedDevices:(PhysicalWebScanner*)scanner; | 71 - (void)scannerUpdatedDevices:(PhysicalWebScanner*)scanner; |
| 67 | 72 |
| 68 // This delegate method is called when the bluetooth status is updated. | 73 // This delegate method is called when the bluetooth status is updated. |
| 69 - (void)scannerBluetoothStatusUpdated:(PhysicalWebScanner*)scanner; | 74 - (void)scannerBluetoothStatusUpdated:(PhysicalWebScanner*)scanner; |
| 70 | 75 |
| 71 @end | 76 @end |
| 72 | 77 |
| 73 #endif // IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_SCANNER_H_ | 78 #endif // IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_SCANNER_H_ |
| OLD | NEW |