| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/public/test/web_view_interaction_test_util.h" | 5 #import "ios/web/public/test/web_view_interaction_test_util.h" |
| 6 | 6 |
| 7 #import "base/mac/bind_objc_block.h" | 7 #import "base/mac/bind_objc_block.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #import "base/test/ios/wait_util.h" | 10 #import "base/test/ios/wait_util.h" |
| 11 #import "ios/testing/wait_util.h" | 11 #import "ios/testing/wait_util.h" |
| 12 #import "ios/web/public/web_state/crw_web_view_scroll_view_proxy.h" | 12 #import "ios/web/public/web_state/ui/crw_web_view_scroll_view_proxy.h" |
| 13 #import "ios/web/web_state/crw_web_view_proxy_impl.h" | |
| 14 #import "ios/web/web_state/ui/crw_web_controller.h" | 13 #import "ios/web/web_state/ui/crw_web_controller.h" |
| 14 #import "ios/web/web_state/ui/crw_web_view_proxy_impl.h" |
| 15 #import "ios/web/web_state/web_state_impl.h" | 15 #import "ios/web/web_state/web_state_impl.h" |
| 16 | 16 |
| 17 using web::NavigationManager; | 17 using web::NavigationManager; |
| 18 | 18 |
| 19 namespace web { | 19 namespace web { |
| 20 namespace test { | 20 namespace test { |
| 21 | 21 |
| 22 enum ElementAction { | 22 enum ElementAction { |
| 23 ELEMENT_ACTION_CLICK, | 23 ELEMENT_ACTION_CLICK, |
| 24 ELEMENT_ACTION_FOCUS, | 24 ELEMENT_ACTION_FOCUS, |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 } | 167 } |
| 168 | 168 |
| 169 bool SubmitWebViewFormWithId(web::WebState* web_state, | 169 bool SubmitWebViewFormWithId(web::WebState* web_state, |
| 170 const std::string& form_id) { | 170 const std::string& form_id) { |
| 171 return RunActionOnWebViewElementWithId(web_state, form_id, | 171 return RunActionOnWebViewElementWithId(web_state, form_id, |
| 172 ELEMENT_ACTION_SUBMIT); | 172 ELEMENT_ACTION_SUBMIT); |
| 173 } | 173 } |
| 174 | 174 |
| 175 } // namespace test | 175 } // namespace test |
| 176 } // namespace web | 176 } // namespace web |
| OLD | NEW |