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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 void setMockGeolocationPositionUnavailableError(const CppArgumentList&, CppV
ariant*); | 464 void setMockGeolocationPositionUnavailableError(const CppArgumentList&, CppV
ariant*); |
465 | 465 |
466 // MIDI function to control permission handling. | 466 // MIDI function to control permission handling. |
467 void setMIDISysExPermission(const CppArgumentList&, CppVariant*); | 467 void setMIDISysExPermission(const CppArgumentList&, CppVariant*); |
468 | 468 |
469 #if ENABLE_NOTIFICATIONS | 469 #if ENABLE_NOTIFICATIONS |
470 // Grants permission for desktop notifications to an origin | 470 // Grants permission for desktop notifications to an origin |
471 void grantWebNotificationPermission(const CppArgumentList&, CppVariant*); | 471 void grantWebNotificationPermission(const CppArgumentList&, CppVariant*); |
472 // Simulates a click on a desktop notification. | 472 // Simulates a click on a desktop notification. |
473 void simulateLegacyWebNotificationClick(const CppArgumentList&, CppVariant*)
; | 473 void simulateLegacyWebNotificationClick(const CppArgumentList&, CppVariant*)
; |
| 474 // Removes all permissions for desktop notifications |
| 475 void removeAllWebNotificationPermissions(const CppArgumentList&, CppVariant*
); |
474 #endif | 476 #endif |
475 | 477 |
476 // Speech input related functions. | 478 // Speech input related functions. |
477 void addMockSpeechInputResult(const CppArgumentList&, CppVariant*); | 479 void addMockSpeechInputResult(const CppArgumentList&, CppVariant*); |
478 void setMockSpeechInputDumpRect(const CppArgumentList&, CppVariant*); | 480 void setMockSpeechInputDumpRect(const CppArgumentList&, CppVariant*); |
479 void addMockSpeechRecognitionResult(const CppArgumentList&, CppVariant*); | 481 void addMockSpeechRecognitionResult(const CppArgumentList&, CppVariant*); |
480 void setMockSpeechRecognitionError(const CppArgumentList&, CppVariant*); | 482 void setMockSpeechRecognitionError(const CppArgumentList&, CppVariant*); |
481 void wasMockSpeechRecognitionAborted(const CppArgumentList&, CppVariant*); | 483 void wasMockSpeechRecognitionAborted(const CppArgumentList&, CppVariant*); |
482 | 484 |
483 // WebPageOverlay related functions. Permits the adding and removing of only | 485 // WebPageOverlay related functions. Permits the adding and removing of only |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 enum { | 715 enum { |
714 PointerLockWillSucceed, | 716 PointerLockWillSucceed, |
715 PointerLockWillRespondAsync, | 717 PointerLockWillRespondAsync, |
716 PointerLockWillFailSync, | 718 PointerLockWillFailSync, |
717 } m_pointerLockPlannedResult; | 719 } m_pointerLockPlannedResult; |
718 }; | 720 }; |
719 | 721 |
720 } | 722 } |
721 | 723 |
722 #endif // TestRunner_h | 724 #endif // TestRunner_h |
OLD | NEW |