Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2786673002: Separate ContentSettingsClient out from LocalFrameClient (Closed)
Patch Set: dchecks Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "web/WebViewImpl.h" 31 #include "web/WebViewImpl.h"
32 32
33 #include <memory> 33 #include <memory>
34 #include "core/CSSValueKeywords.h" 34 #include "core/CSSValueKeywords.h"
35 #include "core/HTMLNames.h" 35 #include "core/HTMLNames.h"
36 #include "core/clipboard/DataObject.h" 36 #include "core/clipboard/DataObject.h"
37 #include "core/dom/ContextFeaturesClientImpl.h"
37 #include "core/dom/Document.h" 38 #include "core/dom/Document.h"
38 #include "core/dom/DocumentUserGestureToken.h" 39 #include "core/dom/DocumentUserGestureToken.h"
39 #include "core/dom/Fullscreen.h" 40 #include "core/dom/Fullscreen.h"
40 #include "core/dom/LayoutTreeBuilderTraversal.h" 41 #include "core/dom/LayoutTreeBuilderTraversal.h"
41 #include "core/dom/Text.h" 42 #include "core/dom/Text.h"
42 #include "core/editing/EditingUtilities.h" 43 #include "core/editing/EditingUtilities.h"
43 #include "core/editing/Editor.h" 44 #include "core/editing/Editor.h"
44 #include "core/editing/FrameSelection.h" 45 #include "core/editing/FrameSelection.h"
45 #include "core/editing/InputMethodController.h" 46 #include "core/editing/InputMethodController.h"
46 #include "core/editing/iterators/TextIterator.h" 47 #include "core/editing/iterators/TextIterator.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 #include "core/page/TouchDisambiguation.h" 84 #include "core/page/TouchDisambiguation.h"
84 #include "core/page/scrolling/TopDocumentRootScrollerController.h" 85 #include "core/page/scrolling/TopDocumentRootScrollerController.h"
85 #include "core/paint/PaintLayer.h" 86 #include "core/paint/PaintLayer.h"
86 #include "core/timing/DOMWindowPerformance.h" 87 #include "core/timing/DOMWindowPerformance.h"
87 #include "core/timing/Performance.h" 88 #include "core/timing/Performance.h"
88 #include "modules/accessibility/AXObject.h" 89 #include "modules/accessibility/AXObject.h"
89 #include "modules/accessibility/AXObjectCacheImpl.h" 90 #include "modules/accessibility/AXObjectCacheImpl.h"
90 #include "modules/credentialmanager/CredentialManagerClient.h" 91 #include "modules/credentialmanager/CredentialManagerClient.h"
91 #include "modules/encryptedmedia/MediaKeysController.h" 92 #include "modules/encryptedmedia/MediaKeysController.h"
92 #include "modules/storage/StorageNamespaceController.h" 93 #include "modules/storage/StorageNamespaceController.h"
94 #include "modules/webdatabase/DatabaseClient.h"
93 #include "modules/webgl/WebGLRenderingContext.h" 95 #include "modules/webgl/WebGLRenderingContext.h"
94 #include "platform/ContextMenu.h" 96 #include "platform/ContextMenu.h"
95 #include "platform/ContextMenuItem.h" 97 #include "platform/ContextMenuItem.h"
96 #include "platform/Cursor.h" 98 #include "platform/Cursor.h"
97 #include "platform/Histogram.h" 99 #include "platform/Histogram.h"
98 #include "platform/KeyboardCodes.h" 100 #include "platform/KeyboardCodes.h"
99 #include "platform/RuntimeEnabledFeatures.h" 101 #include "platform/RuntimeEnabledFeatures.h"
100 #include "platform/UserGestureIndicator.h" 102 #include "platform/UserGestureIndicator.h"
101 #include "platform/animation/CompositorAnimationHost.h" 103 #include "platform/animation/CompositorAnimationHost.h"
102 #include "platform/exported/WebActiveGestureAnimation.h" 104 #include "platform/exported/WebActiveGestureAnimation.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 #include "public/web/WebPluginAction.h" 146 #include "public/web/WebPluginAction.h"
145 #include "public/web/WebRange.h" 147 #include "public/web/WebRange.h"
146 #include "public/web/WebScopedUserGesture.h" 148 #include "public/web/WebScopedUserGesture.h"
147 #include "public/web/WebSelection.h" 149 #include "public/web/WebSelection.h"
148 #include "public/web/WebViewClient.h" 150 #include "public/web/WebViewClient.h"
149 #include "public/web/WebWindowFeatures.h" 151 #include "public/web/WebWindowFeatures.h"
150 #include "web/AnimationWorkletProxyClientImpl.h" 152 #include "web/AnimationWorkletProxyClientImpl.h"
151 #include "web/CompositionUnderlineVectorBuilder.h" 153 #include "web/CompositionUnderlineVectorBuilder.h"
152 #include "web/CompositorMutatorImpl.h" 154 #include "web/CompositorMutatorImpl.h"
153 #include "web/CompositorWorkerProxyClientImpl.h" 155 #include "web/CompositorWorkerProxyClientImpl.h"
154 #include "web/ContextFeaturesClientImpl.h"
155 #include "web/ContextMenuAllowedScope.h" 156 #include "web/ContextMenuAllowedScope.h"
156 #include "web/DatabaseClientImpl.h"
157 #include "web/DedicatedWorkerMessagingProxyProviderImpl.h" 157 #include "web/DedicatedWorkerMessagingProxyProviderImpl.h"
158 #include "web/DevToolsEmulator.h" 158 #include "web/DevToolsEmulator.h"
159 #include "web/FullscreenController.h" 159 #include "web/FullscreenController.h"
160 #include "web/InspectorOverlay.h" 160 #include "web/InspectorOverlay.h"
161 #include "web/LinkHighlightImpl.h" 161 #include "web/LinkHighlightImpl.h"
162 #include "web/PageOverlay.h" 162 #include "web/PageOverlay.h"
163 #include "web/PrerendererClientImpl.h" 163 #include "web/PrerendererClientImpl.h"
164 #include "web/ResizeViewportAnchor.h" 164 #include "web/ResizeViewportAnchor.h"
165 #include "web/RotationViewportAnchor.h" 165 #include "web/RotationViewportAnchor.h"
166 #include "web/SpeechRecognitionClientProxy.h" 166 #include "web/SpeechRecognitionClientProxy.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 pageClients.contextMenuClient = &m_contextMenuClientImpl; 394 pageClients.contextMenuClient = &m_contextMenuClientImpl;
395 pageClients.editorClient = &m_editorClientImpl; 395 pageClients.editorClient = &m_editorClientImpl;
396 pageClients.spellCheckerClient = &m_spellCheckerClientImpl; 396 pageClients.spellCheckerClient = &m_spellCheckerClientImpl;
397 397
398 m_page = Page::createOrdinary(pageClients); 398 m_page = Page::createOrdinary(pageClients);
399 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); 399 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl);
400 provideSpeechRecognitionTo( 400 provideSpeechRecognitionTo(
401 *m_page, SpeechRecognitionClientProxy::create( 401 *m_page, SpeechRecognitionClientProxy::create(
402 client ? client->speechRecognizer() : nullptr)); 402 client ? client->speechRecognizer() : nullptr));
403 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create()); 403 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create());
404 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); 404 provideDatabaseClientTo(*m_page, new DatabaseClient);
405 405
406 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); 406 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create());
407 m_page->setValidationMessageClient( 407 m_page->setValidationMessageClient(
408 ValidationMessageClientImpl::create(*this)); 408 ValidationMessageClientImpl::create(*this));
409 provideDedicatedWorkerMessagingProxyProviderTo( 409 provideDedicatedWorkerMessagingProxyProviderTo(
410 *m_page, DedicatedWorkerMessagingProxyProviderImpl::create(*m_page)); 410 *m_page, DedicatedWorkerMessagingProxyProviderImpl::create(*m_page));
411 StorageNamespaceController::provideStorageNamespaceTo(*m_page, 411 StorageNamespaceController::provideStorageNamespaceTo(*m_page,
412 &m_storageClientImpl); 412 &m_storageClientImpl);
413 413
414 setVisibilityState(visibilityState, true); 414 setVisibilityState(visibilityState, true);
(...skipping 3811 matching lines...) Expand 10 before | Expand all | Expand 10 after
4226 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) 4226 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame())
4227 return nullptr; 4227 return nullptr;
4228 return focusedFrame; 4228 return focusedFrame;
4229 } 4229 }
4230 4230
4231 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { 4231 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const {
4232 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4232 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4233 } 4233 }
4234 4234
4235 } // namespace blink 4235 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698