| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 virtual WebBluetooth* bluetooth() { return 0; } | 714 virtual WebBluetooth* bluetooth() { return 0; } |
| 715 | 715 |
| 716 // WebUSB -------------------------------------------------------------- | 716 // WebUSB -------------------------------------------------------------- |
| 717 virtual WebUSBClient* usbClient() { return nullptr; } | 717 virtual WebUSBClient* usbClient() { return nullptr; } |
| 718 | 718 |
| 719 | 719 |
| 720 // Audio Output Devices API -------------------------------------------- | 720 // Audio Output Devices API -------------------------------------------- |
| 721 | 721 |
| 722 // Checks that the given audio sink exists and is authorized. The result is
provided via the callbacks. | 722 // Checks that the given audio sink exists and is authorized. The result is
provided via the callbacks. |
| 723 // This method takes ownership of the callbacks pointer. | 723 // This method takes ownership of the callbacks pointer. |
| 724 virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId,
const WebSecurityOrigin&, WebSetSinkIdCallbacks*) { BLINK_ASSERT_NOT_REACHED();
} | 724 virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId,
const WebSecurityOrigin&, WebSetSinkIdCallbacks* callbacks) |
| 725 { |
| 726 if (callbacks) { |
| 727 callbacks->onError(WebSetSinkIdError::NotSupported); |
| 728 delete callbacks; |
| 729 } |
| 730 } |
| 725 | 731 |
| 726 protected: | 732 protected: |
| 727 virtual ~WebFrameClient() { } | 733 virtual ~WebFrameClient() { } |
| 728 }; | 734 }; |
| 729 | 735 |
| 730 } // namespace blink | 736 } // namespace blink |
| 731 | 737 |
| 732 #endif | 738 #endif |
| OLD | NEW |