OLD | NEW |
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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 #include "core/rendering/HitTestResult.h" | 143 #include "core/rendering/HitTestResult.h" |
144 #include "core/rendering/RenderBox.h" | 144 #include "core/rendering/RenderBox.h" |
145 #include "core/rendering/RenderFrame.h" | 145 #include "core/rendering/RenderFrame.h" |
146 #include "core/rendering/RenderLayer.h" | 146 #include "core/rendering/RenderLayer.h" |
147 #include "core/rendering/RenderObject.h" | 147 #include "core/rendering/RenderObject.h" |
148 #include "core/rendering/RenderView.h" | 148 #include "core/rendering/RenderView.h" |
149 #include "core/rendering/style/StyleInheritedData.h" | 149 #include "core/rendering/style/StyleInheritedData.h" |
150 #include "core/timing/Performance.h" | 150 #include "core/timing/Performance.h" |
151 #include "modules/geolocation/GeolocationController.h" | 151 #include "modules/geolocation/GeolocationController.h" |
152 #include "modules/notifications/NotificationPermissionClient.h" | 152 #include "modules/notifications/NotificationPermissionClient.h" |
| 153 #include "modules/presentation/PresentationController.h" |
153 #include "modules/push_messaging/PushController.h" | 154 #include "modules/push_messaging/PushController.h" |
154 #include "modules/screen_orientation/ScreenOrientationController.h" | 155 #include "modules/screen_orientation/ScreenOrientationController.h" |
155 #include "platform/ScriptForbiddenScope.h" | 156 #include "platform/ScriptForbiddenScope.h" |
156 #include "platform/TraceEvent.h" | 157 #include "platform/TraceEvent.h" |
157 #include "platform/UserGestureIndicator.h" | 158 #include "platform/UserGestureIndicator.h" |
158 #include "platform/clipboard/ClipboardUtilities.h" | 159 #include "platform/clipboard/ClipboardUtilities.h" |
159 #include "platform/fonts/FontCache.h" | 160 #include "platform/fonts/FontCache.h" |
160 #include "platform/graphics/GraphicsContext.h" | 161 #include "platform/graphics/GraphicsContext.h" |
161 #include "platform/graphics/GraphicsLayerClient.h" | 162 #include "platform/graphics/GraphicsLayerClient.h" |
162 #include "platform/graphics/skia/SkiaUtils.h" | 163 #include "platform/graphics/skia/SkiaUtils.h" |
(...skipping 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1608 | 1609 |
1609 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionCl
ientImpl::create()); | 1610 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionCl
ientImpl::create()); |
1610 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); | 1611 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); |
1611 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); | 1612 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); |
1612 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); | 1613 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); |
1613 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : nullptr)); | 1614 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : nullptr)); |
1614 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); | 1615 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); |
1615 | 1616 |
1616 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 1617 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
1617 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : nullptr); | 1618 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : nullptr); |
| 1619 if (RuntimeEnabledFeatures::presentationEnabled()) |
| 1620 PresentationController::provideTo(*m_frame, m_client ? m_client->pre
sentationClient() : nullptr); |
1618 } | 1621 } |
1619 } | 1622 } |
1620 | 1623 |
1621 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH
ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall
backName) | 1624 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH
ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall
backName) |
1622 { | 1625 { |
1623 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie
ntImpl, host, owner); | 1626 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie
ntImpl, host, owner); |
1624 setCoreFrame(frame); | 1627 setCoreFrame(frame); |
1625 frame->tree().setName(name, fallbackName); | 1628 frame->tree().setName(name, fallbackName); |
1626 // We must call init() after m_frame is assigned because it is referenced | 1629 // We must call init() after m_frame is assigned because it is referenced |
1627 // during init(). Note that this may dispatch JS events; the frame may be | 1630 // during init(). Note that this may dispatch JS events; the frame may be |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2010 { | 2013 { |
2011 m_frameWidget = frameWidget; | 2014 m_frameWidget = frameWidget; |
2012 } | 2015 } |
2013 | 2016 |
2014 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const | 2017 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const |
2015 { | 2018 { |
2016 return m_frameWidget; | 2019 return m_frameWidget; |
2017 } | 2020 } |
2018 | 2021 |
2019 } // namespace blink | 2022 } // namespace blink |
OLD | NEW |