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

Side by Side Diff: third_party/WebKit/Source/modules/presentation/PresentationRequest.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 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 PresentationRequest_h 5 #ifndef PresentationRequest_h
6 #define PresentationRequest_h 6 #define PresentationRequest_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/ActiveDOMObject.h" 10 #include "core/dom/ActiveDOMObject.h"
(...skipping 14 matching lines...) Expand all
25 DEFINE_WRAPPERTYPEINFO(); 25 DEFINE_WRAPPERTYPEINFO();
26 public: 26 public:
27 ~PresentationRequest() = default; 27 ~PresentationRequest() = default;
28 28
29 static PresentationRequest* create(ExecutionContext*, const String& url, Exc eptionState&); 29 static PresentationRequest* create(ExecutionContext*, const String& url, Exc eptionState&);
30 30
31 // EventTarget implementation. 31 // EventTarget implementation.
32 const AtomicString& interfaceName() const override; 32 const AtomicString& interfaceName() const override;
33 ExecutionContext* getExecutionContext() const override; 33 ExecutionContext* getExecutionContext() const override;
34 34
35 // ActiveScriptWrappable implementation. 35 // ScriptWrappable implementation.
36 bool hasPendingActivity() const final; 36 bool hasPendingActivity() const final;
37 37
38 ScriptPromise start(ScriptState*); 38 ScriptPromise start(ScriptState*);
39 ScriptPromise reconnect(ScriptState*, const String& id); 39 ScriptPromise reconnect(ScriptState*, const String& id);
40 ScriptPromise getAvailability(ScriptState*); 40 ScriptPromise getAvailability(ScriptState*);
41 41
42 const KURL& url() const; 42 const KURL& url() const;
43 43
44 DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable); 44 DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable);
45 45
46 DECLARE_VIRTUAL_TRACE(); 46 DECLARE_VIRTUAL_TRACE();
47 47
48 protected: 48 protected:
49 // EventTarget implementation. 49 // EventTarget implementation.
50 void addedEventListener(const AtomicString& eventType, RegisteredEventListen er&) override; 50 void addedEventListener(const AtomicString& eventType, RegisteredEventListen er&) override;
51 51
52 private: 52 private:
53 PresentationRequest(ExecutionContext*, const KURL&); 53 PresentationRequest(ExecutionContext*, const KURL&);
54 54
55 KURL m_url; 55 KURL m_url;
56 }; 56 };
57 57
58 } // namespace blink 58 } // namespace blink
59 59
60 #endif // PresentationRequest_h 60 #endif // PresentationRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698