| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 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 23 matching lines...) Expand all Loading... |
| 34 #ifdef WIN32 | 34 #ifdef WIN32 |
| 35 #include <windows.h> | 35 #include <windows.h> |
| 36 #endif | 36 #endif |
| 37 | 37 |
| 38 #include "WebAudioDevice.h" | 38 #include "WebAudioDevice.h" |
| 39 #include "WebCommon.h" | 39 #include "WebCommon.h" |
| 40 #include "WebData.h" | 40 #include "WebData.h" |
| 41 #include "WebGamepads.h" | 41 #include "WebGamepads.h" |
| 42 #include "WebGraphicsContext3D.h" | 42 #include "WebGraphicsContext3D.h" |
| 43 #include "WebLocalizedString.h" | 43 #include "WebLocalizedString.h" |
| 44 #include "WebMIDIAccessor.h" |
| 44 #include "WebSpeechSynthesizer.h" | 45 #include "WebSpeechSynthesizer.h" |
| 45 #include "WebString.h" | 46 #include "WebString.h" |
| 46 #include "WebVector.h" | 47 #include "WebVector.h" |
| 47 | 48 |
| 48 class GrContext; | 49 class GrContext; |
| 49 | 50 |
| 50 namespace WebKit { | 51 namespace WebKit { |
| 51 | 52 |
| 52 class WebAudioBus; | 53 class WebAudioBus; |
| 53 class WebBlobRegistry; | 54 class WebBlobRegistry; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 virtual unsigned audioHardwareOutputChannels() { return 0; } | 136 virtual unsigned audioHardwareOutputChannels() { return 0; } |
| 136 | 137 |
| 137 // Creates a device for audio I/O. | 138 // Creates a device for audio I/O. |
| 138 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. | 139 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. |
| 139 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R
enderCallback*, const WebString& deviceId) { return 0; } | 140 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R
enderCallback*, const WebString& deviceId) { return 0; } |
| 140 | 141 |
| 141 // FIXME: remove deprecated APIs once chromium switches over to new method. | 142 // FIXME: remove deprecated APIs once chromium switches over to new method. |
| 142 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfChannels, double sampleRate, WebAudioDevice::RenderCallback*) { return 0; } | 143 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfChannels, double sampleRate, WebAudioDevice::RenderCallback*) { return 0; } |
| 143 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R
enderCallback*) { return 0; } | 144 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R
enderCallback*) { return 0; } |
| 144 | 145 |
| 146 // MIDI -------------------------------------------------------------- |
| 147 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessor::Client*) { retu
rn 0; } |
| 145 | 148 |
| 146 // Blob ---------------------------------------------------------------- | 149 // Blob ---------------------------------------------------------------- |
| 147 | 150 |
| 148 // Must return non-null. | 151 // Must return non-null. |
| 149 virtual WebBlobRegistry* blobRegistry() { return 0; } | 152 virtual WebBlobRegistry* blobRegistry() { return 0; } |
| 150 | 153 |
| 151 | 154 |
| 152 // Database ------------------------------------------------------------ | 155 // Database ------------------------------------------------------------ |
| 153 | 156 |
| 154 // Opens a database file; dirHandle should be 0 if the caller does not need | 157 // Opens a database file; dirHandle should be 0 if the caller does not need |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 // If null, the platform stops providing device motion data to the current l
istener. | 521 // If null, the platform stops providing device motion data to the current l
istener. |
| 519 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { } | 522 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { } |
| 520 | 523 |
| 521 protected: | 524 protected: |
| 522 virtual ~Platform() { } | 525 virtual ~Platform() { } |
| 523 }; | 526 }; |
| 524 | 527 |
| 525 } // namespace WebKit | 528 } // namespace WebKit |
| 526 | 529 |
| 527 #endif | 530 #endif |
| OLD | NEW |