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

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

Issue 22852029: Add testRunner.cancelAllActiveNotifications to close all active notifications. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename Created 7 years, 3 months 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
« no previous file with comments | « Source/testing/runner/NotificationPresenter.cpp ('k') | Source/testing/runner/TestRunner.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 466
467 // MIDI function to control permission handling. 467 // MIDI function to control permission handling.
468 void setMIDIAccessorResult(const CppArgumentList&, CppVariant*); 468 void setMIDIAccessorResult(const CppArgumentList&, CppVariant*);
469 void setMIDISysExPermission(const CppArgumentList&, CppVariant*); 469 void setMIDISysExPermission(const CppArgumentList&, CppVariant*);
470 470
471 #if ENABLE_NOTIFICATIONS 471 #if ENABLE_NOTIFICATIONS
472 // Grants permission for desktop notifications to an origin 472 // Grants permission for desktop notifications to an origin
473 void grantWebNotificationPermission(const CppArgumentList&, CppVariant*); 473 void grantWebNotificationPermission(const CppArgumentList&, CppVariant*);
474 // Simulates a click on a desktop notification. 474 // Simulates a click on a desktop notification.
475 void simulateLegacyWebNotificationClick(const CppArgumentList&, CppVariant*) ; 475 void simulateLegacyWebNotificationClick(const CppArgumentList&, CppVariant*) ;
476 // Cancel all active desktop notifications.
477 void cancelAllActiveNotifications(const CppArgumentList& arguments, CppVaria nt* result);
476 #endif 478 #endif
477 479
478 // Speech input related functions. 480 // Speech input related functions.
479 void addMockSpeechInputResult(const CppArgumentList&, CppVariant*); 481 void addMockSpeechInputResult(const CppArgumentList&, CppVariant*);
480 void setMockSpeechInputDumpRect(const CppArgumentList&, CppVariant*); 482 void setMockSpeechInputDumpRect(const CppArgumentList&, CppVariant*);
481 void addMockSpeechRecognitionResult(const CppArgumentList&, CppVariant*); 483 void addMockSpeechRecognitionResult(const CppArgumentList&, CppVariant*);
482 void setMockSpeechRecognitionError(const CppArgumentList&, CppVariant*); 484 void setMockSpeechRecognitionError(const CppArgumentList&, CppVariant*);
483 void wasMockSpeechRecognitionAborted(const CppArgumentList&, CppVariant*); 485 void wasMockSpeechRecognitionAborted(const CppArgumentList&, CppVariant*);
484 486
485 // WebPageOverlay related functions. Permits the adding and removing of only 487 // WebPageOverlay related functions. Permits the adding and removing of only
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 enum { 717 enum {
716 PointerLockWillSucceed, 718 PointerLockWillSucceed,
717 PointerLockWillRespondAsync, 719 PointerLockWillRespondAsync,
718 PointerLockWillFailSync, 720 PointerLockWillFailSync,
719 } m_pointerLockPlannedResult; 721 } m_pointerLockPlannedResult;
720 }; 722 };
721 723
722 } 724 }
723 725
724 #endif // TestRunner_h 726 #endif // TestRunner_h
OLDNEW
« no previous file with comments | « Source/testing/runner/NotificationPresenter.cpp ('k') | Source/testing/runner/TestRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698