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

Side by Side Diff: webkit/tools/test_shell/layout_test_controller.h

Issue 5333001: TestShell changes to support multiple speech input results. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/tools/test_shell/layout_test_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 /* 5 /*
6 LayoutTestController class: 6 LayoutTestController class:
7 Bound to a JavaScript window.layoutTestController object using the 7 Bound to a JavaScript window.layoutTestController object using the
8 CppBoundClass::BindToJavascript(), this allows layout tests that are run in 8 CppBoundClass::BindToJavascript(), this allows layout tests that are run in
9 the test_shell (or, in principle, any web page loaded into a client app built 9 the test_shell (or, in principle, any web page loaded into a client app built
10 with this class) to control various aspects of how the tests are run and what 10 with this class) to control various aspects of how the tests are run and what
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 void callShouldCloseOnWebView(const CppArgumentList& args, CppVariant* result) ; 226 void callShouldCloseOnWebView(const CppArgumentList& args, CppVariant* result) ;
227 void setCallCloseOnWebViews(const CppArgumentList& args, CppVariant* result); 227 void setCallCloseOnWebViews(const CppArgumentList& args, CppVariant* result);
228 void setPrivateBrowsingEnabled(const CppArgumentList& args, CppVariant* result ); 228 void setPrivateBrowsingEnabled(const CppArgumentList& args, CppVariant* result );
229 229
230 void setJavaScriptCanAccessClipboard(const CppArgumentList& args, CppVariant* result); 230 void setJavaScriptCanAccessClipboard(const CppArgumentList& args, CppVariant* result);
231 void setXSSAuditorEnabled(const CppArgumentList& args, CppVariant* result); 231 void setXSSAuditorEnabled(const CppArgumentList& args, CppVariant* result);
232 void evaluateScriptInIsolatedWorld(const CppArgumentList& args, CppVariant* re sult); 232 void evaluateScriptInIsolatedWorld(const CppArgumentList& args, CppVariant* re sult);
233 void overridePreference(const CppArgumentList& args, CppVariant* result); 233 void overridePreference(const CppArgumentList& args, CppVariant* result);
234 void setAllowUniversalAccessFromFileURLs(const CppArgumentList& args, CppVaria nt* result); 234 void setAllowUniversalAccessFromFileURLs(const CppArgumentList& args, CppVaria nt* result);
235 void setAllowFileAccessFromFileURLs(const CppArgumentList& args, CppVariant* r esult); 235 void setAllowFileAccessFromFileURLs(const CppArgumentList& args, CppVariant* r esult);
236 void setMockSpeechInputResult(const CppArgumentList& args, CppVariant* result) ; 236 void addMockSpeechInputResult(const CppArgumentList& args, CppVariant* result) ;
237 237
238 // The fallback method is called when a nonexistent method is called on 238 // The fallback method is called when a nonexistent method is called on
239 // the layout test controller object. 239 // the layout test controller object.
240 // It is usefull to catch typos in the JavaScript code (a few layout tests 240 // It is usefull to catch typos in the JavaScript code (a few layout tests
241 // do have typos in them) and it allows the script to continue running in 241 // do have typos in them) and it allows the script to continue running in
242 // that case (as the Mac does). 242 // that case (as the Mac does).
243 void fallbackMethod(const CppArgumentList& args, CppVariant* result); 243 void fallbackMethod(const CppArgumentList& args, CppVariant* result);
244 244
245 // Allows layout tests to manage origins' whitelisting. 245 // Allows layout tests to manage origins' whitelisting.
246 void addOriginAccessWhitelistEntry( 246 void addOriginAccessWhitelistEntry(
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 494
495 static WorkQueue work_queue_; 495 static WorkQueue work_queue_;
496 496
497 static CppVariant globalFlag_; 497 static CppVariant globalFlag_;
498 498
499 // Bound variable counting the number of top URLs visited. 499 // Bound variable counting the number of top URLs visited.
500 static CppVariant webHistoryItemCount_; 500 static CppVariant webHistoryItemCount_;
501 }; 501 };
502 502
503 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ 503 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/tools/test_shell/layout_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698