OLD | NEW |
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 21 matching lines...) Expand all Loading... |
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::LoadProgressChanged. | 38 // Invoked by WebStateObserverBridge::LoadProgressChanged. |
39 - (void)webState:(web::WebState*)webState | 39 - (void)webState:(web::WebState*)webState |
40 didChangeLoadingProgress:(double)progress; | 40 didChangeLoadingProgress:(double)progress; |
41 | 41 |
| 42 // Invoked by WebStateObserverBridge::TitleWasSet. |
| 43 - (void)webStateDidChangeTitle:(web::WebState*)webState; |
| 44 |
42 // Invoked by WebStateObserverBridge::DocumentSubmitted. | 45 // Invoked by WebStateObserverBridge::DocumentSubmitted. |
43 - (void)webState:(web::WebState*)webState | 46 - (void)webState:(web::WebState*)webState |
44 didSubmitDocumentWithFormNamed:(const std::string&)formName | 47 didSubmitDocumentWithFormNamed:(const std::string&)formName |
45 userInitiated:(BOOL)userInitiated; | 48 userInitiated:(BOOL)userInitiated; |
46 | 49 |
47 // Invoked by WebStateObserverBridge::FormActivityRegistered. | 50 // Invoked by WebStateObserverBridge::FormActivityRegistered. |
48 // TODO(ios): Method should take data transfer object rather than parameters. | 51 // TODO(ios): Method should take data transfer object rather than parameters. |
49 - (void)webState:(web::WebState*)webState | 52 - (void)webState:(web::WebState*)webState |
50 didRegisterFormActivityWithFormNamed:(const std::string&)formName | 53 didRegisterFormActivityWithFormNamed:(const std::string&)formName |
51 fieldName:(const std::string&)fieldName | 54 fieldName:(const std::string&)fieldName |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 ~WebStateObserverBridge() override; | 91 ~WebStateObserverBridge() override; |
89 | 92 |
90 // web::WebStateObserver methods. | 93 // web::WebStateObserver methods. |
91 void ProvisionalNavigationStarted(const GURL& url) override; | 94 void ProvisionalNavigationStarted(const GURL& url) override; |
92 void NavigationItemCommitted( | 95 void NavigationItemCommitted( |
93 const LoadCommittedDetails& load_details) override; | 96 const LoadCommittedDetails& load_details) override; |
94 void PageLoaded( | 97 void PageLoaded( |
95 web::PageLoadCompletionStatus load_completion_status) override; | 98 web::PageLoadCompletionStatus load_completion_status) override; |
96 void InterstitialDismissed() override; | 99 void InterstitialDismissed() override; |
97 void LoadProgressChanged(double progress) override; | 100 void LoadProgressChanged(double progress) override; |
| 101 void TitleWasSet() override; |
98 void DocumentSubmitted(const std::string& form_name, | 102 void DocumentSubmitted(const std::string& form_name, |
99 bool user_initiated) override; | 103 bool user_initiated) override; |
100 void FormActivityRegistered(const std::string& form_name, | 104 void FormActivityRegistered(const std::string& form_name, |
101 const std::string& field_name, | 105 const std::string& field_name, |
102 const std::string& type, | 106 const std::string& type, |
103 const std::string& value, | 107 const std::string& value, |
104 bool input_missing) override; | 108 bool input_missing) override; |
105 void FaviconUrlUpdated(const std::vector<FaviconURL>& candidates) override; | 109 void FaviconUrlUpdated(const std::vector<FaviconURL>& candidates) override; |
106 void RenderProcessGone() override; | 110 void RenderProcessGone() override; |
107 void WebStateDestroyed() override; | 111 void WebStateDestroyed() override; |
108 void DidStartLoading() override; | 112 void DidStartLoading() override; |
109 void DidStopLoading() override; | 113 void DidStopLoading() override; |
110 | 114 |
111 private: | 115 private: |
112 base::WeakNSProtocol<id<CRWWebStateObserver>> observer_; | 116 base::WeakNSProtocol<id<CRWWebStateObserver>> observer_; |
113 DISALLOW_COPY_AND_ASSIGN(WebStateObserverBridge); | 117 DISALLOW_COPY_AND_ASSIGN(WebStateObserverBridge); |
114 }; | 118 }; |
115 | 119 |
116 } // namespace web | 120 } // namespace web |
117 | 121 |
118 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_ | 122 #endif // IOS_WEB_PUBLIC_WEB_STATE_WEB_STATE_OBSERVER_BRIDGE_H_ |
OLD | NEW |