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

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

Issue 2710913006: Removed -[CRWWebDelegate webController:titleDidChange:]. (Closed)
Patch Set: iOS9 fix Created 3 years, 10 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 // Called on history state change events. 87 // Called on history state change events.
88 // TODO(crbug.com/692331): Remove this method and use |DidFinishNavigation|. 88 // TODO(crbug.com/692331): Remove this method and use |DidFinishNavigation|.
89 virtual void HistoryStateChanged() {} 89 virtual void HistoryStateChanged() {}
90 90
91 // Notifies the observer that the page has made some progress loading. 91 // 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 92 // |progress| is a value between 0.0 (nothing loaded) to 1.0 (page fully
93 // loaded). 93 // loaded).
94 virtual void LoadProgressChanged(double progress) {} 94 virtual void LoadProgressChanged(double progress) {}
95 95
96 // Called when the title of the WebState is set.
97 virtual void TitleWasSet() {}
98
96 // Called on form submission. |user_initiated| is true if the user 99 // Called on form submission. |user_initiated| is true if the user
97 // interacted with the page. 100 // interacted with the page.
98 virtual void DocumentSubmitted(const std::string& form_name, 101 virtual void DocumentSubmitted(const std::string& form_name,
99 bool user_initiated) {} 102 bool user_initiated) {}
100 103
101 // Called when the user is typing on a form field, with |error| indicating if 104 // Called when the user is typing on a form field, with |error| indicating if
102 // there is any error when parsing the form field information. 105 // there is any error when parsing the form field information.
103 virtual void FormActivityRegistered(const std::string& form_name, 106 virtual void FormActivityRegistered(const std::string& form_name,
104 const std::string& field_name, 107 const std::string& field_name,
105 const std::string& type, 108 const std::string& type,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 void ResetWebState(); 191 void ResetWebState();
189 192
190 WebState* web_state_; 193 WebState* web_state_;
191 194
192 DISALLOW_COPY_AND_ASSIGN(WebStateObserver); 195 DISALLOW_COPY_AND_ASSIGN(WebStateObserver);
193 }; 196 };
194 197
195 } // namespace web 198 } // namespace web
196 199
197 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_ 200 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698