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

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

Issue 2265873003: binding: Moves hasPendingActivity from ActiveScriptWrappable to ScriptWrappable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments. Created 4 years, 3 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
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 EventListener* onstatechange(); 69 EventListener* onstatechange();
70 void setOnstatechange(EventListener*); 70 void setOnstatechange(EventListener*);
71 71
72 bool sysexEnabled() const { return m_sysexEnabled; } 72 bool sysexEnabled() const { return m_sysexEnabled; }
73 73
74 // EventTarget 74 // EventTarget
75 const AtomicString& interfaceName() const override { return EventTargetNames ::MIDIAccess; } 75 const AtomicString& interfaceName() const override { return EventTargetNames ::MIDIAccess; }
76 ExecutionContext* getExecutionContext() const override { return ActiveDOMObj ect::getExecutionContext(); } 76 ExecutionContext* getExecutionContext() const override { return ActiveDOMObj ect::getExecutionContext(); }
77 77
78 // ActiveScriptWrappable 78 // ScriptWrappable
79 bool hasPendingActivity() const final; 79 bool hasPendingActivity() const final;
80 80
81 // ActiveDOMObject 81 // ActiveDOMObject
82 void stop() override; 82 void stop() override;
83 83
84 // MIDIAccessorClient 84 // MIDIAccessorClient
85 void didAddInputPort(const String& id, const String& manufacturer, const Str ing& name, const String& version, MIDIAccessor::MIDIPortState) override; 85 void didAddInputPort(const String& id, const String& manufacturer, const Str ing& name, const String& version, MIDIAccessor::MIDIPortState) override;
86 void didAddOutputPort(const String& id, const String& manufacturer, const St ring& name, const String& version, MIDIAccessor::MIDIPortState) override; 86 void didAddOutputPort(const String& id, const String& manufacturer, const St ring& name, const String& version, MIDIAccessor::MIDIPortState) override;
87 void didSetInputPortState(unsigned portIndex, MIDIAccessor::MIDIPortState) o verride; 87 void didSetInputPortState(unsigned portIndex, MIDIAccessor::MIDIPortState) o verride;
88 void didSetOutputPortState(unsigned portIndex, MIDIAccessor::MIDIPortState) override; 88 void didSetOutputPortState(unsigned portIndex, MIDIAccessor::MIDIPortState) override;
(...skipping 20 matching lines...) Expand all
109 std::unique_ptr<MIDIAccessor> m_accessor; 109 std::unique_ptr<MIDIAccessor> m_accessor;
110 bool m_sysexEnabled; 110 bool m_sysexEnabled;
111 bool m_hasPendingActivity; 111 bool m_hasPendingActivity;
112 HeapVector<Member<MIDIInput>> m_inputs; 112 HeapVector<Member<MIDIInput>> m_inputs;
113 HeapVector<Member<MIDIOutput>> m_outputs; 113 HeapVector<Member<MIDIOutput>> m_outputs;
114 }; 114 };
115 115
116 } // namespace blink 116 } // namespace blink
117 117
118 #endif // MIDIAccess_h 118 #endif // MIDIAccess_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.h ('k') | third_party/WebKit/Source/modules/webmidi/MIDIPort.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698