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

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

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/MIDIClient.h ('k') | Source/modules/webmidi/MIDIController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIController.h
diff --git a/Source/modules/webmidi/MIDIController.h b/Source/modules/webmidi/MIDIController.h
index 5a93bd853403139eda52d640bcdde8514f9c5e33..1535534bad57c285ba7dfaa7e10e6b88c0fa6e17 100644
--- a/Source/modules/webmidi/MIDIController.h
+++ b/Source/modules/webmidi/MIDIController.h
@@ -31,7 +31,7 @@
#ifndef MIDIController_h
#define MIDIController_h
-#include "core/page/Page.h"
+#include "core/frame/LocalFrame.h"
#include "platform/heap/Handle.h"
namespace WebCore {
@@ -39,19 +39,18 @@ namespace WebCore {
class MIDIAccess;
class MIDIClient;
-class MIDIController FINAL : public NoBaseWillBeGarbageCollectedFinalized<MIDIController>, public WillBeHeapSupplement<Page> {
- WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MIDIController);
+class MIDIController FINAL : public Supplement<LocalFrame> {
public:
virtual ~MIDIController();
void requestSysexPermission(PassRefPtrWillBeRawPtr<MIDIAccess>);
void cancelSysexPermissionRequest(MIDIAccess*);
- static PassOwnPtrWillBeRawPtr<MIDIController> create(PassOwnPtr<MIDIClient>);
+ static PassOwnPtr<MIDIController> create(PassOwnPtr<MIDIClient>);
static const char* supplementName();
- static MIDIController* from(Page* page) { return static_cast<MIDIController*>(WillBeHeapSupplement<Page>::from(page, supplementName())); }
+ static MIDIController* from(LocalFrame* frame) { return static_cast<MIDIController*>(Supplement<LocalFrame>::from(frame, supplementName())); }
- virtual void trace(Visitor* visitor) OVERRIDE { WillBeHeapSupplement<Page>::trace(visitor); }
+ virtual void trace(Visitor* visitor) OVERRIDE { Supplement<LocalFrame>::trace(visitor); }
protected:
explicit MIDIController(PassOwnPtr<MIDIClient>);
« no previous file with comments | « Source/modules/webmidi/MIDIClient.h ('k') | Source/modules/webmidi/MIDIController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698