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

Side by Side Diff: public/platform/Platform.h

Issue 17155009: Web MIDI: MIDIAccessor platform implementation and Blink API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: reorder, etc Created 7 years, 6 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
OLDNEW
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 class WebDiscardableMemory; 59 class WebDiscardableMemory;
60 class WebFallbackThemeEngine; 60 class WebFallbackThemeEngine;
61 class WebFileSystem; 61 class WebFileSystem;
62 class WebFileUtilities; 62 class WebFileUtilities;
63 class WebFlingAnimator; 63 class WebFlingAnimator;
64 class WebGestureCurveTarget; 64 class WebGestureCurveTarget;
65 class WebGestureCurve; 65 class WebGestureCurve;
66 class WebGraphicsContext3DProvider; 66 class WebGraphicsContext3DProvider;
67 class WebHyphenator; 67 class WebHyphenator;
68 class WebIDBFactory; 68 class WebIDBFactory;
69 class WebMIDIAccessor;
70 class WebMIDIAccessorClient;
69 class WebMediaStreamCenter; 71 class WebMediaStreamCenter;
70 class WebMediaStreamCenterClient; 72 class WebMediaStreamCenterClient;
71 class WebMessagePortChannel; 73 class WebMessagePortChannel;
72 class WebMimeRegistry; 74 class WebMimeRegistry;
73 class WebPluginListBuilder; 75 class WebPluginListBuilder;
74 class WebPrescientNetworking; 76 class WebPrescientNetworking;
75 class WebRTCPeerConnectionHandler; 77 class WebRTCPeerConnectionHandler;
76 class WebRTCPeerConnectionHandlerClient; 78 class WebRTCPeerConnectionHandlerClient;
77 class WebSandboxSupport; 79 class WebSandboxSupport;
78 class WebSocketStreamHandle; 80 class WebSocketStreamHandle;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 virtual unsigned audioHardwareOutputChannels() { return 0; } 146 virtual unsigned audioHardwareOutputChannels() { return 0; }
145 147
146 // Creates a device for audio I/O. 148 // Creates a device for audio I/O.
147 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. 149 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired.
148 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R enderCallback*, const WebString& deviceId) { return 0; } 150 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R enderCallback*, const WebString& deviceId) { return 0; }
149 151
150 // FIXME: remove deprecated APIs once chromium switches over to new method. 152 // FIXME: remove deprecated APIs once chromium switches over to new method.
151 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number OfChannels, double sampleRate, WebAudioDevice::RenderCallback*) { return 0; } 153 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number OfChannels, double sampleRate, WebAudioDevice::RenderCallback*) { return 0; }
152 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R enderCallback*) { return 0; } 154 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R enderCallback*) { return 0; }
153 155
156 // MIDI ----------------------------------------------------------------
157
158 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { return 0; }
tkent 2013/06/19 05:48:45 Who is responsible to delete the resultant WebMIDI
Takashi Toyoshima 2013/06/19 06:37:18 core/platform/midi/MIDIAccessor owns this as OwnPt
154 159
155 // Blob ---------------------------------------------------------------- 160 // Blob ----------------------------------------------------------------
156 161
157 // Must return non-null. 162 // Must return non-null.
158 virtual WebBlobRegistry* blobRegistry() { return 0; } 163 virtual WebBlobRegistry* blobRegistry() { return 0; }
159 164
160 165
161 // Database ------------------------------------------------------------ 166 // Database ------------------------------------------------------------
162 167
163 // Opens a database file; dirHandle should be 0 if the caller does not need 168 // Opens a database file; dirHandle should be 0 if the caller does not need
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 // If null, the platform stops providing device motion data to the current l istener. 531 // If null, the platform stops providing device motion data to the current l istener.
527 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { } 532 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { }
528 533
529 protected: 534 protected:
530 virtual ~Platform() { } 535 virtual ~Platform() { }
531 }; 536 };
532 537
533 } // namespace WebKit 538 } // namespace WebKit
534 539
535 #endif 540 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698