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

Unified Diff: Source/modules/webmidi/NavigatorMIDIAccess.h

Issue 16288002: Web MIDI API (work in progress) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add accessApproved() 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/webmidi/MIDISuccessCallback.idl ('k') | Source/modules/webmidi/NavigatorMIDIAccess.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/NavigatorMIDIAccess.h
diff --git a/Source/core/animation/AnimatableValue.h b/Source/modules/webmidi/NavigatorMIDIAccess.h
similarity index 84%
copy from Source/core/animation/AnimatableValue.h
copy to Source/modules/webmidi/NavigatorMIDIAccess.h
index 238766112da5a305c156fe0376712f61a4565753..7ff000cec78bd8086b14642feb175caaad211b37 100644
--- a/Source/core/animation/AnimatableValue.h
+++ b/Source/modules/webmidi/NavigatorMIDIAccess.h
@@ -28,20 +28,25 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AnimatableValue_h
-#define AnimatableValue_h
+#ifndef NavigatorMIDIAccess_h
+#define NavigatorMIDIAccess_h
-#include "core/css/CSSValue.h"
#include "wtf/PassRefPtr.h"
namespace WebCore {
-// FIXME: This class is currently just a stub.
-class AnimatableValue {
+class MIDIAccessFuture;
+class Navigator;
+
+class NavigatorMIDIAccess {
public:
- PassRefPtr<CSSValue> toCSSValue() const;
+ static PassRefPtr<MIDIAccessFuture> requestMIDIAccess(Navigator*);
+
+private:
+ NavigatorMIDIAccess();
+ ~NavigatorMIDIAccess();
};
} // namespace WebCore
-#endif // AnimatableValue_h
+#endif // NavigatorMIDIAccess_h
« no previous file with comments | « Source/modules/webmidi/MIDISuccessCallback.idl ('k') | Source/modules/webmidi/NavigatorMIDIAccess.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698