Chromium Code Reviews| 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 #include "ios/web/web_state/web_state_impl.h" | 5 #include "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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 281 const web::Credential& credential) { | 281 const web::Credential& credential) { |
| 282 for (auto& observer : observers_) | 282 for (auto& observer : observers_) |
| 283 observer.SignInFailed(request_id, source_url, credential); | 283 observer.SignInFailed(request_id, source_url, credential); |
| 284 } | 284 } |
| 285 | 285 |
| 286 void WebStateImpl::OnSignInFailed(int request_id, const GURL& source_url) { | 286 void WebStateImpl::OnSignInFailed(int request_id, const GURL& source_url) { |
| 287 for (auto& observer : observers_) | 287 for (auto& observer : observers_) |
| 288 observer.SignInFailed(request_id, source_url); | 288 observer.SignInFailed(request_id, source_url); |
| 289 } | 289 } |
| 290 | 290 |
| 291 void WebStateImpl::OnPasswordInputShownOnHttp() { | |
|
Eugene But (OOO till 7-30)
2016/12/02 01:53:12
nit: Could you please try keeping the same order f
lgarron
2016/12/06 01:38:36
Whoops, fixed.
| |
| 292 [web_controller_ didShowPasswordInputOnHTTP]; | |
| 293 } | |
| 294 | |
| 291 void WebStateImpl::OnDocumentSubmitted(const std::string& form_name, | 295 void WebStateImpl::OnDocumentSubmitted(const std::string& form_name, |
| 292 bool user_initiated) { | 296 bool user_initiated) { |
| 293 for (auto& observer : observers_) | 297 for (auto& observer : observers_) |
| 294 observer.DocumentSubmitted(form_name, user_initiated); | 298 observer.DocumentSubmitted(form_name, user_initiated); |
| 295 } | 299 } |
| 296 | 300 |
| 297 NavigationManagerImpl& WebStateImpl::GetNavigationManagerImpl() { | 301 NavigationManagerImpl& WebStateImpl::GetNavigationManagerImpl() { |
| 298 return navigation_manager_; | 302 return navigation_manager_; |
| 299 } | 303 } |
| 300 | 304 |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 705 const LoadCommittedDetails& load_details) { | 709 const LoadCommittedDetails& load_details) { |
| 706 for (auto& observer : observers_) | 710 for (auto& observer : observers_) |
| 707 observer.NavigationItemCommitted(load_details); | 711 observer.NavigationItemCommitted(load_details); |
| 708 } | 712 } |
| 709 | 713 |
| 710 WebState* WebStateImpl::GetWebState() { | 714 WebState* WebStateImpl::GetWebState() { |
| 711 return this; | 715 return this; |
| 712 } | 716 } |
| 713 | 717 |
| 714 } // namespace web | 718 } // namespace web |
| OLD | NEW |