OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |