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

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

Issue 1942723004: Change EventTarget callback APIs for add/RemoveEventListenerInternal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win32 signed/unsigned issue Created 4 years, 7 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 29 matching lines...) Expand all
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 bool addEventListenerInternal(const AtomicString& eventType, EventListener*, const EventListenerOptions&) 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