| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /* | 5 /* |
| 6 * Copyright (C) 2010 Google Inc. All rights reserved. | 6 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 7 * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org) | 7 * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org) |
| 8 * Copyright (C) 2012 Apple Inc. All Rights Reserved. | 8 * Copyright (C) 2012 Apple Inc. All Rights Reserved. |
| 9 * | 9 * |
| 10 * Redistribution and use in source and binary forms, with or without | 10 * Redistribution and use in source and binary forms, with or without |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 // Converts a URL starting with file:///tmp/ to the local mapping. | 462 // Converts a URL starting with file:///tmp/ to the local mapping. |
| 463 void pathToLocalResource(const CppArgumentList&, CppVariant*); | 463 void pathToLocalResource(const CppArgumentList&, CppVariant*); |
| 464 | 464 |
| 465 // Used to set the device scale factor. | 465 // Used to set the device scale factor. |
| 466 void setBackingScaleFactor(const CppArgumentList&, CppVariant*); | 466 void setBackingScaleFactor(const CppArgumentList&, CppVariant*); |
| 467 | 467 |
| 468 // Calls setlocale(LC_ALL, ...) for a specified locale. | 468 // Calls setlocale(LC_ALL, ...) for a specified locale. |
| 469 // Resets between tests. | 469 // Resets between tests. |
| 470 void setPOSIXLocale(const CppArgumentList&, CppVariant*); | 470 void setPOSIXLocale(const CppArgumentList&, CppVariant*); |
| 471 | 471 |
| 472 // Gets the number of geolocation permissions requests pending. | |
| 473 void numberOfPendingGeolocationPermissionRequests(const CppArgumentList&, Cp
pVariant*); | |
| 474 | |
| 475 // Geolocation related functions. | |
| 476 void setGeolocationPermission(const CppArgumentList&, CppVariant*); | |
| 477 void setMockGeolocationPosition(const CppArgumentList&, CppVariant*); | |
| 478 void setMockGeolocationPositionUnavailableError(const CppArgumentList&, CppV
ariant*); | |
| 479 | |
| 480 // MIDI function to control permission handling. | 472 // MIDI function to control permission handling. |
| 481 void setMIDIAccessorResult(const CppArgumentList&, CppVariant*); | 473 void setMIDIAccessorResult(const CppArgumentList&, CppVariant*); |
| 482 void setMIDISysExPermission(const CppArgumentList&, CppVariant*); | 474 void setMIDISysExPermission(const CppArgumentList&, CppVariant*); |
| 483 | 475 |
| 484 // Grants permission for desktop notifications to an origin | 476 // Grants permission for desktop notifications to an origin |
| 485 void grantWebNotificationPermission(const CppArgumentList&, CppVariant*); | 477 void grantWebNotificationPermission(const CppArgumentList&, CppVariant*); |
| 486 // Simulates a click on a desktop notification. | 478 // Simulates a click on a desktop notification. |
| 487 void simulateLegacyWebNotificationClick(const CppArgumentList&, CppVariant*)
; | 479 void simulateLegacyWebNotificationClick(const CppArgumentList&, CppVariant*)
; |
| 488 // Cancel all active desktop notifications. | 480 // Cancel all active desktop notifications. |
| 489 void cancelAllActiveNotifications(const CppArgumentList& arguments, CppVaria
nt* result); | 481 void cancelAllActiveNotifications(const CppArgumentList& arguments, CppVaria
nt* result); |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 enum { | 718 enum { |
| 727 PointerLockWillSucceed, | 719 PointerLockWillSucceed, |
| 728 PointerLockWillRespondAsync, | 720 PointerLockWillRespondAsync, |
| 729 PointerLockWillFailSync, | 721 PointerLockWillFailSync, |
| 730 } m_pointerLockPlannedResult; | 722 } m_pointerLockPlannedResult; |
| 731 }; | 723 }; |
| 732 | 724 |
| 733 } | 725 } |
| 734 | 726 |
| 735 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTRUNNER_H_ | 727 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTRUNNER_H_ |
| OLD | NEW |