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

Side by Side Diff: ios/web/web_state/web_state_impl.mm

Issue 2755013002: Removed webControllerDidSuppressDialog: callback. (Closed)
Patch Set: Self review Created 3 years, 9 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
« no previous file with comments | « ios/web/web_state/web_state_impl.h ('k') | ios/web/web_state/web_state_impl_unittest.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #import "ios/web/web_state/web_state_impl.h" 5 #import "ios/web/web_state/web_state_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 void WebStateImpl::OnTitleChanged() { 204 void WebStateImpl::OnTitleChanged() {
205 for (auto& observer : observers_) 205 for (auto& observer : observers_)
206 observer.TitleWasSet(); 206 observer.TitleWasSet();
207 } 207 }
208 208
209 void WebStateImpl::OnVisibleSecurityStateChange() { 209 void WebStateImpl::OnVisibleSecurityStateChange() {
210 for (auto& observer : observers_) 210 for (auto& observer : observers_)
211 observer.DidChangeVisibleSecurityState(); 211 observer.DidChangeVisibleSecurityState();
212 } 212 }
213 213
214 void WebStateImpl::OnDialogSuppressed() {
215 DCHECK(ShouldSuppressDialogs());
216 for (auto& observer : observers_)
217 observer.DidSuppressDialog();
218 }
219
214 void WebStateImpl::OnRenderProcessGone() { 220 void WebStateImpl::OnRenderProcessGone() {
215 for (auto& observer : observers_) 221 for (auto& observer : observers_)
216 observer.RenderProcessGone(); 222 observer.RenderProcessGone();
217 } 223 }
218 224
219 bool WebStateImpl::OnScriptCommandReceived(const std::string& command, 225 bool WebStateImpl::OnScriptCommandReceived(const std::string& command,
220 const base::DictionaryValue& value, 226 const base::DictionaryValue& value,
221 const GURL& url, 227 const GURL& url,
222 bool user_is_interacting) { 228 bool user_is_interacting) {
223 size_t dot_position = command.find_first_of('.'); 229 size_t dot_position = command.find_first_of('.');
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 const LoadCommittedDetails& load_details) { 757 const LoadCommittedDetails& load_details) {
752 for (auto& observer : observers_) 758 for (auto& observer : observers_)
753 observer.NavigationItemCommitted(load_details); 759 observer.NavigationItemCommitted(load_details);
754 } 760 }
755 761
756 WebState* WebStateImpl::GetWebState() { 762 WebState* WebStateImpl::GetWebState() {
757 return this; 763 return this;
758 } 764 }
759 765
760 } // namespace web 766 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/web_state/web_state_impl.h ('k') | ios/web/web_state/web_state_impl_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698