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

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

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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
Index: Source/modules/webmidi/NavigatorWebMIDI.h
diff --git a/Source/modules/webmidi/NavigatorWebMIDI.h b/Source/modules/webmidi/NavigatorWebMIDI.h
index f904826513a65b0b8a6c3832d0a508977d41b140..dba8152c693bd9ed0e3fc0e7fba20738a49d12e0 100644
--- a/Source/modules/webmidi/NavigatorWebMIDI.h
+++ b/Source/modules/webmidi/NavigatorWebMIDI.h
@@ -43,9 +43,9 @@ class Navigator;
class NavigatorWebMIDI FINAL : public Supplement<Navigator>, public DOMWindowProperty {
public:
virtual ~NavigatorWebMIDI();
- static NavigatorWebMIDI* from(Navigator*);
+ static NavigatorWebMIDI& from(Navigator&);
- static PassRefPtrWillBeRawPtr<MIDIAccessPromise> requestMIDIAccess(Navigator*, const Dictionary&);
+ static PassRefPtrWillBeRawPtr<MIDIAccessPromise> requestMIDIAccess(Navigator&, const Dictionary&);
PassRefPtrWillBeRawPtr<MIDIAccessPromise> requestMIDIAccess(const Dictionary&);
private:

Powered by Google App Engine
This is Rietveld 408576698