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

Unified Diff: Source/modules/webmidi/MIDIAccess.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 | « no previous file | Source/modules/webmidi/MIDIClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIAccess.cpp
diff --git a/Source/modules/webmidi/MIDIAccess.cpp b/Source/modules/webmidi/MIDIAccess.cpp
index d5f3ff5f35f0286c5d9e46050b65b444bbd946dc..ea31cc1053c5a3c9ca4240a52478615e529d4717 100644
--- a/Source/modules/webmidi/MIDIAccess.cpp
+++ b/Source/modules/webmidi/MIDIAccess.cpp
@@ -174,7 +174,7 @@ void MIDIAccess::stop()
if (m_state == Requesting) {
Document* document = toDocument(executionContext());
ASSERT(document);
- MIDIController* controller = MIDIController::from(document->page());
+ MIDIController* controller = MIDIController::from(document->frame());
ASSERT(controller);
controller->cancelSysexPermissionRequest(this);
}
@@ -205,7 +205,7 @@ ScriptPromise MIDIAccess::startRequest(ScriptState* scriptState)
}
Document* document = toDocument(executionContext());
ASSERT(document);
- MIDIController* controller = MIDIController::from(document->page());
+ MIDIController* controller = MIDIController::from(document->frame());
if (controller) {
controller->requestSysexPermission(this);
} else {
« no previous file with comments | « no previous file | Source/modules/webmidi/MIDIClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698