OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_
metadata.h" | 5 #import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_
metadata.h" |
6 | 6 |
7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 - (NSURL*)appURLforURL:(NSURL*)url { | 32 - (NSURL*)appURLforURL:(NSURL*)url { |
33 return nil; | 33 return nil; |
34 } | 34 } |
35 | 35 |
36 - (void)fetchSmallIconWithContext:(net::URLRequestContextGetter*)contextGetter | 36 - (void)fetchSmallIconWithContext:(net::URLRequestContextGetter*)contextGetter |
37 completionBlock:(void (^)(UIImage*))block { | 37 completionBlock:(void (^)(UIImage*))block { |
38 block(nil); | 38 block(nil); |
39 } | 39 } |
40 | 40 |
| 41 - (void)fetchSmallIconWithImageFetcher: |
| 42 (image_fetcher::IOSImageDataFetcherWrapper*)imageFetcher |
| 43 completionBlock:(void (^)(UIImage*))block { |
| 44 block(nil); |
| 45 } |
| 46 |
41 - (BOOL)canOpenURL:(const GURL&)url { | 47 - (BOOL)canOpenURL:(const GURL&)url { |
42 if (!url.is_valid()) | 48 if (!url.is_valid()) |
43 return YES; | 49 return YES; |
44 GURL appUrl(base::SysNSStringToUTF8(_appName) + ":"); | 50 GURL appUrl(base::SysNSStringToUTF8(_appName) + ":"); |
45 if (url.spec() == appUrl.spec()) { | 51 if (url.spec() == appUrl.spec()) { |
46 return YES; | 52 return YES; |
47 } else { | 53 } else { |
48 return NO; | 54 return NO; |
49 } | 55 } |
50 } | 56 } |
(...skipping 16 matching lines...) Expand all Loading... |
67 return nil; | 73 return nil; |
68 } | 74 } |
69 | 75 |
70 - (void)willBeShownInInfobarOfType:(NativeAppControllerType)type { | 76 - (void)willBeShownInInfobarOfType:(NativeAppControllerType)type { |
71 } | 77 } |
72 | 78 |
73 - (void)updateWithUserAction:(NativeAppActionType)userAction { | 79 - (void)updateWithUserAction:(NativeAppActionType)userAction { |
74 } | 80 } |
75 | 81 |
76 @end | 82 @end |
OLD | NEW |