Chromium Code Reviews

Side by Side Diff: third_party/WebKit/Source/web/NotificationPermissionClientImpl.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.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "web/NotificationPermissionClientImpl.h" 5 #include "web/NotificationPermissionClientImpl.h"
6 6
7 #include "bindings/core/v8/ScriptPromiseResolver.h" 7 #include "bindings/core/v8/ScriptPromiseResolver.h"
8 #include "bindings/core/v8/ScriptState.h" 8 #include "bindings/core/v8/ScriptState.h"
9 #include "core/dom/Document.h" 9 #include "core/dom/Document.h"
10 #include "core/dom/ExecutionContext.h" 10 #include "core/dom/ExecutionContext.h"
(...skipping 43 matching lines...)
54 } 54 }
55 55
56 NotificationPermissionClientImpl::~NotificationPermissionClientImpl() 56 NotificationPermissionClientImpl::~NotificationPermissionClientImpl()
57 { 57 {
58 } 58 }
59 59
60 ScriptPromise NotificationPermissionClientImpl::requestPermission(ScriptState* s criptState, NotificationPermissionCallback* deprecatedCallback) 60 ScriptPromise NotificationPermissionClientImpl::requestPermission(ScriptState* s criptState, NotificationPermissionCallback* deprecatedCallback)
61 { 61 {
62 ASSERT(scriptState); 62 ASSERT(scriptState);
63 63
64 ExecutionContext* context = scriptState->executionContext(); 64 ExecutionContext* context = scriptState->getExecutionContext();
65 ASSERT(context && context->isDocument()); 65 ASSERT(context && context->isDocument());
66 66
67 Document* document = toDocument(context); 67 Document* document = toDocument(context);
68 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame() ); 68 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame() );
69 69
70 ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState) ; 70 ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState) ;
71 ScriptPromise promise = resolver->promise(); 71 ScriptPromise promise = resolver->promise();
72 72
73 webFrame->client()->requestNotificationPermission(WebSecurityOrigin(context- >securityOrigin()), new WebNotificationPermissionCallbackImpl(resolver, deprecat edCallback)); 73 webFrame->client()->requestNotificationPermission(WebSecurityOrigin(context- >getSecurityOrigin()), new WebNotificationPermissionCallbackImpl(resolver, depre catedCallback));
74 74
75 return promise; 75 return promise;
76 } 76 }
77 77
78 } // namespace blink 78 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/IndexedDBClientImpl.cpp ('k') | third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine