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

Side by Side Diff: ios/web/public/web_state/web_state_observer.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_H_ 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_
6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_ 6 #define IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // Called when the current page has stopped loading. 74 // Called when the current page has stopped loading.
75 virtual void DidStopLoading() {} 75 virtual void DidStopLoading() {}
76 76
77 // Called when the current page is loaded. 77 // Called when the current page is loaded.
78 virtual void PageLoaded(PageLoadCompletionStatus load_completion_status) {} 78 virtual void PageLoaded(PageLoadCompletionStatus load_completion_status) {}
79 79
80 // Called when the interstitial is dismissed by the user. 80 // Called when the interstitial is dismissed by the user.
81 virtual void InterstitialDismissed() {} 81 virtual void InterstitialDismissed() {}
82 82
83 // Called on URL hash change events.
84 // TODO(crbug.com/692331): Remove this method and use |DidFinishNavigation|.
85 virtual void UrlHashChanged() {}
86
87 // Called on history state change events.
88 // TODO(crbug.com/692331): Remove this method and use |DidFinishNavigation|.
89 virtual void HistoryStateChanged() {}
90
91 // Notifies the observer that the page has made some progress loading. 83 // Notifies the observer that the page has made some progress loading.
92 // |progress| is a value between 0.0 (nothing loaded) to 1.0 (page fully 84 // |progress| is a value between 0.0 (nothing loaded) to 1.0 (page fully
93 // loaded). 85 // loaded).
94 virtual void LoadProgressChanged(double progress) {} 86 virtual void LoadProgressChanged(double progress) {}
95 87
96 // Called on form submission. |user_initiated| is true if the user 88 // Called on form submission. |user_initiated| is true if the user
97 // interacted with the page. 89 // interacted with the page.
98 virtual void DocumentSubmitted(const std::string& form_name, 90 virtual void DocumentSubmitted(const std::string& form_name,
99 bool user_initiated) {} 91 bool user_initiated) {}
100 92
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 void ResetWebState(); 180 void ResetWebState();
189 181
190 WebState* web_state_; 182 WebState* web_state_;
191 183
192 DISALLOW_COPY_AND_ASSIGN(WebStateObserver); 184 DISALLOW_COPY_AND_ASSIGN(WebStateObserver);
193 }; 185 };
194 186
195 } // namespace web 187 } // namespace web
196 188
197 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_ 189 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_
OLDNEW
« no previous file with comments | « ios/web/public/test/fakes/crw_test_web_state_observer.mm ('k') | ios/web/public/web_state/web_state_observer_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698