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

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

Powered by Google App Engine
This is Rietveld 408576698