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

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

Issue 594054: Implement layoutTestController.numberOfPages. (Closed)
Patch Set: update per yuzo's suggestion Created 10 years, 10 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 void setPOSIXLocale(const CppArgumentList& args, CppVariant* result); 220 void setPOSIXLocale(const CppArgumentList& args, CppVariant* result);
221 221
222 // Gets the value of the counter in the element specified by its ID. 222 // Gets the value of the counter in the element specified by its ID.
223 void counterValueForElementById( 223 void counterValueForElementById(
224 const CppArgumentList& args, CppVariant* result); 224 const CppArgumentList& args, CppVariant* result);
225 225
226 // Gets the number of page where the specified element will be put. 226 // Gets the number of page where the specified element will be put.
227 void pageNumberForElementById( 227 void pageNumberForElementById(
228 const CppArgumentList& args, CppVariant* result); 228 const CppArgumentList& args, CppVariant* result);
229 229
230 // Gets the number of pages to be printed.
231 void numberOfPages(const CppArgumentList& args, CppVariant* result);
232
230 // Allows layout tests to start Timeline profiling. 233 // Allows layout tests to start Timeline profiling.
231 void setTimelineProfilingEnabled(const CppArgumentList& args, 234 void setTimelineProfilingEnabled(const CppArgumentList& args,
232 CppVariant* result); 235 CppVariant* result);
233 236
234 // Allows layout tests to exec scripts at WebInspector side. 237 // Allows layout tests to exec scripts at WebInspector side.
235 void evaluateInWebInspector(const CppArgumentList& args, CppVariant* result); 238 void evaluateInWebInspector(const CppArgumentList& args, CppVariant* result);
236 239
237 // Forces the selection colors for testing under Linux. 240 // Forces the selection colors for testing under Linux.
238 void forceRedSelectionColors(const CppArgumentList& args, 241 void forceRedSelectionColors(const CppArgumentList& args,
239 CppVariant* result); 242 CppVariant* result);
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 415
413 static WorkQueue work_queue_; 416 static WorkQueue work_queue_;
414 417
415 static CppVariant globalFlag_; 418 static CppVariant globalFlag_;
416 419
417 // Bound variable counting the number of top URLs visited. 420 // Bound variable counting the number of top URLs visited.
418 static CppVariant webHistoryItemCount_; 421 static CppVariant webHistoryItemCount_;
419 }; 422 };
420 423
421 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ 424 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_
OLDNEW
« no previous file with comments | « webkit/tools/layout_tests/test_expectations.txt ('k') | webkit/tools/test_shell/layout_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698