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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 #include "modules/presentation/PresentationRequest.h" 5 #include "modules/presentation/PresentationRequest.h"
6 6
7 #include "bindings/core/v8/CallbackPromiseAdapter.h" 7 #include "bindings/core/v8/CallbackPromiseAdapter.h"
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "bindings/core/v8/ScriptPromiseResolver.h" 10 #include "bindings/core/v8/ScriptPromiseResolver.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const AtomicString& PresentationRequest::interfaceName() const 55 const AtomicString& PresentationRequest::interfaceName() const
56 { 56 {
57 return EventTargetNames::PresentationRequest; 57 return EventTargetNames::PresentationRequest;
58 } 58 }
59 59
60 ExecutionContext* PresentationRequest::executionContext() const 60 ExecutionContext* PresentationRequest::executionContext() const
61 { 61 {
62 return ActiveDOMObject::executionContext(); 62 return ActiveDOMObject::executionContext();
63 } 63 }
64 64
65 bool PresentationRequest::addEventListenerInternal(const AtomicString& eventType , PassRefPtrWillBeRawPtr<EventListener> listener, const EventListenerOptions& op tions) 65 bool PresentationRequest::addEventListenerInternal(const AtomicString& eventType , RawPtr<EventListener> listener, const EventListenerOptions& options)
66 { 66 {
67 if (eventType == EventTypeNames::connectionavailable) 67 if (eventType == EventTypeNames::connectionavailable)
68 UseCounter::count(executionContext(), UseCounter::PresentationRequestCon nectionAvailableEventListener); 68 UseCounter::count(executionContext(), UseCounter::PresentationRequestCon nectionAvailableEventListener);
69 69
70 return EventTarget::addEventListenerInternal(eventType, listener, options); 70 return EventTarget::addEventListenerInternal(eventType, listener, options);
71 } 71 }
72 72
73 bool PresentationRequest::hasPendingActivity() const 73 bool PresentationRequest::hasPendingActivity() const
74 { 74 {
75 if (!executionContext() || executionContext()->activeDOMObjectsAreStopped()) 75 if (!executionContext() || executionContext()->activeDOMObjectsAreStopped())
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 ActiveDOMObject::trace(visitor); 140 ActiveDOMObject::trace(visitor);
141 } 141 }
142 142
143 PresentationRequest::PresentationRequest(ExecutionContext* executionContext, con st KURL& url) 143 PresentationRequest::PresentationRequest(ExecutionContext* executionContext, con st KURL& url)
144 : ActiveDOMObject(executionContext) 144 : ActiveDOMObject(executionContext)
145 , m_url(url) 145 , m_url(url)
146 { 146 {
147 } 147 }
148 148
149 } // namespace blink 149 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698