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

Side by Side Diff: Source/web/NotificationPermissionClientImpl.cpp

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/NotificationPermissionClientImpl.h ('k') | Source/web/NotificationPresenterImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "config.h" 5 #include "config.h"
6 #include "web/NotificationPermissionClientImpl.h" 6 #include "web/NotificationPermissionClientImpl.h"
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/ExecutionContext.h" 9 #include "core/dom/ExecutionContext.h"
10 #include "modules/notifications/Notification.h" 10 #include "modules/notifications/Notification.h"
11 #include "public/web/WebFrameClient.h" 11 #include "public/web/WebFrameClient.h"
12 #include "public/web/WebNotificationPermissionCallback.h" 12 #include "public/web/WebNotificationPermissionCallback.h"
13 #include "web/WebLocalFrameImpl.h" 13 #include "web/WebLocalFrameImpl.h"
14 14
15 using namespace WebCore; 15 using namespace blink;
16 16
17 namespace blink { 17 namespace blink {
18 18
19 namespace { 19 namespace {
20 20
21 class WebNotificationPermissionCallbackImpl : public WebNotificationPermissionCa llback { 21 class WebNotificationPermissionCallbackImpl : public WebNotificationPermissionCa llback {
22 public: 22 public:
23 WebNotificationPermissionCallbackImpl(ExecutionContext* executionContext, Pa ssOwnPtr<NotificationPermissionCallback> callback) 23 WebNotificationPermissionCallbackImpl(ExecutionContext* executionContext, Pa ssOwnPtr<NotificationPermissionCallback> callback)
24 : m_executionContext(executionContext) 24 : m_executionContext(executionContext)
25 , m_callback(callback) 25 , m_callback(callback)
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 ASSERT(context && context->isDocument()); 65 ASSERT(context && context->isDocument());
66 ASSERT(callback); 66 ASSERT(callback);
67 67
68 Document* document = toDocument(context); 68 Document* document = toDocument(context);
69 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame() ); 69 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(document->frame() );
70 70
71 webFrame->client()->requestNotificationPermission(WebSecurityOrigin(context- >securityOrigin()), new WebNotificationPermissionCallbackImpl(context, callback) ); 71 webFrame->client()->requestNotificationPermission(WebSecurityOrigin(context- >securityOrigin()), new WebNotificationPermissionCallbackImpl(context, callback) );
72 } 72 }
73 73
74 } // namespace blink 74 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/NotificationPermissionClientImpl.h ('k') | Source/web/NotificationPresenterImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698