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

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

Issue 2786673002: Separate ContentSettingsClient out from LocalFrameClient (Closed)
Patch Set: added class-level comment 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
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | third_party/WebKit/public/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 pageClients.contextMenuClient = &m_contextMenuClientImpl; 398 pageClients.contextMenuClient = &m_contextMenuClientImpl;
399 pageClients.editorClient = &m_editorClientImpl; 399 pageClients.editorClient = &m_editorClientImpl;
400 pageClients.spellCheckerClient = &m_spellCheckerClientImpl; 400 pageClients.spellCheckerClient = &m_spellCheckerClientImpl;
401 401
402 m_page = Page::createOrdinary(pageClients); 402 m_page = Page::createOrdinary(pageClients);
403 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); 403 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl);
404 provideSpeechRecognitionTo( 404 provideSpeechRecognitionTo(
405 *m_page, SpeechRecognitionClientProxy::create( 405 *m_page, SpeechRecognitionClientProxy::create(
406 client ? client->speechRecognizer() : nullptr)); 406 client ? client->speechRecognizer() : nullptr));
407 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create()); 407 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create());
408 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); 408 provideDatabaseClientTo(*m_page, new DatabaseClient);
409 409
410 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); 410 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create());
411 m_page->setValidationMessageClient( 411 m_page->setValidationMessageClient(
412 ValidationMessageClientImpl::create(*this)); 412 ValidationMessageClientImpl::create(*this));
413 provideDedicatedWorkerMessagingProxyProviderTo( 413 provideDedicatedWorkerMessagingProxyProviderTo(
414 *m_page, DedicatedWorkerMessagingProxyProviderImpl::create(*m_page)); 414 *m_page, DedicatedWorkerMessagingProxyProviderImpl::create(*m_page));
415 StorageNamespaceController::provideStorageNamespaceTo(*m_page, 415 StorageNamespaceController::provideStorageNamespaceTo(*m_page,
416 &m_storageClientImpl); 416 &m_storageClientImpl);
417 417
418 setVisibilityState(visibilityState, true); 418 setVisibilityState(visibilityState, true);
(...skipping 3811 matching lines...) Expand 10 before | Expand all | Expand 10 after
4230 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) 4230 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame())
4231 return nullptr; 4231 return nullptr;
4232 return focusedFrame; 4232 return focusedFrame;
4233 } 4233 }
4234 4234
4235 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { 4235 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const {
4236 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4236 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4237 } 4237 }
4238 4238
4239 } // namespace blink 4239 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | third_party/WebKit/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698