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

Side by Side Diff: third_party/WebKit/Source/modules/presentation/PresentationRequest.h

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "core/dom/ActiveDOMObject.h" 9 #include "core/dom/ActiveDOMObject.h"
10 #include "core/events/EventTarget.h" 10 #include "core/events/EventTarget.h"
(...skipping 11 matching lines...) Expand all
22 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PresentationRequest); 22 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PresentationRequest);
23 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationRequest); 23 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationRequest);
24 DEFINE_WRAPPERTYPEINFO(); 24 DEFINE_WRAPPERTYPEINFO();
25 public: 25 public:
26 ~PresentationRequest() = default; 26 ~PresentationRequest() = default;
27 27
28 static PresentationRequest* create(ExecutionContext*, const String& url, Exc eptionState&); 28 static PresentationRequest* create(ExecutionContext*, const String& url, Exc eptionState&);
29 29
30 // EventTarget implementation. 30 // EventTarget implementation.
31 const AtomicString& interfaceName() const override; 31 const AtomicString& interfaceName() const override;
32 ExecutionContext* executionContext() const override; 32 ExecutionContext* getExecutionContext() const override;
33 33
34 // ActiveDOMObject implementation. 34 // ActiveDOMObject implementation.
35 bool hasPendingActivity() const; 35 bool hasPendingActivity() const;
36 36
37 ScriptPromise start(ScriptState*); 37 ScriptPromise start(ScriptState*);
38 ScriptPromise reconnect(ScriptState*, const String& id); 38 ScriptPromise reconnect(ScriptState*, const String& id);
39 ScriptPromise getAvailability(ScriptState*); 39 ScriptPromise getAvailability(ScriptState*);
40 40
41 const KURL& url() const; 41 const KURL& url() const;
42 42
43 DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable); 43 DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable);
44 44
45 DECLARE_VIRTUAL_TRACE(); 45 DECLARE_VIRTUAL_TRACE();
46 46
47 protected: 47 protected:
48 // EventTarget implementation. 48 // EventTarget implementation.
49 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB eRawPtr<EventListener>, const EventListenerOptions&) override; 49 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB eRawPtr<EventListener>, const EventListenerOptions&) override;
50 50
51 private: 51 private:
52 PresentationRequest(ExecutionContext*, const KURL&); 52 PresentationRequest(ExecutionContext*, const KURL&);
53 53
54 KURL m_url; 54 KURL m_url;
55 }; 55 };
56 56
57 } // namespace blink 57 } // namespace blink
58 58
59 #endif // PresentationRequest_h 59 #endif // PresentationRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698