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

Side by Side Diff: Source/modules/webmidi/MIDIAccess.h

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 29 matching lines...) Expand all
40 #include "modules/webmidi/MIDIOutput.h" 40 #include "modules/webmidi/MIDIOutput.h"
41 #include "wtf/RefCounted.h" 41 #include "wtf/RefCounted.h"
42 #include "wtf/RefPtr.h" 42 #include "wtf/RefPtr.h"
43 #include "wtf/Vector.h" 43 #include "wtf/Vector.h"
44 44
45 namespace WebCore { 45 namespace WebCore {
46 46
47 class ScriptExecutionContext; 47 class ScriptExecutionContext;
48 class MIDIAccessPromise; 48 class MIDIAccessPromise;
49 49
50 class MIDIAccess : public RefCounted<MIDIAccess>, public ScriptWrappable, public ActiveDOMObject, public EventTarget, public MIDIAccessorClient { 50 class MIDIAccess : public EventTarget, public RefCounted<MIDIAccess>, public Scr iptWrappable, public ActiveDOMObject, public MIDIAccessorClient {
51 public: 51 public:
52 virtual ~MIDIAccess(); 52 virtual ~MIDIAccess();
53 static PassRefPtr<MIDIAccess> create(ScriptExecutionContext*, MIDIAccessProm ise*); 53 static PassRefPtr<MIDIAccess> create(ScriptExecutionContext*, MIDIAccessProm ise*);
54 54
55 MIDIInputVector inputs() const { return m_inputs; } 55 MIDIInputVector inputs() const { return m_inputs; }
56 MIDIOutputVector outputs() const { return m_outputs; } 56 MIDIOutputVector outputs() const { return m_outputs; }
57 57
58 using RefCounted<MIDIAccess>::ref; 58 using RefCounted<MIDIAccess>::ref;
59 using RefCounted<MIDIAccess>::deref; 59 using RefCounted<MIDIAccess>::deref;
60 60
(...skipping 29 matching lines...) Expand all
90 EventTargetData m_eventTargetData; 90 EventTargetData m_eventTargetData;
91 MIDIAccessPromise* m_promise; 91 MIDIAccessPromise* m_promise;
92 92
93 OwnPtr<MIDIAccessor> m_accessor; 93 OwnPtr<MIDIAccessor> m_accessor;
94 bool m_hasAccess; 94 bool m_hasAccess;
95 }; 95 };
96 96
97 } // namespace WebCore 97 } // namespace WebCore
98 98
99 #endif // MIDIAccess_h 99 #endif // MIDIAccess_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698