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

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

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 return EventTargetNames::MIDIAccess; 83 return EventTargetNames::MIDIAccess;
84 } 84 }
85 ExecutionContext* getExecutionContext() const override { 85 ExecutionContext* getExecutionContext() const override {
86 return ContextLifecycleObserver::getExecutionContext(); 86 return ContextLifecycleObserver::getExecutionContext();
87 } 87 }
88 88
89 // ScriptWrappable 89 // ScriptWrappable
90 bool hasPendingActivity() const final; 90 bool hasPendingActivity() const final;
91 91
92 // ContextLifecycleObserver 92 // ContextLifecycleObserver
93 void contextDestroyed() override; 93 void contextDestroyed(ExecutionContext*) override;
94 94
95 // MIDIAccessorClient 95 // MIDIAccessorClient
96 void didAddInputPort(const String& id, 96 void didAddInputPort(const String& id,
97 const String& manufacturer, 97 const String& manufacturer,
98 const String& name, 98 const String& name,
99 const String& version, 99 const String& version,
100 midi::mojom::PortState) override; 100 midi::mojom::PortState) override;
101 void didAddOutputPort(const String& id, 101 void didAddOutputPort(const String& id,
102 const String& manufacturer, 102 const String& manufacturer,
103 const String& name, 103 const String& name,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 std::unique_ptr<MIDIAccessor> m_accessor; 139 std::unique_ptr<MIDIAccessor> m_accessor;
140 bool m_sysexEnabled; 140 bool m_sysexEnabled;
141 bool m_hasPendingActivity; 141 bool m_hasPendingActivity;
142 HeapVector<Member<MIDIInput>> m_inputs; 142 HeapVector<Member<MIDIInput>> m_inputs;
143 HeapVector<Member<MIDIOutput>> m_outputs; 143 HeapVector<Member<MIDIOutput>> m_outputs;
144 }; 144 };
145 145
146 } // namespace blink 146 } // namespace blink
147 147
148 #endif // MIDIAccess_h 148 #endif // MIDIAccess_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698