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

Side by Side Diff: ios/web/navigation/navigation_manager_delegate.h

Issue 2957163002: [Navigation Experiment] Add WKBasedNavigationManagerImpl. (Closed)
Patch Set: Patch for landing Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_ 5 #ifndef IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_
6 #define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_ 6 #define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #import "ios/web/public/navigation_manager.h" 10 #import "ios/web/public/navigation_manager.h"
11 11
12 @protocol CRWWebViewNavigationProxy;
13
12 namespace web { 14 namespace web {
13 15
14 struct LoadCommittedDetails; 16 struct LoadCommittedDetails;
15 class WebState; 17 class WebState;
16 18
17 // Delegate for NavigationManager to hand off parts of the navigation flow. 19 // Delegate for NavigationManager to hand off parts of the navigation flow.
18 class NavigationManagerDelegate { 20 class NavigationManagerDelegate {
19 public: 21 public:
20 virtual ~NavigationManagerDelegate() {} 22 virtual ~NavigationManagerDelegate() {}
21 23
(...skipping 13 matching lines...) Expand all
35 37
36 // Informs the delegate that a navigation item has been changed. 38 // Informs the delegate that a navigation item has been changed.
37 virtual void OnNavigationItemChanged() = 0; 39 virtual void OnNavigationItemChanged() = 0;
38 40
39 // Informs the delegate that a navigation item has been commited. 41 // Informs the delegate that a navigation item has been commited.
40 virtual void OnNavigationItemCommitted( 42 virtual void OnNavigationItemCommitted(
41 const LoadCommittedDetails& load_details) = 0; 43 const LoadCommittedDetails& load_details) = 0;
42 44
43 // Returns the WebState associated with this delegate. 45 // Returns the WebState associated with this delegate.
44 virtual WebState* GetWebState() = 0; 46 virtual WebState* GetWebState() = 0;
47
48 // Returns a CRWWebViewNavigationProxy protocol that can be used to access
49 // navigation related functions on the main WKWebView.
50 virtual id<CRWWebViewNavigationProxy> GetWebViewNavigationProxy() const = 0;
45 }; 51 };
46 52
47 } // namespace web 53 } // namespace web
48 54
49 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_ 55 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « ios/web/navigation/legacy_navigation_manager_impl.mm ('k') | ios/web/navigation/navigation_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698