| 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |