| Index: ios/web_view/public/cwv_user_script.h
|
| diff --git a/ios/web_view/public/cwv_user_script.h b/ios/web_view/public/cwv_user_script.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cb02f48caa0973c7a94d19d87166cbc81334537a
|
| --- /dev/null
|
| +++ b/ios/web_view/public/cwv_user_script.h
|
| @@ -0,0 +1,24 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef IOS_WEB_VIEW_PUBLIC_CWV_USER_SCRIPT_H_
|
| +#define IOS_WEB_VIEW_PUBLIC_CWV_USER_SCRIPT_H_
|
| +
|
| +#import <Foundation/Foundation.h>
|
| +
|
| +// User Script to be injected into main frame of CWVWebView after
|
| +// window.document is created, but before other content is loaded (i.e., at the
|
| +// same timing as WKUserScriptInjectionTimeAtDocumentStart).
|
| +@interface CWVUserScript : NSObject
|
| +
|
| +// JavaScript source code.
|
| +@property(nonatomic, copy, readonly, nonnull) NSString* source;
|
| +
|
| +- (nullable instancetype)init NS_UNAVAILABLE;
|
| +
|
| +- (nullable instancetype)initWithSource:(nonnull NSString*)source;
|
| +
|
| +@end
|
| +
|
| +#endif // IOS_WEB_VIEW_PUBLIC_CWV_USER_SCRIPT_H_
|
|
|