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

Side by Side Diff: third_party/WebKit/Source/modules/remoteplayback/RemotePlaybackAvailability.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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 RemotePlaybackAvailability_h 5 #ifndef RemotePlaybackAvailability_h
6 #define RemotePlaybackAvailability_h 6 #define RemotePlaybackAvailability_h
7 7
8 #include "bindings/core/v8/ActiveScriptWrappable.h" 8 #include "bindings/core/v8/ActiveScriptWrappable.h"
9 #include "core/dom/ContextLifecycleObserver.h" 9 #include "core/dom/ContextLifecycleObserver.h"
10 #include "core/events/EventTarget.h" 10 #include "core/events/EventTarget.h"
(...skipping 17 matching lines...) Expand all
28 ~RemotePlaybackAvailability() override; 28 ~RemotePlaybackAvailability() override;
29 29
30 // EventTarget implementation. 30 // EventTarget implementation.
31 const AtomicString& interfaceName() const override; 31 const AtomicString& interfaceName() const override;
32 ExecutionContext* getExecutionContext() const override; 32 ExecutionContext* getExecutionContext() const override;
33 33
34 void availabilityChanged(bool); 34 void availabilityChanged(bool);
35 35
36 bool value() const; 36 bool value() const;
37 37
38 // ActiveScriptWrappable implementation. 38 // ScriptWrappable implementation.
39 bool hasPendingActivity() const final; 39 bool hasPendingActivity() const final;
40 40
41 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); 41 DEFINE_ATTRIBUTE_EVENT_LISTENER(change);
42 42
43 DECLARE_VIRTUAL_TRACE(); 43 DECLARE_VIRTUAL_TRACE();
44 44
45 private: 45 private:
46 RemotePlaybackAvailability(ExecutionContext*, bool); 46 RemotePlaybackAvailability(ExecutionContext*, bool);
47 47
48 bool m_value; 48 bool m_value;
49 }; 49 };
50 50
51 } // namespace blink 51 } // namespace blink
52 52
53 #endif // RemotePlaybackAvailability_h 53 #endif // RemotePlaybackAvailability_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h ('k') | third_party/WebKit/Source/modules/sensor/Sensor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698