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

Side by Side Diff: content/public/test/browser_test_utils.h

Issue 1804023002: Fix page zoom to be frame-centric for out-of-process frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove 'anonymous'. Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 5 #ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 6 #define CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // invoke domAutomationController.send(); otherwise, your test will hang or be 196 // invoke domAutomationController.send(); otherwise, your test will hang or be
197 // flaky. If you want to extract a result, use one of the below functions. 197 // flaky. If you want to extract a result, use one of the below functions.
198 // Returns true on success. 198 // Returns true on success.
199 bool ExecuteScript(const ToRenderFrameHost& adapter, 199 bool ExecuteScript(const ToRenderFrameHost& adapter,
200 const std::string& script) WARN_UNUSED_RESULT; 200 const std::string& script) WARN_UNUSED_RESULT;
201 201
202 // The following methods executes the passed |script| in the specified frame and 202 // The following methods executes the passed |script| in the specified frame and
203 // sets |result| to the value passed to "window.domAutomationController.send" by 203 // sets |result| to the value passed to "window.domAutomationController.send" by
204 // the executed script. They return true on success, false if the script 204 // the executed script. They return true on success, false if the script
205 // execution failed or did not evaluate to the expected type. 205 // execution failed or did not evaluate to the expected type.
206 bool ExecuteScriptAndExtractDouble(const ToRenderFrameHost& adapter,
207 const std::string& script,
208 double* result) WARN_UNUSED_RESULT;
206 bool ExecuteScriptAndExtractInt(const ToRenderFrameHost& adapter, 209 bool ExecuteScriptAndExtractInt(const ToRenderFrameHost& adapter,
207 const std::string& script, 210 const std::string& script,
208 int* result) WARN_UNUSED_RESULT; 211 int* result) WARN_UNUSED_RESULT;
209 bool ExecuteScriptAndExtractBool(const ToRenderFrameHost& adapter, 212 bool ExecuteScriptAndExtractBool(const ToRenderFrameHost& adapter,
210 const std::string& script, 213 const std::string& script,
211 bool* result) WARN_UNUSED_RESULT; 214 bool* result) WARN_UNUSED_RESULT;
212 bool ExecuteScriptAndExtractString(const ToRenderFrameHost& adapter, 215 bool ExecuteScriptAndExtractString(const ToRenderFrameHost& adapter,
213 const std::string& script, 216 const std::string& script,
214 std::string* result) WARN_UNUSED_RESULT; 217 std::string* result) WARN_UNUSED_RESULT;
215 218
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 blink::WebInputEvent::Type wait_for_type_; 506 blink::WebInputEvent::Type wait_for_type_;
504 uint32_t ack_result_; 507 uint32_t ack_result_;
505 base::Closure quit_; 508 base::Closure quit_;
506 509
507 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher); 510 DISALLOW_COPY_AND_ASSIGN(InputMsgWatcher);
508 }; 511 };
509 512
510 } // namespace content 513 } // namespace content
511 514
512 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_ 515 #endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698