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 #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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 447 } | 447 } |
| 448 } | 448 } |
| 449 | 449 |
| 450 bool WebStateImpl::HandleContextMenu(const web::ContextMenuParams& params) { | 450 bool WebStateImpl::HandleContextMenu(const web::ContextMenuParams& params) { |
| 451 if (delegate_) { | 451 if (delegate_) { |
| 452 return delegate_->HandleContextMenu(this, params); | 452 return delegate_->HandleContextMenu(this, params); |
| 453 } | 453 } |
| 454 return false; | 454 return false; |
| 455 } | 455 } |
| 456 | 456 |
| 457 void WebStateImpl::ShowRepostFormWarningDialog( | |
| 458 const base::Callback<void(bool)>& callback) { | |
| 459 if (delegate_) { | |
| 460 delegate_->ShowRepostFormWarningDialog(this, callback); | |
| 461 } | |
|
marq (ping after 24h)
2017/01/23 08:18:28
Default?
Eugene But (OOO till 7-30)
2017/01/23 19:48:33
Done.
| |
| 462 } | |
| 463 | |
| 457 void WebStateImpl::RunJavaScriptDialog( | 464 void WebStateImpl::RunJavaScriptDialog( |
| 458 const GURL& origin_url, | 465 const GURL& origin_url, |
| 459 JavaScriptDialogType javascript_dialog_type, | 466 JavaScriptDialogType javascript_dialog_type, |
| 460 NSString* message_text, | 467 NSString* message_text, |
| 461 NSString* default_prompt_text, | 468 NSString* default_prompt_text, |
| 462 const DialogClosedCallback& callback) { | 469 const DialogClosedCallback& callback) { |
| 463 JavaScriptDialogPresenter* presenter = | 470 JavaScriptDialogPresenter* presenter = |
| 464 delegate_ ? delegate_->GetJavaScriptDialogPresenter(this) : nullptr; | 471 delegate_ ? delegate_->GetJavaScriptDialogPresenter(this) : nullptr; |
| 465 if (!presenter) { | 472 if (!presenter) { |
| 466 callback.Run(false, nil); | 473 callback.Run(false, nil); |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 725 const LoadCommittedDetails& load_details) { | 732 const LoadCommittedDetails& load_details) { |
| 726 for (auto& observer : observers_) | 733 for (auto& observer : observers_) |
| 727 observer.NavigationItemCommitted(load_details); | 734 observer.NavigationItemCommitted(load_details); |
| 728 } | 735 } |
| 729 | 736 |
| 730 WebState* WebStateImpl::GetWebState() { | 737 WebState* WebStateImpl::GetWebState() { |
| 731 return this; | 738 return this; |
| 732 } | 739 } |
| 733 | 740 |
| 734 } // namespace web | 741 } // namespace web |
| OLD | NEW |