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

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

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/NavigatorMIDIAccess.h ('k') | Source/modules/webmidi/NavigatorMIDIAccess.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/NavigatorMIDIAccess.cpp
diff --git a/Source/core/css/CSSStyleDeclaration.cpp b/Source/modules/webmidi/NavigatorMIDIAccess.cpp
similarity index 72%
copy from Source/core/css/CSSStyleDeclaration.cpp
copy to Source/modules/webmidi/NavigatorMIDIAccess.cpp
index 538e17e227cf113704c997940bf73389f90fc509..8727771e0f093e26a2cd13df81a4fe37f17487b7 100644
--- a/Source/core/css/CSSStyleDeclaration.cpp
+++ b/Source/modules/webmidi/NavigatorMIDIAccess.cpp
@@ -29,18 +29,31 @@
*/
#include "config.h"
-#include "core/css/CSSStyleDeclaration.h"
+#include "modules/webmidi/MIDIAccessFuture.h"
+#include "modules/webmidi/NavigatorMIDIAccess.h"
-#include "core/css/CSSParser.h"
-#include "core/css/CSSPrimitiveValue.h"
-#include "core/css/CSSStyleSheet.h"
-#include "core/css/CSSValue.h"
#include "core/dom/Document.h"
-#include "core/dom/DocumentStyleSheetCollection.h"
-#include "core/dom/EventTarget.h"
-#include "core/html/HTMLStyleElement.h"
-#include "core/page/RuntimeCSSEnabled.h"
+#include "core/page/Frame.h"
+#include "core/page/Navigator.h"
namespace WebCore {
+NavigatorMIDIAccess::NavigatorMIDIAccess()
+{
+}
+
+NavigatorMIDIAccess::~NavigatorMIDIAccess()
+{
+}
+
+PassRefPtr<MIDIAccessFuture> NavigatorMIDIAccess::requestMIDIAccess(Navigator* navigator)
+{
+ printf("NavigatorMIDIAccess::requestMIDIAccess()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n");
+ Document* document = navigator->frame()->document();
+ printf("document = %p\n", document);
+
+ RefPtr<MIDIAccessFuture> future = MIDIAccessFuture::create(document);
+ return future;
+}
+
} // namespace WebCore
« no previous file with comments | « Source/modules/webmidi/NavigatorMIDIAccess.h ('k') | Source/modules/webmidi/NavigatorMIDIAccess.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698