| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 #include "public/web/WebMeaningfulLayout.h" | 141 #include "public/web/WebMeaningfulLayout.h" |
| 142 #include "public/web/WebMediaPlayerAction.h" | 142 #include "public/web/WebMediaPlayerAction.h" |
| 143 #include "public/web/WebNode.h" | 143 #include "public/web/WebNode.h" |
| 144 #include "public/web/WebPlugin.h" | 144 #include "public/web/WebPlugin.h" |
| 145 #include "public/web/WebPluginAction.h" | 145 #include "public/web/WebPluginAction.h" |
| 146 #include "public/web/WebRange.h" | 146 #include "public/web/WebRange.h" |
| 147 #include "public/web/WebScopedUserGesture.h" | 147 #include "public/web/WebScopedUserGesture.h" |
| 148 #include "public/web/WebSelection.h" | 148 #include "public/web/WebSelection.h" |
| 149 #include "public/web/WebViewClient.h" | 149 #include "public/web/WebViewClient.h" |
| 150 #include "public/web/WebWindowFeatures.h" | 150 #include "public/web/WebWindowFeatures.h" |
| 151 #include "web/AnimationWorkletProxyClientImpl.h" |
| 151 #include "web/CompositionUnderlineVectorBuilder.h" | 152 #include "web/CompositionUnderlineVectorBuilder.h" |
| 152 #include "web/CompositorMutatorImpl.h" | 153 #include "web/CompositorMutatorImpl.h" |
| 153 #include "web/CompositorProxyClientImpl.h" | 154 #include "web/CompositorWorkerProxyClientImpl.h" |
| 154 #include "web/ContextFeaturesClientImpl.h" | 155 #include "web/ContextFeaturesClientImpl.h" |
| 155 #include "web/ContextMenuAllowedScope.h" | 156 #include "web/ContextMenuAllowedScope.h" |
| 156 #include "web/DatabaseClientImpl.h" | 157 #include "web/DatabaseClientImpl.h" |
| 157 #include "web/DedicatedWorkerMessagingProxyProviderImpl.h" | 158 #include "web/DedicatedWorkerMessagingProxyProviderImpl.h" |
| 158 #include "web/DevToolsEmulator.h" | 159 #include "web/DevToolsEmulator.h" |
| 159 #include "web/FullscreenController.h" | 160 #include "web/FullscreenController.h" |
| 160 #include "web/InspectorOverlay.h" | 161 #include "web/InspectorOverlay.h" |
| 161 #include "web/LinkHighlightImpl.h" | 162 #include "web/LinkHighlightImpl.h" |
| 162 #include "web/PageOverlay.h" | 163 #include "web/PageOverlay.h" |
| 163 #include "web/PrerendererClientImpl.h" | 164 #include "web/PrerendererClientImpl.h" |
| (...skipping 3985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4149 } | 4150 } |
| 4150 | 4151 |
| 4151 void WebViewImpl::forceNextWebGLContextCreationToFail() { | 4152 void WebViewImpl::forceNextWebGLContextCreationToFail() { |
| 4152 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); | 4153 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); |
| 4153 } | 4154 } |
| 4154 | 4155 |
| 4155 void WebViewImpl::forceNextDrawingBufferCreationToFail() { | 4156 void WebViewImpl::forceNextDrawingBufferCreationToFail() { |
| 4156 DrawingBuffer::forceNextDrawingBufferCreationToFail(); | 4157 DrawingBuffer::forceNextDrawingBufferCreationToFail(); |
| 4157 } | 4158 } |
| 4158 | 4159 |
| 4159 CompositorProxyClient* WebViewImpl::createCompositorProxyClient() { | 4160 CompositorMutatorImpl& WebViewImpl::mutator() { |
| 4160 if (!m_mutator) { | 4161 if (!m_mutator) { |
| 4161 std::unique_ptr<CompositorMutatorClient> mutatorClient = | 4162 std::unique_ptr<CompositorMutatorClient> mutatorClient = |
| 4162 CompositorMutatorImpl::createClient(); | 4163 CompositorMutatorImpl::createClient(); |
| 4163 m_mutator = static_cast<CompositorMutatorImpl*>(mutatorClient->mutator()); | 4164 m_mutator = static_cast<CompositorMutatorImpl*>(mutatorClient->mutator()); |
| 4164 m_layerTreeView->setMutatorClient(std::move(mutatorClient)); | 4165 m_layerTreeView->setMutatorClient(std::move(mutatorClient)); |
| 4165 } | 4166 } |
| 4166 return new CompositorProxyClientImpl(m_mutator); | 4167 |
| 4168 return *m_mutator; |
| 4169 } |
| 4170 |
| 4171 CompositorWorkerProxyClient* WebViewImpl::createCompositorWorkerProxyClient() { |
| 4172 return new CompositorWorkerProxyClientImpl(&mutator()); |
| 4173 } |
| 4174 |
| 4175 AnimationWorkletProxyClient* WebViewImpl::createAnimationWorkletProxyClient() { |
| 4176 return new AnimationWorkletProxyClientImpl(&mutator()); |
| 4167 } | 4177 } |
| 4168 | 4178 |
| 4169 void WebViewImpl::updatePageOverlays() { | 4179 void WebViewImpl::updatePageOverlays() { |
| 4170 if (m_pageColorOverlay) | 4180 if (m_pageColorOverlay) |
| 4171 m_pageColorOverlay->update(); | 4181 m_pageColorOverlay->update(); |
| 4172 if (InspectorOverlay* overlay = inspectorOverlay()) { | 4182 if (InspectorOverlay* overlay = inspectorOverlay()) { |
| 4173 PageOverlay* inspectorPageOverlay = overlay->pageOverlay(); | 4183 PageOverlay* inspectorPageOverlay = overlay->pageOverlay(); |
| 4174 if (inspectorPageOverlay) | 4184 if (inspectorPageOverlay) |
| 4175 inspectorPageOverlay->update(); | 4185 inspectorPageOverlay->update(); |
| 4176 } | 4186 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 4194 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) | 4204 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) |
| 4195 return nullptr; | 4205 return nullptr; |
| 4196 return focusedFrame; | 4206 return focusedFrame; |
| 4197 } | 4207 } |
| 4198 | 4208 |
| 4199 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { | 4209 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { |
| 4200 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4210 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
| 4201 } | 4211 } |
| 4202 | 4212 |
| 4203 } // namespace blink | 4213 } // namespace blink |
| OLD | NEW |