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/RenderBox.h" | 143 #include "core/rendering/RenderBox.h" |
144 #include "core/rendering/RenderFrame.h" | 144 #include "core/rendering/RenderFrame.h" |
145 #include "core/rendering/RenderLayer.h" | 145 #include "core/rendering/RenderLayer.h" |
146 #include "core/rendering/RenderObject.h" | 146 #include "core/rendering/RenderObject.h" |
147 #include "core/rendering/RenderTreeAsText.h" | 147 #include "core/rendering/RenderTreeAsText.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 "modules/speech/SpeechRecognitionController.h" | 156 #include "modules/speech/SpeechRecognitionController.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 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1610 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : nullptr)); | 1611 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : nullptr)); |
1611 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); | 1612 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); |
1612 // FIXME: using WebViewClient as a temporary measure if there is no clie
nt on the WebFrame. | 1613 // FIXME: using WebViewClient as a temporary measure if there is no clie
nt on the WebFrame. |
1613 if (m_client && m_client->speechRecognizer()) | 1614 if (m_client && m_client->speechRecognizer()) |
1614 SpeechRecognitionController::provideTo(*m_frame, SpeechRecognitionCl
ientProxy::create(m_client->speechRecognizer())); | 1615 SpeechRecognitionController::provideTo(*m_frame, SpeechRecognitionCl
ientProxy::create(m_client->speechRecognizer())); |
1615 else | 1616 else |
1616 SpeechRecognitionController::provideTo(*m_frame, SpeechRecognitionCl
ientProxy::create(viewImpl()->client() ? viewImpl()->client()->speechRecognizer(
) : nullptr)); | 1617 SpeechRecognitionController::provideTo(*m_frame, SpeechRecognitionCl
ientProxy::create(viewImpl()->client() ? viewImpl()->client()->speechRecognizer(
) : nullptr)); |
1617 | 1618 |
1618 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 1619 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
1619 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : nullptr); | 1620 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : nullptr); |
| 1621 if (RuntimeEnabledFeatures::presentationEnabled()) |
| 1622 PresentationController::provideTo(*m_frame, m_client ? m_client->pre
sentationClient() : nullptr); |
1620 } | 1623 } |
1621 } | 1624 } |
1622 | 1625 |
1623 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH
ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall
backName) | 1626 PassRefPtrWillBeRawPtr<LocalFrame> WebLocalFrameImpl::initializeCoreFrame(FrameH
ost* host, FrameOwner* owner, const AtomicString& name, const AtomicString& fall
backName) |
1624 { | 1627 { |
1625 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie
ntImpl, host, owner); | 1628 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie
ntImpl, host, owner); |
1626 setCoreFrame(frame); | 1629 setCoreFrame(frame); |
1627 frame->tree().setName(name, fallbackName); | 1630 frame->tree().setName(name, fallbackName); |
1628 // We must call init() after m_frame is assigned because it is referenced | 1631 // We must call init() after m_frame is assigned because it is referenced |
1629 // during init(). Note that this may dispatch JS events; the frame may be | 1632 // during init(). Note that this may dispatch JS events; the frame may be |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2011 { | 2014 { |
2012 m_frameWidget = frameWidget; | 2015 m_frameWidget = frameWidget; |
2013 } | 2016 } |
2014 | 2017 |
2015 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const | 2018 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const |
2016 { | 2019 { |
2017 return m_frameWidget; | 2020 return m_frameWidget; |
2018 } | 2021 } |
2019 | 2022 |
2020 } // namespace blink | 2023 } // namespace blink |
OLD | NEW |