| 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/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/push_messaging/PushController.h" | 153 #include "modules/push_messaging/PushController.h" |
| 154 #include "modules/screen_orientation/ScreenOrientationController.h" | 154 #include "modules/screen_orientation/ScreenOrientationController.h" |
| 155 #include "modules/speech/SpeechRecognitionController.h" |
| 155 #include "platform/TraceEvent.h" | 156 #include "platform/TraceEvent.h" |
| 156 #include "platform/UserGestureIndicator.h" | 157 #include "platform/UserGestureIndicator.h" |
| 157 #include "platform/clipboard/ClipboardUtilities.h" | 158 #include "platform/clipboard/ClipboardUtilities.h" |
| 158 #include "platform/fonts/FontCache.h" | 159 #include "platform/fonts/FontCache.h" |
| 159 #include "platform/graphics/GraphicsContext.h" | 160 #include "platform/graphics/GraphicsContext.h" |
| 160 #include "platform/graphics/GraphicsLayerClient.h" | 161 #include "platform/graphics/GraphicsLayerClient.h" |
| 161 #include "platform/graphics/skia/SkiaUtils.h" | 162 #include "platform/graphics/skia/SkiaUtils.h" |
| 162 #include "platform/heap/Handle.h" | 163 #include "platform/heap/Handle.h" |
| 163 #include "platform/network/ResourceRequest.h" | 164 #include "platform/network/ResourceRequest.h" |
| 164 #include "platform/scroll/ScrollTypes.h" | 165 #include "platform/scroll/ScrollTypes.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 187 #include "public/web/WebInputElement.h" | 188 #include "public/web/WebInputElement.h" |
| 188 #include "public/web/WebNode.h" | 189 #include "public/web/WebNode.h" |
| 189 #include "public/web/WebPerformance.h" | 190 #include "public/web/WebPerformance.h" |
| 190 #include "public/web/WebPlugin.h" | 191 #include "public/web/WebPlugin.h" |
| 191 #include "public/web/WebPrintParams.h" | 192 #include "public/web/WebPrintParams.h" |
| 192 #include "public/web/WebPrintPresetOptions.h" | 193 #include "public/web/WebPrintPresetOptions.h" |
| 193 #include "public/web/WebRange.h" | 194 #include "public/web/WebRange.h" |
| 194 #include "public/web/WebScriptSource.h" | 195 #include "public/web/WebScriptSource.h" |
| 195 #include "public/web/WebSecurityOrigin.h" | 196 #include "public/web/WebSecurityOrigin.h" |
| 196 #include "public/web/WebSerializedScriptValue.h" | 197 #include "public/web/WebSerializedScriptValue.h" |
| 198 #include "public/web/WebViewClient.h" |
| 197 #include "web/AssociatedURLLoader.h" | 199 #include "web/AssociatedURLLoader.h" |
| 198 #include "web/CompositionUnderlineVectorBuilder.h" | 200 #include "web/CompositionUnderlineVectorBuilder.h" |
| 199 #include "web/FindInPageCoordinates.h" | 201 #include "web/FindInPageCoordinates.h" |
| 200 #include "web/GeolocationClientProxy.h" | 202 #include "web/GeolocationClientProxy.h" |
| 201 #include "web/LocalFileSystemClient.h" | 203 #include "web/LocalFileSystemClient.h" |
| 202 #include "web/MIDIClientProxy.h" | 204 #include "web/MIDIClientProxy.h" |
| 203 #include "web/NotificationPermissionClientImpl.h" | 205 #include "web/NotificationPermissionClientImpl.h" |
| 204 #include "web/PageOverlay.h" | 206 #include "web/PageOverlay.h" |
| 205 #include "web/SharedWorkerRepositoryClientImpl.h" | 207 #include "web/SharedWorkerRepositoryClientImpl.h" |
| 208 #include "web/SpeechRecognitionClientProxy.h" |
| 206 #include "web/SuspendableScriptExecutor.h" | 209 #include "web/SuspendableScriptExecutor.h" |
| 207 #include "web/TextFinder.h" | 210 #include "web/TextFinder.h" |
| 208 #include "web/WebDataSourceImpl.h" | 211 #include "web/WebDataSourceImpl.h" |
| 209 #include "web/WebDevToolsAgentPrivate.h" | 212 #include "web/WebDevToolsAgentPrivate.h" |
| 210 #include "web/WebPluginContainerImpl.h" | 213 #include "web/WebPluginContainerImpl.h" |
| 211 #include "web/WebRemoteFrameImpl.h" | 214 #include "web/WebRemoteFrameImpl.h" |
| 212 #include "web/WebViewImpl.h" | 215 #include "web/WebViewImpl.h" |
| 213 #include "wtf/CurrentTime.h" | 216 #include "wtf/CurrentTime.h" |
| 214 #include "wtf/HashMap.h" | 217 #include "wtf/HashMap.h" |
| 215 #include <algorithm> | 218 #include <algorithm> |
| (...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1591 | 1594 |
| 1592 // FIXME: we shouldn't add overhead to every frame by registering these obje
cts when they're not used. | 1595 // FIXME: we shouldn't add overhead to every frame by registering these obje
cts when they're not used. |
| 1593 if (m_frame) { | 1596 if (m_frame) { |
| 1594 if (m_client) | 1597 if (m_client) |
| 1595 providePushControllerTo(*m_frame, m_client->pushClient()); | 1598 providePushControllerTo(*m_frame, m_client->pushClient()); |
| 1596 | 1599 |
| 1597 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionCl
ientImpl::create()); | 1600 provideNotificationPermissionClientTo(*m_frame, NotificationPermissionCl
ientImpl::create()); |
| 1598 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); | 1601 provideUserMediaTo(*m_frame, &m_userMediaClientImpl); |
| 1599 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); | 1602 provideGeolocationTo(*m_frame, m_geolocationClientProxy.get()); |
| 1600 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); | 1603 m_geolocationClientProxy->setController(GeolocationController::from(m_fr
ame.get())); |
| 1601 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : 0)); | 1604 provideMIDITo(*m_frame, MIDIClientProxy::create(m_client ? m_client->web
MIDIClient() : nullptr)); |
| 1602 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); | 1605 provideLocalFileSystemTo(*m_frame, LocalFileSystemClient::create()); |
| 1606 // FIXME: using WebViewClient as a temporary measure if there is no clie
nt on the WebFrame. |
| 1607 if (m_client && m_client->speechRecognizer()) |
| 1608 SpeechRecognitionController::provideTo(*m_frame, SpeechRecognitionCl
ientProxy::create(m_client->speechRecognizer())); |
| 1609 else |
| 1610 SpeechRecognitionController::provideTo(*m_frame, SpeechRecognitionCl
ientProxy::create(viewImpl()->client() ? viewImpl()->client()->speechRecognizer(
) : nullptr)); |
| 1603 | 1611 |
| 1604 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | 1612 if (RuntimeEnabledFeatures::screenOrientationEnabled()) |
| 1605 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : 0); | 1613 ScreenOrientationController::provideTo(*m_frame, m_client ? m_client
->webScreenOrientationClient() : nullptr); |
| 1606 } | 1614 } |
| 1607 } | 1615 } |
| 1608 | 1616 |
| 1609 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) |
| 1610 { | 1618 { |
| 1611 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie
ntImpl, host, owner); | 1619 RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(&m_frameLoaderClie
ntImpl, host, owner); |
| 1612 setCoreFrame(frame); | 1620 setCoreFrame(frame); |
| 1613 frame->tree().setName(name, fallbackName); | 1621 frame->tree().setName(name, fallbackName); |
| 1614 // 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 |
| 1615 // 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1987 | 1995 |
| 1988 void WebLocalFrameImpl::invalidateAll() const | 1996 void WebLocalFrameImpl::invalidateAll() const |
| 1989 { | 1997 { |
| 1990 ASSERT(frame() && frame()->view()); | 1998 ASSERT(frame() && frame()->view()); |
| 1991 FrameView* view = frame()->view(); | 1999 FrameView* view = frame()->view(); |
| 1992 view->invalidateRect(view->frameRect()); | 2000 view->invalidateRect(view->frameRect()); |
| 1993 invalidateScrollbar(); | 2001 invalidateScrollbar(); |
| 1994 } | 2002 } |
| 1995 | 2003 |
| 1996 } // namespace blink | 2004 } // namespace blink |
| OLD | NEW |