| OLD | NEW |
| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 virtual void InterstitialDismissed() {} | 81 virtual void InterstitialDismissed() {} |
| 82 | 82 |
| 83 // Notifies the observer that the page has made some progress loading. | 83 // Notifies the observer that the page has made some progress loading. |
| 84 // |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 |
| 85 // loaded). | 85 // loaded). |
| 86 virtual void LoadProgressChanged(double progress) {} | 86 virtual void LoadProgressChanged(double progress) {} |
| 87 | 87 |
| 88 // Called when the title of the WebState is set. | 88 // Called when the title of the WebState is set. |
| 89 virtual void TitleWasSet() {} | 89 virtual void TitleWasSet() {} |
| 90 | 90 |
| 91 // Called when the visible security state of the page changes. |
| 92 virtual void DidChangeVisibleSecurityState() {} |
| 93 |
| 91 // Called on form submission. |user_initiated| is true if the user | 94 // Called on form submission. |user_initiated| is true if the user |
| 92 // interacted with the page. | 95 // interacted with the page. |
| 93 virtual void DocumentSubmitted(const std::string& form_name, | 96 virtual void DocumentSubmitted(const std::string& form_name, |
| 94 bool user_initiated) {} | 97 bool user_initiated) {} |
| 95 | 98 |
| 96 // Called when the user is typing on a form field, with |error| indicating if | 99 // Called when the user is typing on a form field, with |error| indicating if |
| 97 // there is any error when parsing the form field information. | 100 // there is any error when parsing the form field information. |
| 98 virtual void FormActivityRegistered(const std::string& form_name, | 101 virtual void FormActivityRegistered(const std::string& form_name, |
| 99 const std::string& field_name, | 102 const std::string& field_name, |
| 100 const std::string& type, | 103 const std::string& type, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 void ResetWebState(); | 186 void ResetWebState(); |
| 184 | 187 |
| 185 WebState* web_state_; | 188 WebState* web_state_; |
| 186 | 189 |
| 187 DISALLOW_COPY_AND_ASSIGN(WebStateObserver); | 190 DISALLOW_COPY_AND_ASSIGN(WebStateObserver); |
| 188 }; | 191 }; |
| 189 | 192 |
| 190 } // namespace web | 193 } // namespace web |
| 191 | 194 |
| 192 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_ | 195 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_ |
| OLD | NEW |