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

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

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 #include "modules/presentation/PresentationReceiver.h" 5 #include "modules/presentation/PresentationReceiver.h"
6 6
7 #include "bindings/core/v8/ScriptPromise.h" 7 #include "bindings/core/v8/ScriptPromise.h"
8 #include "core/dom/DOMException.h" 8 #include "core/dom/DOMException.h"
9 #include "core/dom/Document.h" 9 #include "core/dom/Document.h"
10 #include "core/dom/ExceptionCode.h" 10 #include "core/dom/ExceptionCode.h"
11 #include "modules/EventTargetModules.h" 11 #include "modules/EventTargetModules.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 PresentationReceiver::PresentationReceiver(LocalFrame* frame) 15 PresentationReceiver::PresentationReceiver(LocalFrame* frame)
16 : DOMWindowProperty(frame) 16 : DOMWindowProperty(frame)
17 { 17 {
18 } 18 }
19 19
20 const AtomicString& PresentationReceiver::interfaceName() const 20 const AtomicString& PresentationReceiver::interfaceName() const
21 { 21 {
22 return EventTargetNames::PresentationReceiver; 22 return EventTargetNames::PresentationReceiver;
23 } 23 }
24 24
25 ExecutionContext* PresentationReceiver::executionContext() const 25 ExecutionContext* PresentationReceiver::getExecutionContext() const
26 { 26 {
27 return frame() ? frame()->document() : nullptr; 27 return frame() ? frame()->document() : nullptr;
28 } 28 }
29 29
30 ScriptPromise PresentationReceiver::getConnection(ScriptState* scriptState) 30 ScriptPromise PresentationReceiver::getConnection(ScriptState* scriptState)
31 { 31 {
32 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea te(NotSupportedError, "PresentationReceiver::getConnection() is not implemented yet.")); 32 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea te(NotSupportedError, "PresentationReceiver::getConnection() is not implemented yet."));
33 } 33 }
34 34
35 ScriptPromise PresentationReceiver::getConnections(ScriptState* scriptState) 35 ScriptPromise PresentationReceiver::getConnections(ScriptState* scriptState)
36 { 36 {
37 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea te(NotSupportedError, "PresentationReceiver::getConnections() is not implemented yet.")); 37 return ScriptPromise::rejectWithDOMException(scriptState, DOMException::crea te(NotSupportedError, "PresentationReceiver::getConnections() is not implemented yet."));
38 } 38 }
39 39
40 DEFINE_TRACE(PresentationReceiver) 40 DEFINE_TRACE(PresentationReceiver)
41 { 41 {
42 RefCountedGarbageCollectedEventTargetWithInlineData<PresentationReceiver>::t race(visitor); 42 RefCountedGarbageCollectedEventTargetWithInlineData<PresentationReceiver>::t race(visitor);
43 DOMWindowProperty::trace(visitor); 43 DOMWindowProperty::trace(visitor);
44 } 44 }
45 45
46 } // namespace blink 46 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698