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

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

Issue 317413003: Move MIDI code to hang off WebFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix webkit tests Created 6 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/MIDIController.h ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIController.cpp
diff --git a/Source/modules/webmidi/MIDIController.cpp b/Source/modules/webmidi/MIDIController.cpp
index c25bd6999b5ef0b4033cda968fa5f95a12d18a30..ba55d6ae29bb4beac9c4092e7ff1366d918fde6c 100644
--- a/Source/modules/webmidi/MIDIController.cpp
+++ b/Source/modules/webmidi/MIDIController.cpp
@@ -51,9 +51,9 @@ MIDIController::~MIDIController()
{
}
-PassOwnPtrWillBeRawPtr<MIDIController> MIDIController::create(PassOwnPtr<MIDIClient> client)
+PassOwnPtr<MIDIController> MIDIController::create(PassOwnPtr<MIDIClient> client)
{
- return adoptPtrWillBeNoop(new MIDIController(client));
+ return adoptPtr(new MIDIController(client));
}
void MIDIController::requestSysexPermission(PassRefPtrWillBeRawPtr<MIDIAccess> access)
@@ -66,9 +66,9 @@ void MIDIController::cancelSysexPermissionRequest(MIDIAccess* access)
m_client->cancelSysexPermissionRequest(access);
}
-void provideMIDITo(Page& page, PassOwnPtr<MIDIClient> client)
+void provideMIDITo(LocalFrame& frame, PassOwnPtr<MIDIClient> client)
{
- MIDIController::provideTo(page, MIDIController::supplementName(), MIDIController::create(client));
+ MIDIController::provideTo(frame, MIDIController::supplementName(), MIDIController::create(client));
}
} // namespace WebCore
« no previous file with comments | « Source/modules/webmidi/MIDIController.h ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698