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 15 matching lines...) Expand all Loading... |
26 } | 26 } |
27 | 27 |
28 - (NSString*)appStoreURL { | 28 - (NSString*)appStoreURL { |
29 return nil; | 29 return nil; |
30 } | 30 } |
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)fetchSmallIconWithImageFetcher: |
37 completionBlock:(void (^)(UIImage*))block { | 37 (image_fetcher::IOSImageDataFetcherWrapper*)imageFetcher |
| 38 completionBlock:(void (^)(UIImage*))block { |
38 block(nil); | 39 block(nil); |
39 } | 40 } |
40 | 41 |
41 - (BOOL)canOpenURL:(const GURL&)url { | 42 - (BOOL)canOpenURL:(const GURL&)url { |
42 if (!url.is_valid()) | 43 if (!url.is_valid()) |
43 return YES; | 44 return YES; |
44 GURL appUrl(base::SysNSStringToUTF8(_appName) + ":"); | 45 GURL appUrl(base::SysNSStringToUTF8(_appName) + ":"); |
45 if (url.spec() == appUrl.spec()) { | 46 if (url.spec() == appUrl.spec()) { |
46 return YES; | 47 return YES; |
47 } else { | 48 } else { |
(...skipping 19 matching lines...) Expand all Loading... |
67 return nil; | 68 return nil; |
68 } | 69 } |
69 | 70 |
70 - (void)willBeShownInInfobarOfType:(NativeAppControllerType)type { | 71 - (void)willBeShownInInfobarOfType:(NativeAppControllerType)type { |
71 } | 72 } |
72 | 73 |
73 - (void)updateWithUserAction:(NativeAppActionType)userAction { | 74 - (void)updateWithUserAction:(NativeAppActionType)userAction { |
74 } | 75 } |
75 | 76 |
76 @end | 77 @end |
OLD | NEW |