OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import "ios/web/public/test/fakes/test_web_state_delegate.h" |
| 6 |
| 7 namespace web { |
| 8 |
| 9 JavaScriptDialogPresenter* TestWebStateDelegate::GetJavaScriptDialogPresenter( |
| 10 WebState*) { |
| 11 get_java_script_dialog_presenter_called_ = true; |
| 12 return &java_script_dialog_presenter_; |
| 13 } |
| 14 |
| 15 void TestWebStateDelegate::LoadProgressChanged(WebState*, double) { |
| 16 load_progress_changed_called_ = true; |
| 17 } |
| 18 |
| 19 bool TestWebStateDelegate::HandleContextMenu(WebState*, |
| 20 const ContextMenuParams&) { |
| 21 handle_context_menu_called_ = true; |
| 22 return NO; |
| 23 } |
| 24 |
| 25 TestJavaScriptDialogPresenter* |
| 26 TestWebStateDelegate::GetTestJavaScriptDialogPresenter() { |
| 27 return &java_script_dialog_presenter_; |
| 28 } |
| 29 |
| 30 } // namespace web |
OLD | NEW |