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

Side by Side Diff: third_party/WebKit/Source/modules/webmidi/MIDIPort.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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // EventTarget 87 // EventTarget
88 const AtomicString& interfaceName() const override { 88 const AtomicString& interfaceName() const override {
89 return EventTargetNames::MIDIPort; 89 return EventTargetNames::MIDIPort;
90 } 90 }
91 ExecutionContext* getExecutionContext() const final; 91 ExecutionContext* getExecutionContext() const final;
92 92
93 // ScriptWrappable 93 // ScriptWrappable
94 bool hasPendingActivity() const final; 94 bool hasPendingActivity() const final;
95 95
96 // ContextLifecycleObserver 96 // ContextLifecycleObserver
97 void contextDestroyed() override; 97 void contextDestroyed(ExecutionContext*) override;
98 98
99 protected: 99 protected:
100 MIDIPort(MIDIAccess*, 100 MIDIPort(MIDIAccess*,
101 const String& id, 101 const String& id,
102 const String& manufacturer, 102 const String& manufacturer,
103 const String& name, 103 const String& name,
104 TypeCode, 104 TypeCode,
105 const String& version, 105 const String& version,
106 midi::mojom::PortState); 106 midi::mojom::PortState);
107 107
(...skipping 11 matching lines...) Expand all
119 TypeCode m_type; 119 TypeCode m_type;
120 String m_version; 120 String m_version;
121 TraceWrapperMember<MIDIAccess> m_access; 121 TraceWrapperMember<MIDIAccess> m_access;
122 midi::mojom::PortState m_state; 122 midi::mojom::PortState m_state;
123 ConnectionState m_connection; 123 ConnectionState m_connection;
124 }; 124 };
125 125
126 } // namespace blink 126 } // namespace blink
127 127
128 #endif // MIDIPort_h 128 #endif // MIDIPort_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698