Chromium Code Reviews| Index: ios/web_view/public/cwv_navigation_action.h |
| diff --git a/ios/web_view/public/cwv_navigation_action.h b/ios/web_view/public/cwv_navigation_action.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..551a27dd337425c4c08d2791c8ea14f17e013ea9 |
| --- /dev/null |
| +++ b/ios/web_view/public/cwv_navigation_action.h |
| @@ -0,0 +1,20 @@ |
| +// 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_NAVIGATION_ACTION_H_ |
| +#define IOS_WEB_VIEW_PUBLIC_CWV_NAVIGATION_ACTION_H_ |
| + |
| +#import <Foundation/Foundation.h> |
| + |
|
Eugene But (OOO till 7-30)
2017/03/16 17:09:02
Do you want to use nullability annotation?
michaeldo
2017/03/16 18:24:28
yes, thank you for reminder.
|
| +// Encapsulates information about an action which caused a navigation. |
| +@interface CWVNavigationAction : NSObject |
| + |
| +// Destination request associated with the action. |
| +@property(copy, readonly) NSURLRequest* request; |
|
Eugene But (OOO till 7-30)
2017/03/16 17:09:03
nonatomic
michaeldo
2017/03/16 18:24:28
Done.
|
| +// YES if the action was caused by a user action (e.g. link tap). |
| +@property(readonly) BOOL userInitiated; |
|
Eugene But (OOO till 7-30)
2017/03/16 17:09:02
@property(nonatomic, readonly, getter=isUserInitia
michaeldo
2017/03/16 18:24:28
Done.
|
| + |
| +@end |
| + |
| +#endif // IOS_WEB_VIEW_PUBLIC_CWV_NAVIGATION_ACTION_H_ |