Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Unified Diff: ios/web/public/test/web_view_interaction_test_util.h

Issue 2268863004: Add a return value to TapWebViewElementWithId (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unecessary headers Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/web/public/test/web_view_interaction_test_util.h
diff --git a/ios/web/public/test/web_view_interaction_test_util.h b/ios/web/public/test/web_view_interaction_test_util.h
index 3ec311b8b456364d17129e4331d037cf87061b54..961dc2179d9ff06cf869ab04c090f953e6a26851 100644
--- a/ios/web/public/test/web_view_interaction_test_util.h
+++ b/ios/web/public/test/web_view_interaction_test_util.h
@@ -11,14 +11,14 @@ namespace test {
enum ElementAction { CLICK, FOCUS };
Eugene But (OOO till 7-30) 2016/08/26 13:19:56 According to Chromium Style Guide these should be
jif-google 2016/08/26 13:30:34 Acknowledged.
gambard 2016/08/26 14:35:52 Done.
-// Attempts to tap the element with |element_id| in the passed in |web_state|
-// using a JavaScript click() event.
-void TapWebViewElementWithId(web::WebState* web_state,
+// Returns whether the element with |element_id| in the passed |web_state| has
+// been tapped using a JavaScript click() event.
+bool TapWebViewElementWithId(web::WebState* web_state,
const std::string& element_id);
-// Attempts to run the Javascript action specified by |action| on |element_id|
-// in the passed |web_state|.
-void RunActionOnWebViewElementWithId(web::WebState* web_state,
+// Returns whether the Javascript action specified by |action| run on
jif-google 2016/08/26 12:20:48 s/run/ran/
gambard 2016/08/26 14:35:52 Done.
+// |element_id| in the passed |web_state|.
+bool RunActionOnWebViewElementWithId(web::WebState* web_state,
Eugene But (OOO till 7-30) 2016/08/26 13:19:56 Do you see a potential of adding new actions? If y
jif-google 2016/08/26 13:30:34 And how about removing TapWebViewElementWithId?
baxley 2016/08/26 13:40:05 We're in progress of adding an API that will tap a
gambard 2016/08/26 14:35:52 Done.
Eugene But (OOO till 7-30) 2016/08/26 15:13:28 +1 for using RunActionOnWebViewElementWithId. We
Eugene But (OOO till 7-30) 2016/08/26 15:13:28 TapWebViewElementWithId seems more clear that RunA
baxley 2016/08/26 15:43:26 As discussed offline... chrome-urls don't have IDs
const std::string& element_id,
ElementAction action);

Powered by Google App Engine
This is Rietveld 408576698