| 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); | 461 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); |
| 462 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli
ent ? client->speechRecognizer() : nullptr)); | 462 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli
ent ? client->speechRecognizer() : nullptr)); |
| 463 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create()); | 463 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create()); |
| 464 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); | 464 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); |
| 465 | 465 |
| 466 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); | 466 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); |
| 467 m_page->setValidationMessageClient(ValidationMessageClientImpl::create(*this
)); | 467 m_page->setValidationMessageClient(ValidationMessageClientImpl::create(*this
)); |
| 468 provideDedicatedWorkerGlobalScopeProxyProviderTo(*m_page, DedicatedWorkerGlo
balScopeProxyProviderImpl::create()); | 468 provideDedicatedWorkerGlobalScopeProxyProviderTo(*m_page, DedicatedWorkerGlo
balScopeProxyProviderImpl::create()); |
| 469 StorageNamespaceController::provideStorageNamespaceTo(*m_page, &m_storageCli
entImpl); | 469 StorageNamespaceController::provideStorageNamespaceTo(*m_page, &m_storageCli
entImpl); |
| 470 | 470 |
| 471 if (m_client) { | 471 if (m_client) |
| 472 setVisibilityState(m_client->visibilityState(), true); | 472 setVisibilityState(m_client->visibilityState(), true); |
| 473 } | |
| 474 | 473 |
| 475 initializeLayerTreeView(); | 474 initializeLayerTreeView(); |
| 476 | 475 |
| 477 m_devToolsEmulator = DevToolsEmulator::create(this); | 476 m_devToolsEmulator = DevToolsEmulator::create(this); |
| 478 | 477 |
| 479 allInstances().add(this); | 478 allInstances().add(this); |
| 480 | 479 |
| 481 m_pageImportanceSignals.setObserver(client); | 480 m_pageImportanceSignals.setObserver(client); |
| 482 } | 481 } |
| 483 | 482 |
| (...skipping 4121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4605 { | 4604 { |
| 4606 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa
ctor rather than | 4605 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa
ctor rather than |
| 4607 // page's scale factor, which can be 1 in use-zoom-for-dsf mode. | 4606 // page's scale factor, which can be 1 in use-zoom-for-dsf mode. |
| 4608 if (!page()) | 4607 if (!page()) |
| 4609 return 1; | 4608 return 1; |
| 4610 | 4609 |
| 4611 return page()->deviceScaleFactor(); | 4610 return page()->deviceScaleFactor(); |
| 4612 } | 4611 } |
| 4613 | 4612 |
| 4614 } // namespace blink | 4613 } // namespace blink |
| OLD | NEW |