| 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 #ifndef IOS_WEB_PUBLIC_TEST_WEB_VIEW_INTERACTION_TEST_UTIL_H_ |
| 6 #define IOS_WEB_PUBLIC_TEST_WEB_VIEW_INTERACTION_TEST_UTIL_H_ |
| 7 |
| 5 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 6 | 9 |
| 7 #include <string> | 10 #include <string> |
| 8 | 11 |
| 9 #include "base/ios/block_types.h" | 12 #include "base/ios/block_types.h" |
| 10 #include "base/values.h" | 13 #include "base/values.h" |
| 11 | 14 |
| 12 #import "ios/web/public/web_state/web_state.h" | 15 #import "ios/web/public/web_state/web_state.h" |
| 13 | 16 |
| 14 namespace web { | 17 namespace web { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 36 // been focused using a JavaScript focus() event. | 39 // been focused using a JavaScript focus() event. |
| 37 bool FocusWebViewElementWithId(web::WebState* web_state, | 40 bool FocusWebViewElementWithId(web::WebState* web_state, |
| 38 const std::string& element_id); | 41 const std::string& element_id); |
| 39 | 42 |
| 40 // Returns whether the form with |form_id| in the passed |web_state| has been | 43 // Returns whether the form with |form_id| in the passed |web_state| has been |
| 41 // submitted using a JavaScript submit() event. | 44 // submitted using a JavaScript submit() event. |
| 42 bool SubmitWebViewFormWithId(web::WebState* web_state, | 45 bool SubmitWebViewFormWithId(web::WebState* web_state, |
| 43 const std::string& form_id); | 46 const std::string& form_id); |
| 44 } // namespace test | 47 } // namespace test |
| 45 } // namespace web | 48 } // namespace web |
| 49 |
| 50 #endif // IOS_WEB_PUBLIC_TEST_WEB_VIEW_INTERACTION_TEST_UTIL_H_ |
| OLD | NEW |