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

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

Issue 804553003: Implement Permissions.query() and static PermissionStatus. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 #include "core/page/Chrome.h" 144 #include "core/page/Chrome.h"
145 #include "core/page/EventHandler.h" 145 #include "core/page/EventHandler.h"
146 #include "core/page/FocusController.h" 146 #include "core/page/FocusController.h"
147 #include "core/page/FrameTree.h" 147 #include "core/page/FrameTree.h"
148 #include "core/page/Page.h" 148 #include "core/page/Page.h"
149 #include "core/page/PrintContext.h" 149 #include "core/page/PrintContext.h"
150 #include "core/timing/DOMWindowPerformance.h" 150 #include "core/timing/DOMWindowPerformance.h"
151 #include "core/timing/Performance.h" 151 #include "core/timing/Performance.h"
152 #include "modules/geolocation/GeolocationController.h" 152 #include "modules/geolocation/GeolocationController.h"
153 #include "modules/notifications/NotificationPermissionClient.h" 153 #include "modules/notifications/NotificationPermissionClient.h"
154 #include "modules/permissions/PermissionController.h"
154 #include "modules/presentation/PresentationController.h" 155 #include "modules/presentation/PresentationController.h"
155 #include "modules/push_messaging/PushController.h" 156 #include "modules/push_messaging/PushController.h"
156 #include "modules/screen_orientation/ScreenOrientationController.h" 157 #include "modules/screen_orientation/ScreenOrientationController.h"
157 #include "platform/ScriptForbiddenScope.h" 158 #include "platform/ScriptForbiddenScope.h"
158 #include "platform/TraceEvent.h" 159 #include "platform/TraceEvent.h"
159 #include "platform/UserGestureIndicator.h" 160 #include "platform/UserGestureIndicator.h"
160 #include "platform/clipboard/ClipboardUtilities.h" 161 #include "platform/clipboard/ClipboardUtilities.h"
161 #include "platform/fonts/FontCache.h" 162 #include "platform/fonts/FontCache.h"
162 #include "platform/graphics/GraphicsContext.h" 163 #include "platform/graphics/GraphicsContext.h"
163 #include "platform/graphics/GraphicsLayerClient.h" 164 #include "platform/graphics/GraphicsLayerClient.h"
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after
1600 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); 1601 provideUserMediaTo(*m_frame, &m_userMediaClientImpl);
1601 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); 1602 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get());
1602 m_geolocationClientProxy->setController(GeolocationController::from(m_fr ame.get())); 1603 m_geolocationClientProxy->setController(GeolocationController::from(m_fr ame.get()));
1603 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web MIDIClient() : nullptr)); 1604 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web MIDIClient() : nullptr));
1604 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); 1605 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create());
1605 1606
1606 if (RuntimeEnabledFeatures::screenOrientationEnabled()) 1607 if (RuntimeEnabledFeatures::screenOrientationEnabled())
1607 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client ->webScreenOrientationClient() : nullptr); 1608 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client ->webScreenOrientationClient() : nullptr);
1608 if (RuntimeEnabledFeatures::presentationEnabled()) 1609 if (RuntimeEnabledFeatures::presentationEnabled())
1609 PresentationController::provideTo(*m_frame, m_client ? m_client->pre sentationClient() : nullptr); 1610 PresentationController::provideTo(*m_frame, m_client ? m_client->pre sentationClient() : nullptr);
1611 if (RuntimeEnabledFeatures::permissionsEnabled())
1612 PermissionController::provideTo(*m_frame, m_client ? m_client->permi ssionClient() : nullptr);
1610 } 1613 }
1611 } 1614 }
1612 1615
1613 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall backName) 1616 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall backName)
1614 { 1617 {
1615 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie ntImpl, host, owner); 1618 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie ntImpl, host, owner);
1616 setCoreFrame(frame); 1619 setCoreFrame(frame);
1617 frame->tree().setName(name, fallbackName); 1620 frame->tree().setName(name, fallbackName);
1618 // We must call init() after m_frame is assigned because it is referenced 1621 // We must call init() after m_frame is assigned because it is referenced
1619 // during init(). Note that this may dispatch JS events; the frame may be 1622 // during init(). Note that this may dispatch JS events; the frame may be
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
2006 { 2009 {
2007 m_frameWidget = frameWidget; 2010 m_frameWidget = frameWidget;
2008 } 2011 }
2009 2012
2010 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const 2013 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const
2011 { 2014 {
2012 return m_frameWidget; 2015 return m_frameWidget;
2013 } 2016 }
2014 2017
2015 } // namespace blink 2018 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698