| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // Called when the current page has started loading. | 51 // Called when the current page has started loading. |
| 52 virtual void DidStartLoading() {} | 52 virtual void DidStartLoading() {} |
| 53 | 53 |
| 54 // Called when the current page has stopped loading. | 54 // Called when the current page has stopped loading. |
| 55 virtual void DidStopLoading() {} | 55 virtual void DidStopLoading() {} |
| 56 | 56 |
| 57 // Called when the current page is loaded. | 57 // Called when the current page is loaded. |
| 58 virtual void PageLoaded(PageLoadCompletionStatus load_completion_status) {} | 58 virtual void PageLoaded(PageLoadCompletionStatus load_completion_status) {} |
| 59 | 59 |
| 60 // Called when the interstitial is dismissed by the user. | 60 // Called when the interstitial is dismissed by the user. |
| 61 virtual void InsterstitialDismissed() {} | 61 virtual void InterstitialDismissed() {} |
| 62 | 62 |
| 63 // Called on URL hash change events. | 63 // Called on URL hash change events. |
| 64 virtual void UrlHashChanged() {} | 64 virtual void UrlHashChanged() {} |
| 65 | 65 |
| 66 // Called on history state change events. | 66 // Called on history state change events. |
| 67 virtual void HistoryStateChanged() {} | 67 virtual void HistoryStateChanged() {} |
| 68 | 68 |
| 69 // Notifies the observer that the page has made some progress loading. | 69 // Notifies the observer that the page has made some progress loading. |
| 70 // |progress| is a value between 0.0 (nothing loaded) to 1.0 (page fully | 70 // |progress| is a value between 0.0 (nothing loaded) to 1.0 (page fully |
| 71 // loaded). | 71 // loaded). |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 void ResetWebState(); | 166 void ResetWebState(); |
| 167 | 167 |
| 168 WebState* web_state_; | 168 WebState* web_state_; |
| 169 | 169 |
| 170 DISALLOW_COPY_AND_ASSIGN(WebStateObserver); | 170 DISALLOW_COPY_AND_ASSIGN(WebStateObserver); |
| 171 }; | 171 }; |
| 172 | 172 |
| 173 } // namespace web | 173 } // namespace web |
| 174 | 174 |
| 175 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_ | 175 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_H_ |
| OLD | NEW |