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

Side by Side Diff: third_party/WebKit/Source/modules/mediastream/MediaDevices.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MediaDevices_h 5 #ifndef MediaDevices_h
6 #define MediaDevices_h 6 #define MediaDevices_h
7 7
8 #include "bindings/core/v8/ActiveScriptWrappable.h" 8 #include "bindings/core/v8/ActiveScriptWrappable.h"
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "core/dom/SuspendableObject.h" 10 #include "core/dom/SuspendableObject.h"
(...skipping 30 matching lines...) Expand all
41 41
42 // EventTarget overrides. 42 // EventTarget overrides.
43 const AtomicString& interfaceName() const override; 43 const AtomicString& interfaceName() const override;
44 ExecutionContext* getExecutionContext() const override; 44 ExecutionContext* getExecutionContext() const override;
45 void removeAllEventListeners() override; 45 void removeAllEventListeners() override;
46 46
47 // ScriptWrappable 47 // ScriptWrappable
48 bool hasPendingActivity() const override; 48 bool hasPendingActivity() const override;
49 49
50 // SuspendableObject overrides. 50 // SuspendableObject overrides.
51 void contextDestroyed() override; 51 void contextDestroyed(ExecutionContext*) override;
52 void suspend() override; 52 void suspend() override;
53 void resume() override; 53 void resume() override;
54 54
55 DECLARE_VIRTUAL_TRACE(); 55 DECLARE_VIRTUAL_TRACE();
56 56
57 DEFINE_ATTRIBUTE_EVENT_LISTENER(devicechange); 57 DEFINE_ATTRIBUTE_EVENT_LISTENER(devicechange);
58 58
59 protected: 59 protected:
60 // EventTarget overrides. 60 // EventTarget overrides.
61 void addedEventListener(const AtomicString& eventType, 61 void addedEventListener(const AtomicString& eventType,
(...skipping 12 matching lines...) Expand all
74 74
75 bool m_observing; 75 bool m_observing;
76 bool m_stopped; 76 bool m_stopped;
77 Member<AsyncMethodRunner<MediaDevices>> m_dispatchScheduledEventRunner; 77 Member<AsyncMethodRunner<MediaDevices>> m_dispatchScheduledEventRunner;
78 HeapVector<Member<Event>> m_scheduledEvents; 78 HeapVector<Member<Event>> m_scheduledEvents;
79 }; 79 };
80 80
81 } // namespace blink 81 } // namespace blink
82 82
83 #endif 83 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698