| OLD | NEW |
| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 observer.DidFinishNavigation(context.get()); | 210 observer.DidFinishNavigation(context.get()); |
| 211 } | 211 } |
| 212 | 212 |
| 213 void WebStateImpl::OnErrorPageNavigation(const GURL& url) { | 213 void WebStateImpl::OnErrorPageNavigation(const GURL& url) { |
| 214 std::unique_ptr<NavigationContext> context = | 214 std::unique_ptr<NavigationContext> context = |
| 215 NavigationContextImpl::CreateErrorPageNavigationContext(this, url); | 215 NavigationContextImpl::CreateErrorPageNavigationContext(this, url); |
| 216 for (auto& observer : observers_) | 216 for (auto& observer : observers_) |
| 217 observer.DidFinishNavigation(context.get()); | 217 observer.DidFinishNavigation(context.get()); |
| 218 } | 218 } |
| 219 | 219 |
| 220 void WebStateImpl::OnTitleChanged() { |
| 221 for (auto& observer : observers_) |
| 222 observer.TitleWasSet(); |
| 223 } |
| 224 |
| 220 void WebStateImpl::OnRenderProcessGone() { | 225 void WebStateImpl::OnRenderProcessGone() { |
| 221 for (auto& observer : observers_) | 226 for (auto& observer : observers_) |
| 222 observer.RenderProcessGone(); | 227 observer.RenderProcessGone(); |
| 223 } | 228 } |
| 224 | 229 |
| 225 bool WebStateImpl::OnScriptCommandReceived(const std::string& command, | 230 bool WebStateImpl::OnScriptCommandReceived(const std::string& command, |
| 226 const base::DictionaryValue& value, | 231 const base::DictionaryValue& value, |
| 227 const GURL& url, | 232 const GURL& url, |
| 228 bool user_is_interacting) { | 233 bool user_is_interacting) { |
| 229 size_t dot_position = command.find_first_of('.'); | 234 size_t dot_position = command.find_first_of('.'); |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 const LoadCommittedDetails& load_details) { | 746 const LoadCommittedDetails& load_details) { |
| 742 for (auto& observer : observers_) | 747 for (auto& observer : observers_) |
| 743 observer.NavigationItemCommitted(load_details); | 748 observer.NavigationItemCommitted(load_details); |
| 744 } | 749 } |
| 745 | 750 |
| 746 WebState* WebStateImpl::GetWebState() { | 751 WebState* WebStateImpl::GetWebState() { |
| 747 return this; | 752 return this; |
| 748 } | 753 } |
| 749 | 754 |
| 750 } // namespace web | 755 } // namespace web |
| OLD | NEW |