Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 #ifndef IOS_WEB_VIEW_PUBLIC_CWV_USER_SCRIPT_H_ | |
| 5 #define IOS_WEB_VIEW_PUBLIC_CWV_USER_SCRIPT_H_ | |
| 6 | |
| 7 #import <Foundation/Foundation.h> | |
| 8 | |
| 9 // User Script to be injected into main frame of CWVWebView after | |
| 10 // window.document is created, but before other content is | |
| 11 // loaded (i.e., at the same timing as | |
|
michaeldo
2017/03/21 16:12:35
please re-wrap this comment
Hiroshi Ichikawa
2017/03/22 04:52:53
Done.
| |
| 12 // WKUserScriptInjectionTimeAtDocumentStart). | |
| 13 __attribute__((visibility("default"))) | |
|
michaeldo
2017/03/21 16:12:35
I think we shuold remove the visibility attribute
Hiroshi Ichikawa
2017/03/22 04:52:53
Sure. Reverted. I added this here because my test
michaeldo
2017/03/22 23:03:33
Understandable, thank you for creating the separat
| |
| 14 @interface CWVUserScript : NSObject | |
| 15 | |
| 16 // JavaScript source code. | |
| 17 @property(copy, readonly) NSString* source; | |
|
michaeldo
2017/03/21 16:12:35
Please add nullability annotations to this newly c
Eugene But (OOO till 7-30)
2017/03/21 16:47:55
nonatomic?
Hiroshi Ichikawa
2017/03/22 04:52:53
Done.
Hiroshi Ichikawa
2017/03/22 04:52:53
Done.
| |
| 18 | |
| 19 - (instancetype)init NS_UNAVAILABLE; | |
| 20 | |
| 21 - (instancetype)initWithSource:(NSString*)source; | |
|
Eugene But (OOO till 7-30)
2017/03/21 16:47:55
Do you want to add nonnull to |source|?
Hiroshi Ichikawa
2017/03/22 04:52:53
Done.
| |
| 22 | |
| 23 @end | |
| 24 | |
| 25 #endif // IOS_WEB_VIEW_PUBLIC_CWV_USER_SCRIPT_H_ | |
| OLD | NEW |