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

Side by Side Diff: ios/web/public/web_state/web_state_observer_bridge.h

Issue 2711363003: Use DidFinishNavigation callback in LanguageDetectionController. (Closed)
Patch Set: Removed unused method 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 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_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_ 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_
6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_ 6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 17 matching lines...) Expand all
28 - (void)webState:(web::WebState*)webState 28 - (void)webState:(web::WebState*)webState
29 didCommitNavigationWithDetails: 29 didCommitNavigationWithDetails:
30 (const web::LoadCommittedDetails&)load_details; 30 (const web::LoadCommittedDetails&)load_details;
31 31
32 // Invoked by WebStateObserverBridge::PageLoaded. 32 // Invoked by WebStateObserverBridge::PageLoaded.
33 - (void)webState:(web::WebState*)webState didLoadPageWithSuccess:(BOOL)success; 33 - (void)webState:(web::WebState*)webState didLoadPageWithSuccess:(BOOL)success;
34 34
35 // Invoked by WebStateObserverBridge::InterstitialDismissed. 35 // Invoked by WebStateObserverBridge::InterstitialDismissed.
36 - (void)webStateDidDismissInterstitial:(web::WebState*)webState; 36 - (void)webStateDidDismissInterstitial:(web::WebState*)webState;
37 37
38 // Invoked by WebStateObserverBridge::UrlHashChanged.
39 - (void)webStateDidChangeURLHash:(web::WebState*)webState;
40
41 // Invoked by WebStateObserverBridge::HistoryStateChanged.
42 - (void)webStateDidChangeHistoryState:(web::WebState*)webState;
43
44 // Invoked by WebStateObserverBridge::LoadProgressChanged. 38 // Invoked by WebStateObserverBridge::LoadProgressChanged.
45 - (void)webState:(web::WebState*)webState 39 - (void)webState:(web::WebState*)webState
46 didChangeLoadingProgress:(double)progress; 40 didChangeLoadingProgress:(double)progress;
47 41
48 // Invoked by WebStateObserverBridge::DocumentSubmitted. 42 // Invoked by WebStateObserverBridge::DocumentSubmitted.
49 - (void)webState:(web::WebState*)webState 43 - (void)webState:(web::WebState*)webState
50 didSubmitDocumentWithFormNamed:(const std::string&)formName 44 didSubmitDocumentWithFormNamed:(const std::string&)formName
51 userInitiated:(BOOL)userInitiated; 45 userInitiated:(BOOL)userInitiated;
52 46
53 // Invoked by WebStateObserverBridge::FormActivityRegistered. 47 // Invoked by WebStateObserverBridge::FormActivityRegistered.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 id<CRWWebStateObserver> observer); 87 id<CRWWebStateObserver> observer);
94 ~WebStateObserverBridge() override; 88 ~WebStateObserverBridge() override;
95 89
96 // web::WebStateObserver methods. 90 // web::WebStateObserver methods.
97 void ProvisionalNavigationStarted(const GURL& url) override; 91 void ProvisionalNavigationStarted(const GURL& url) override;
98 void NavigationItemCommitted( 92 void NavigationItemCommitted(
99 const LoadCommittedDetails& load_details) override; 93 const LoadCommittedDetails& load_details) override;
100 void PageLoaded( 94 void PageLoaded(
101 web::PageLoadCompletionStatus load_completion_status) override; 95 web::PageLoadCompletionStatus load_completion_status) override;
102 void InterstitialDismissed() override; 96 void InterstitialDismissed() override;
103 void UrlHashChanged() override;
104 void HistoryStateChanged() override;
105 void LoadProgressChanged(double progress) override; 97 void LoadProgressChanged(double progress) override;
106 void DocumentSubmitted(const std::string& form_name, 98 void DocumentSubmitted(const std::string& form_name,
107 bool user_initiated) override; 99 bool user_initiated) override;
108 void FormActivityRegistered(const std::string& form_name, 100 void FormActivityRegistered(const std::string& form_name,
109 const std::string& field_name, 101 const std::string& field_name,
110 const std::string& type, 102 const std::string& type,
111 const std::string& value, 103 const std::string& value,
112 bool input_missing) override; 104 bool input_missing) override;
113 void FaviconUrlUpdated(const std::vector<FaviconURL>& candidates) override; 105 void FaviconUrlUpdated(const std::vector<FaviconURL>& candidates) override;
114 void RenderProcessGone() override; 106 void RenderProcessGone() override;
115 void WebStateDestroyed() override; 107 void WebStateDestroyed() override;
116 void DidStartLoading() override; 108 void DidStartLoading() override;
117 void DidStopLoading() override; 109 void DidStopLoading() override;
118 110
119 private: 111 private:
120 base::WeakNSProtocol<id<CRWWebStateObserver>> observer_; 112 base::WeakNSProtocol<id<CRWWebStateObserver>> observer_;
121 DISALLOW_COPY_AND_ASSIGN(WebStateObserverBridge); 113 DISALLOW_COPY_AND_ASSIGN(WebStateObserverBridge);
122 }; 114 };
123 115
124 } // namespace web 116 } // namespace web
125 117
126 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_ 118 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_
OLDNEW
« no previous file with comments | « ios/web/public/web_state/web_state_observer.h ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698