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

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

Issue 2645303002: Use a new Supplement constructor for supplements in core/ (Closed)
Patch Set: temp Created 3 years, 11 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/PrerendererClientImpl.cpp ('k') | no next file » | 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 void WebViewImpl::setCredentialManagerClient( 317 void WebViewImpl::setCredentialManagerClient(
318 WebCredentialManagerClient* webCredentialManagerClient) { 318 WebCredentialManagerClient* webCredentialManagerClient) {
319 DCHECK(m_page); 319 DCHECK(m_page);
320 provideCredentialManagerClientTo( 320 provideCredentialManagerClientTo(
321 *m_page, new CredentialManagerClient(webCredentialManagerClient)); 321 *m_page, new CredentialManagerClient(webCredentialManagerClient));
322 } 322 }
323 323
324 void WebViewImpl::setPrerendererClient( 324 void WebViewImpl::setPrerendererClient(
325 WebPrerendererClient* prerendererClient) { 325 WebPrerendererClient* prerendererClient) {
326 DCHECK(m_page); 326 DCHECK(m_page);
327 providePrerendererClientTo(*m_page, 327 providePrerendererClientTo(
328 new PrerendererClientImpl(prerendererClient)); 328 *m_page, new PrerendererClientImpl(*m_page, prerendererClient));
329 } 329 }
330 330
331 void WebViewImpl::setSpellCheckClient(WebSpellCheckClient* spellCheckClient) { 331 void WebViewImpl::setSpellCheckClient(WebSpellCheckClient* spellCheckClient) {
332 m_spellCheckClient = spellCheckClient; 332 m_spellCheckClient = spellCheckClient;
333 } 333 }
334 334
335 // static 335 // static
336 HashSet<WebViewImpl*>& WebViewImpl::allInstances() { 336 HashSet<WebViewImpl*>& WebViewImpl::allInstances() {
337 DEFINE_STATIC_LOCAL(HashSet<WebViewImpl*>, allInstances, ()); 337 DEFINE_STATIC_LOCAL(HashSet<WebViewImpl*>, allInstances, ());
338 return allInstances; 338 return allInstances;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, DatabaseClientImpl::create());
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()); 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);
415 415
416 initializeLayerTreeView(); 416 initializeLayerTreeView();
417 417
418 m_devToolsEmulator = DevToolsEmulator::create(this); 418 m_devToolsEmulator = DevToolsEmulator::create(this);
419 419
420 allInstances().add(this); 420 allInstances().add(this);
(...skipping 3765 matching lines...) Expand 10 before | Expand all | Expand 10 after
4186 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) 4186 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame())
4187 return nullptr; 4187 return nullptr;
4188 return focusedFrame; 4188 return focusedFrame;
4189 } 4189 }
4190 4190
4191 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { 4191 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const {
4192 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4192 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4193 } 4193 }
4194 4194
4195 } // namespace blink 4195 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/PrerendererClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698