| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 bool shouldDumpAsText(); | 90 bool shouldDumpAsText(); |
| 91 bool shouldDumpChildFrameScrollPositions() const; | 91 bool shouldDumpChildFrameScrollPositions() const; |
| 92 bool shouldDumpChildFramesAsText() const; | 92 bool shouldDumpChildFramesAsText() const; |
| 93 void showDevTools(); | 93 void showDevTools(); |
| 94 void setShouldDumpAsText(bool); | 94 void setShouldDumpAsText(bool); |
| 95 void setShouldGeneratePixelResults(bool); | 95 void setShouldGeneratePixelResults(bool); |
| 96 void setShouldDumpFrameLoadCallbacks(bool); | 96 void setShouldDumpFrameLoadCallbacks(bool); |
| 97 bool shouldDumpEditingCallbacks() const; | 97 bool shouldDumpEditingCallbacks() const; |
| 98 bool shouldDumpFrameLoadCallbacks() const; | 98 bool shouldDumpFrameLoadCallbacks() const; |
| 99 bool shouldDumpUserGestureInFrameLoadCallbacks() const; | 99 bool shouldDumpUserGestureInFrameLoadCallbacks() const; |
| 100 bool stopProvisionalFrameLoads() const; | |
| 101 bool shouldDumpTitleChanges() const; | 100 bool shouldDumpTitleChanges() const; |
| 102 bool shouldDumpIconChanges() const; | 101 bool shouldDumpIconChanges() const; |
| 103 bool shouldDumpCreateView() const; | 102 bool shouldDumpCreateView() const; |
| 104 bool canOpenWindows() const; | 103 bool canOpenWindows() const; |
| 105 bool shouldDumpResourceLoadCallbacks() const; | 104 bool shouldDumpResourceLoadCallbacks() const; |
| 106 bool shouldDumpResourceRequestCallbacks() const; | 105 bool shouldDumpResourceRequestCallbacks() const; |
| 107 bool shouldDumpResourceResponseMIMETypes() const; | 106 bool shouldDumpResourceResponseMIMETypes() const; |
| 108 bool shouldDumpStatusCallbacks() const; | 107 bool shouldDumpStatusCallbacks() const; |
| 109 bool shouldDumpProgressFinishedCallback() const; | 108 bool shouldDumpProgressFinishedCallback() const; |
| 110 bool deferMainResourceDataLoad() const; | 109 bool deferMainResourceDataLoad() const; |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 // This function sets a flag that tells the test_shell to print a line of | 335 // This function sets a flag that tells the test_shell to print a line of |
| 337 // descriptive text for each frame load callback. It takes no arguments, and | 336 // descriptive text for each frame load callback. It takes no arguments, and |
| 338 // ignores any that may be present. | 337 // ignores any that may be present. |
| 339 void dumpFrameLoadCallbacks(const CppArgumentList&, CppVariant*); | 338 void dumpFrameLoadCallbacks(const CppArgumentList&, CppVariant*); |
| 340 | 339 |
| 341 // This function sets a flag that tells the test_shell to print a line of | 340 // This function sets a flag that tells the test_shell to print a line of |
| 342 // user gesture status text for some frame load callbacks. It takes no | 341 // user gesture status text for some frame load callbacks. It takes no |
| 343 // arguments, and ignores any that may be present. | 342 // arguments, and ignores any that may be present. |
| 344 void dumpUserGestureInFrameLoadCallbacks(const CppArgumentList&, CppVariant*
); | 343 void dumpUserGestureInFrameLoadCallbacks(const CppArgumentList&, CppVariant*
); |
| 345 | 344 |
| 346 // If true, causes provisional frame loads to be stopped for the remainder o
f | |
| 347 // the test. | |
| 348 void setStopProvisionalFrameLoads(const CppArgumentList&, CppVariant*); | |
| 349 | |
| 350 void dumpTitleChanges(const CppArgumentList&, CppVariant*); | 345 void dumpTitleChanges(const CppArgumentList&, CppVariant*); |
| 351 | 346 |
| 352 // This function sets a flag that tells the test_shell to dump all calls to | 347 // This function sets a flag that tells the test_shell to dump all calls to |
| 353 // WebViewClient::createView(). | 348 // WebViewClient::createView(). |
| 354 // It takes no arguments, and ignores any that may be present. | 349 // It takes no arguments, and ignores any that may be present. |
| 355 void dumpCreateView(const CppArgumentList&, CppVariant*); | 350 void dumpCreateView(const CppArgumentList&, CppVariant*); |
| 356 | 351 |
| 357 void setCanOpenWindows(const CppArgumentList&, CppVariant*); | 352 void setCanOpenWindows(const CppArgumentList&, CppVariant*); |
| 358 | 353 |
| 359 // This function sets a flag that tells the test_shell to dump a descriptive | 354 // This function sets a flag that tells the test_shell to dump a descriptive |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 bool m_dumpAsAudio; | 590 bool m_dumpAsAudio; |
| 596 | 591 |
| 597 // If true, the test_shell will output a descriptive line for each frame | 592 // If true, the test_shell will output a descriptive line for each frame |
| 598 // load callback. | 593 // load callback. |
| 599 bool m_dumpFrameLoadCallbacks; | 594 bool m_dumpFrameLoadCallbacks; |
| 600 | 595 |
| 601 // If true, the test_shell will output a line of the user gesture status | 596 // If true, the test_shell will output a line of the user gesture status |
| 602 // text for some frame load callbacks. | 597 // text for some frame load callbacks. |
| 603 bool m_dumpUserGestureInFrameLoadCallbacks; | 598 bool m_dumpUserGestureInFrameLoadCallbacks; |
| 604 | 599 |
| 605 // If true, stops provisional frame loads during the | |
| 606 // DidStartProvisionalLoadForFrame callback. | |
| 607 bool m_stopProvisionalFrameLoads; | |
| 608 | |
| 609 // If true, output a message when the page title is changed. | 600 // If true, output a message when the page title is changed. |
| 610 bool m_dumpTitleChanges; | 601 bool m_dumpTitleChanges; |
| 611 | 602 |
| 612 // If true, output a descriptive line each time WebViewClient::createView | 603 // If true, output a descriptive line each time WebViewClient::createView |
| 613 // is invoked. | 604 // is invoked. |
| 614 bool m_dumpCreateView; | 605 bool m_dumpCreateView; |
| 615 | 606 |
| 616 // If true, new windows can be opened via javascript or by plugins. By | 607 // If true, new windows can be opened via javascript or by plugins. By |
| 617 // default, set to false and can be toggled to true using | 608 // default, set to false and can be toggled to true using |
| 618 // setCanOpenWindows(). | 609 // setCanOpenWindows(). |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 enum { | 685 enum { |
| 695 PointerLockWillSucceed, | 686 PointerLockWillSucceed, |
| 696 PointerLockWillRespondAsync, | 687 PointerLockWillRespondAsync, |
| 697 PointerLockWillFailSync, | 688 PointerLockWillFailSync, |
| 698 } m_pointerLockPlannedResult; | 689 } m_pointerLockPlannedResult; |
| 699 }; | 690 }; |
| 700 | 691 |
| 701 } | 692 } |
| 702 | 693 |
| 703 #endif // TestRunner_h | 694 #endif // TestRunner_h |
| OLD | NEW |