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

Side by Side Diff: Source/testing/runner/TestRunner.h

Issue 66383005: Remove the concept of user stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
OLDNEW
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
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
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 // Passes this preference through to WebSettings. 300 // Passes this preference through to WebSettings.
306 void setAuthorAndUserStylesEnabled(const CppArgumentList&, CppVariant*); 301 void setAuthorAndUserStylesEnabled(const CppArgumentList&, CppVariant*);
307 302
308 // Set the WebPreference that controls webkit's popup blocking. 303 // Set the WebPreference that controls webkit's popup blocking.
309 void setPopupBlockingEnabled(const CppArgumentList&, CppVariant*); 304 void setPopupBlockingEnabled(const CppArgumentList&, CppVariant*);
310 305
311 void setJavaScriptCanAccessClipboard(const CppArgumentList&, CppVariant*); 306 void setJavaScriptCanAccessClipboard(const CppArgumentList&, CppVariant*);
312 void setXSSAuditorEnabled(const CppArgumentList&, CppVariant*); 307 void setXSSAuditorEnabled(const CppArgumentList&, CppVariant*);
313 void setAllowUniversalAccessFromFileURLs(const CppArgumentList&, CppVariant* ); 308 void setAllowUniversalAccessFromFileURLs(const CppArgumentList&, CppVariant* );
314 void setAllowFileAccessFromFileURLs(const CppArgumentList&, CppVariant*); 309 void setAllowFileAccessFromFileURLs(const CppArgumentList&, CppVariant*);
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 567
573 // Toggles the behavior of the policy delegate. If true, then navigations 568 // Toggles the behavior of the policy delegate. If true, then navigations
574 // will be allowed. Otherwise, they will be ignored (dropped). 569 // will be allowed. Otherwise, they will be ignored (dropped).
575 bool m_policyDelegateIsPermissive; 570 bool m_policyDelegateIsPermissive;
576 571
577 // If true, the policy delegate will signal layout test completion. 572 // If true, the policy delegate will signal layout test completion.
578 bool m_policyDelegateShouldNotifyDone; 573 bool m_policyDelegateShouldNotifyDone;
579 574
580 WorkQueue m_workQueue; 575 WorkQueue m_workQueue;
581 576
582 blink::WebURL m_userStyleSheetLocation;
583
584 // globalFlag is used by a number of layout tests in http/tests/security/dat aURL. 577 // globalFlag is used by a number of layout tests in http/tests/security/dat aURL.
585 CppVariant m_globalFlag; 578 CppVariant m_globalFlag;
586 579
587 // Bound variable to return the name of this platform (chromium). 580 // Bound variable to return the name of this platform (chromium).
588 CppVariant m_platformName; 581 CppVariant m_platformName;
589 582
590 // Bound variable counting the number of top URLs visited. 583 // Bound variable counting the number of top URLs visited.
591 CppVariant m_webHistoryItemCount; 584 CppVariant m_webHistoryItemCount;
592 585
593 // Bound variable to set whether postMessages should be intercepted or not 586 // Bound variable to set whether postMessages should be intercepted or not
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 enum { 722 enum {
730 PointerLockWillSucceed, 723 PointerLockWillSucceed,
731 PointerLockWillRespondAsync, 724 PointerLockWillRespondAsync,
732 PointerLockWillFailSync, 725 PointerLockWillFailSync,
733 } m_pointerLockPlannedResult; 726 } m_pointerLockPlannedResult;
734 }; 727 };
735 728
736 } 729 }
737 730
738 #endif // TestRunner_h 731 #endif // TestRunner_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698