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