Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: ios/web_view/public/cwv_navigation_action.h

Issue 2757603003: Add window open and close delegate methods to CWVUIDelegate. (Closed)
Patch Set: Respond to comments. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web_view/public/BUILD.gn ('k') | ios/web_view/public/cwv_ui_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..60e7a7a8ffb29063f1fa3cf70a49bb7414e6d00f
--- /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>
+
+// Encapsulates information about an action which caused a navigation.
+@interface CWVNavigationAction : NSObject
+
+// Destination request associated with the action.
+@property(nonatomic, copy, readonly, nonnull) NSURLRequest* request;
+// YES if the action was caused by a user action (e.g. link tap).
+@property(nonatomic, readonly, getter=isUserInitiated) BOOL userInitiated;
+
+@end
+
+#endif // IOS_WEB_VIEW_PUBLIC_CWV_NAVIGATION_ACTION_H_
« no previous file with comments | « ios/web_view/public/BUILD.gn ('k') | ios/web_view/public/cwv_ui_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698