| 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); | 456 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); |
| 457 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli
ent ? client->speechRecognizer() : nullptr)); | 457 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli
ent ? client->speechRecognizer() : nullptr)); |
| 458 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create()); | 458 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create()); |
| 459 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); | 459 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); |
| 460 | 460 |
| 461 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); | 461 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); |
| 462 m_page->setValidationMessageClient(ValidationMessageClientImpl::create(*this
)); | 462 m_page->setValidationMessageClient(ValidationMessageClientImpl::create(*this
)); |
| 463 provideDedicatedWorkerGlobalScopeProxyProviderTo(*m_page, DedicatedWorkerGlo
balScopeProxyProviderImpl::create()); | 463 provideDedicatedWorkerGlobalScopeProxyProviderTo(*m_page, DedicatedWorkerGlo
balScopeProxyProviderImpl::create()); |
| 464 StorageNamespaceController::provideStorageNamespaceTo(*m_page, &m_storageCli
entImpl); | 464 StorageNamespaceController::provideStorageNamespaceTo(*m_page, &m_storageCli
entImpl); |
| 465 | 465 |
| 466 if (m_client) { | 466 if (m_client) |
| 467 setVisibilityState(m_client->visibilityState(), true); | 467 setVisibilityState(m_client->visibilityState(), true); |
| 468 } | |
| 469 | 468 |
| 470 initializeLayerTreeView(); | 469 initializeLayerTreeView(); |
| 471 | 470 |
| 472 m_devToolsEmulator = DevToolsEmulator::create(this); | 471 m_devToolsEmulator = DevToolsEmulator::create(this); |
| 473 | 472 |
| 474 allInstances().add(this); | 473 allInstances().add(this); |
| 475 | 474 |
| 476 m_pageImportanceSignals.setObserver(client); | 475 m_pageImportanceSignals.setObserver(client); |
| 477 } | 476 } |
| 478 | 477 |
| (...skipping 4055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4534 { | 4533 { |
| 4535 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa
ctor rather than | 4534 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa
ctor rather than |
| 4536 // page's scale factor, which can be 1 in use-zoom-for-dsf mode. | 4535 // page's scale factor, which can be 1 in use-zoom-for-dsf mode. |
| 4537 if (!page()) | 4536 if (!page()) |
| 4538 return 1; | 4537 return 1; |
| 4539 | 4538 |
| 4540 return page()->deviceScaleFactor(); | 4539 return page()->deviceScaleFactor(); |
| 4541 } | 4540 } |
| 4542 | 4541 |
| 4543 } // namespace blink | 4542 } // namespace blink |
| OLD | NEW |