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

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

Issue 1549039: Enable support for notifications layout tests in test shell.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « webkit/support/test_webkit_client.cc ('k') | 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 CppVariant* result); 180 CppVariant* result);
181 181
182 void disableImageLoading(const CppArgumentList& args, 182 void disableImageLoading(const CppArgumentList& args,
183 CppVariant* result); 183 CppVariant* result);
184 184
185 void setIconDatabaseEnabled(const CppArgumentList& args, 185 void setIconDatabaseEnabled(const CppArgumentList& args,
186 CppVariant* result); 186 CppVariant* result);
187 187
188 void dumpSelectionRect(const CppArgumentList& args, CppVariant* result); 188 void dumpSelectionRect(const CppArgumentList& args, CppVariant* result);
189 189
190 // Grants permission for desktop notifications to an origin
191 void grantDesktopNotificationPermission(const CppArgumentList& args,
192 CppVariant* result);
193
190 // The following are only stubs. TODO(pamg): Implement any of these that 194 // The following are only stubs. TODO(pamg): Implement any of these that
191 // are needed to pass the layout tests. 195 // are needed to pass the layout tests.
192 void dumpAsWebArchive(const CppArgumentList& args, CppVariant* result); 196 void dumpAsWebArchive(const CppArgumentList& args, CppVariant* result);
193 void dumpTitleChanges(const CppArgumentList& args, CppVariant* result); 197 void dumpTitleChanges(const CppArgumentList& args, CppVariant* result);
194 void dumpResourceLoadCallbacks(const CppArgumentList& args, CppVariant* result ); 198 void dumpResourceLoadCallbacks(const CppArgumentList& args, CppVariant* result );
195 void setMainFrameIsFirstResponder(const CppArgumentList& args, CppVariant* res ult); 199 void setMainFrameIsFirstResponder(const CppArgumentList& args, CppVariant* res ult);
196 void display(const CppArgumentList& args, CppVariant* result); 200 void display(const CppArgumentList& args, CppVariant* result);
197 void testRepaint(const CppArgumentList& args, CppVariant* result); 201 void testRepaint(const CppArgumentList& args, CppVariant* result);
198 void repaintSweepHorizontally(const CppArgumentList& args, CppVariant* result) ; 202 void repaintSweepHorizontally(const CppArgumentList& args, CppVariant* result) ;
199 void clearBackForwardList(const CppArgumentList& args, CppVariant* result); 203 void clearBackForwardList(const CppArgumentList& args, CppVariant* result);
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 438
435 static WorkQueue work_queue_; 439 static WorkQueue work_queue_;
436 440
437 static CppVariant globalFlag_; 441 static CppVariant globalFlag_;
438 442
439 // Bound variable counting the number of top URLs visited. 443 // Bound variable counting the number of top URLs visited.
440 static CppVariant webHistoryItemCount_; 444 static CppVariant webHistoryItemCount_;
441 }; 445 };
442 446
443 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_ 447 #endif // WEBKIT_TOOLS_TEST_SHELL_LAYOUT_TEST_CONTROLLER_H_
OLDNEW
« no previous file with comments | « webkit/support/test_webkit_client.cc ('k') | webkit/tools/test_shell/layout_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698