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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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/app_banner/AppBannerController.h" | 152 #include "modules/app_banner/AppBannerController.h" |
153 #include "modules/geolocation/GeolocationController.h" | 153 #include "modules/geolocation/GeolocationController.h" |
154 #include "modules/notifications/NotificationPermissionClient.h" | 154 #include "modules/notifications/NotificationPermissionClient.h" |
| 155 #include "modules/permissions/PermissionController.h" |
155 #include "modules/presentation/PresentationController.h" | 156 #include "modules/presentation/PresentationController.h" |
156 #include "modules/push_messaging/PushController.h" | 157 #include "modules/push_messaging/PushController.h" |
157 #include "modules/screen_orientation/ScreenOrientationController.h" | 158 #include "modules/screen_orientation/ScreenOrientationController.h" |
158 #include "platform/ScriptForbiddenScope.h" | 159 #include "platform/ScriptForbiddenScope.h" |
159 #include "platform/TraceEvent.h" | 160 #include "platform/TraceEvent.h" |
160 #include "platform/UserGestureIndicator.h" | 161 #include "platform/UserGestureIndicator.h" |
161 #include "platform/clipboard/ClipboardUtilities.h" | 162 #include "platform/clipboard/ClipboardUtilities.h" |
162 #include "platform/fonts/FontCache.h" | 163 #include "platform/fonts/FontCache.h" |
163 #include "platform/graphics/GraphicsContext.h" | 164 #include "platform/graphics/GraphicsContext.h" |
164 #include "platform/graphics/GraphicsLayerClient.h" | 165 #include "platform/graphics/GraphicsLayerClient.h" |
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1601 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); | 1602 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); |
1602 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); | 1603 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); |
1603 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); | 1604 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); |
1604 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : nullptr)); | 1605 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : nullptr)); |
1605 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); | 1606 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); |
1606 | 1607 |
1607 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 1608 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
1608 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : nullptr); | 1609 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : nullptr); |
1609 if (RuntimeEnabledFeatures::presentationEnabled()) | 1610 if (RuntimeEnabledFeatures::presentationEnabled()) |
1610 PresentationController::provideTo(*m_frame, m_client ? m_client->pre
sentationClient() : nullptr); | 1611 PresentationController::provideTo(*m_frame, m_client ? m_client->pre
sentationClient() : nullptr); |
| 1612 if (RuntimeEnabledFeatures::permissionsEnabled()) |
| 1613 PermissionController::provideTo(*m_frame, m_client ? m_client->permi
ssionClient() : nullptr); |
1611 } | 1614 } |
1612 } | 1615 } |
1613 | 1616 |
1614 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH
ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall
backName) | 1617 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH
ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall
backName) |
1615 { | 1618 { |
1616 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie
ntImpl, host, owner); | 1619 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie
ntImpl, host, owner); |
1617 setCoreFrame(frame); | 1620 setCoreFrame(frame); |
1618 frame->tree().setName(name, fallbackName); | 1621 frame->tree().setName(name, fallbackName); |
1619 // We must call init() after m_frame is assigned because it is referenced | 1622 // We must call init() after m_frame is assigned because it is referenced |
1620 // during init(). Note that this may dispatch JS events; the frame may be | 1623 // during init(). Note that this may dispatch JS events; the frame may be |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2015 { | 2018 { |
2016 m_frameWidget = frameWidget; | 2019 m_frameWidget = frameWidget; |
2017 } | 2020 } |
2018 | 2021 |
2019 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const | 2022 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const |
2020 { | 2023 { |
2021 return m_frameWidget; | 2024 return m_frameWidget; |
2022 } | 2025 } |
2023 | 2026 |
2024 } // namespace blink | 2027 } // namespace blink |
OLD | NEW |