| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org) | 3 * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org) |
| 4 * Copyright (C) 2012 Apple Inc. All Rights Reserved. | 4 * Copyright (C) 2012 Apple Inc. All Rights Reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions are | 7 * modification, are permitted provided that the following conditions are |
| 8 * met: | 8 * met: |
| 9 * | 9 * |
| 10 * * Redistributions of source code must retain the above copyright | 10 * * Redistributions of source code must retain the above copyright |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 void addOriginAccessWhitelistEntry(const CppArgumentList&, CppVariant*); | 234 void addOriginAccessWhitelistEntry(const CppArgumentList&, CppVariant*); |
| 235 void removeOriginAccessWhitelistEntry(const CppArgumentList&, CppVariant*); | 235 void removeOriginAccessWhitelistEntry(const CppArgumentList&, CppVariant*); |
| 236 | 236 |
| 237 // Returns true if the current page box has custom page size style for | 237 // Returns true if the current page box has custom page size style for |
| 238 // printing. | 238 // printing. |
| 239 void hasCustomPageSizeStyle(const CppArgumentList&, CppVariant*); | 239 void hasCustomPageSizeStyle(const CppArgumentList&, CppVariant*); |
| 240 | 240 |
| 241 // Forces the selection colors for testing under Linux. | 241 // Forces the selection colors for testing under Linux. |
| 242 void forceRedSelectionColors(const CppArgumentList&, CppVariant*); | 242 void forceRedSelectionColors(const CppArgumentList&, CppVariant*); |
| 243 | 243 |
| 244 // Adds a user style sheet to be injected into new documents. | 244 // Adds a style sheet to be injected into new documents. |
| 245 void addUserStyleSheet(const CppArgumentList&, CppVariant*); | 245 void injectStyleSheet(const CppArgumentList&, CppVariant*); |
| 246 | 246 |
| 247 void startSpeechInput(const CppArgumentList&, CppVariant*); | 247 void startSpeechInput(const CppArgumentList&, CppVariant*); |
| 248 | 248 |
| 249 void findString(const CppArgumentList&, CppVariant*); | 249 void findString(const CppArgumentList&, CppVariant*); |
| 250 | 250 |
| 251 // Expects the first argument to be an input element and the second argument
to be a string value. | 251 // Expects the first argument to be an input element and the second argument
to be a string value. |
| 252 // Forwards the setValueForUser() call to the element. | 252 // Forwards the setValueForUser() call to the element. |
| 253 void setValueForUser(const CppArgumentList&, CppVariant*); | 253 void setValueForUser(const CppArgumentList&, CppVariant*); |
| 254 | 254 |
| 255 void selectionAsMarkup(const CppArgumentList&, CppVariant*); | 255 void selectionAsMarkup(const CppArgumentList&, CppVariant*); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 290 |
| 291 void didAcquirePointerLock(const CppArgumentList&, CppVariant*); | 291 void didAcquirePointerLock(const CppArgumentList&, CppVariant*); |
| 292 void didNotAcquirePointerLock(const CppArgumentList&, CppVariant*); | 292 void didNotAcquirePointerLock(const CppArgumentList&, CppVariant*); |
| 293 void didLosePointerLock(const CppArgumentList&, CppVariant*); | 293 void didLosePointerLock(const CppArgumentList&, CppVariant*); |
| 294 void setPointerLockWillFailSynchronously(const CppArgumentList&, CppVariant*
); | 294 void setPointerLockWillFailSynchronously(const CppArgumentList&, CppVariant*
); |
| 295 void setPointerLockWillRespondAsynchronously(const CppArgumentList&, CppVari
ant*); | 295 void setPointerLockWillRespondAsynchronously(const CppArgumentList&, CppVari
ant*); |
| 296 | 296 |
| 297 /////////////////////////////////////////////////////////////////////////// | 297 /////////////////////////////////////////////////////////////////////////// |
| 298 // Methods modifying WebPreferences. | 298 // Methods modifying WebPreferences. |
| 299 | 299 |
| 300 // Passes through to WebPreferences which allows the user to have a custom | |
| 301 // style sheet. | |
| 302 void setUserStyleSheetEnabled(const CppArgumentList&, CppVariant*); | |
| 303 void setUserStyleSheetLocation(const CppArgumentList&, CppVariant*); | |
| 304 | |
| 305 // Set the WebPreference that controls webkit's popup blocking. | 300 // Set the WebPreference that controls webkit's popup blocking. |
| 306 void setPopupBlockingEnabled(const CppArgumentList&, CppVariant*); | 301 void setPopupBlockingEnabled(const CppArgumentList&, CppVariant*); |
| 307 | 302 |
| 308 void setJavaScriptCanAccessClipboard(const CppArgumentList&, CppVariant*); | 303 void setJavaScriptCanAccessClipboard(const CppArgumentList&, CppVariant*); |
| 309 void setXSSAuditorEnabled(const CppArgumentList&, CppVariant*); | 304 void setXSSAuditorEnabled(const CppArgumentList&, CppVariant*); |
| 310 void setAllowUniversalAccessFromFileURLs(const CppArgumentList&, CppVariant*
); | 305 void setAllowUniversalAccessFromFileURLs(const CppArgumentList&, CppVariant*
); |
| 311 void setAllowFileAccessFromFileURLs(const CppArgumentList&, CppVariant*); | 306 void setAllowFileAccessFromFileURLs(const CppArgumentList&, CppVariant*); |
| 312 void overridePreference(const CppArgumentList&, CppVariant*); | 307 void overridePreference(const CppArgumentList&, CppVariant*); |
| 313 | 308 |
| 314 // Enable or disable plugins. | 309 // Enable or disable plugins. |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 | 564 |
| 570 // Toggles the behavior of the policy delegate. If true, then navigations | 565 // Toggles the behavior of the policy delegate. If true, then navigations |
| 571 // will be allowed. Otherwise, they will be ignored (dropped). | 566 // will be allowed. Otherwise, they will be ignored (dropped). |
| 572 bool m_policyDelegateIsPermissive; | 567 bool m_policyDelegateIsPermissive; |
| 573 | 568 |
| 574 // If true, the policy delegate will signal layout test completion. | 569 // If true, the policy delegate will signal layout test completion. |
| 575 bool m_policyDelegateShouldNotifyDone; | 570 bool m_policyDelegateShouldNotifyDone; |
| 576 | 571 |
| 577 WorkQueue m_workQueue; | 572 WorkQueue m_workQueue; |
| 578 | 573 |
| 579 blink::WebURL m_userStyleSheetLocation; | |
| 580 | |
| 581 // globalFlag is used by a number of layout tests in http/tests/security/dat
aURL. | 574 // globalFlag is used by a number of layout tests in http/tests/security/dat
aURL. |
| 582 CppVariant m_globalFlag; | 575 CppVariant m_globalFlag; |
| 583 | 576 |
| 584 // Bound variable to return the name of this platform (chromium). | 577 // Bound variable to return the name of this platform (chromium). |
| 585 CppVariant m_platformName; | 578 CppVariant m_platformName; |
| 586 | 579 |
| 587 // Bound variable counting the number of top URLs visited. | 580 // Bound variable counting the number of top URLs visited. |
| 588 CppVariant m_webHistoryItemCount; | 581 CppVariant m_webHistoryItemCount; |
| 589 | 582 |
| 590 // Bound variable to set whether postMessages should be intercepted or not | 583 // Bound variable to set whether postMessages should be intercepted or not |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 enum { | 719 enum { |
| 727 PointerLockWillSucceed, | 720 PointerLockWillSucceed, |
| 728 PointerLockWillRespondAsync, | 721 PointerLockWillRespondAsync, |
| 729 PointerLockWillFailSync, | 722 PointerLockWillFailSync, |
| 730 } m_pointerLockPlannedResult; | 723 } m_pointerLockPlannedResult; |
| 731 }; | 724 }; |
| 732 | 725 |
| 733 } | 726 } |
| 734 | 727 |
| 735 #endif // TestRunner_h | 728 #endif // TestRunner_h |
| OLD | NEW |