| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 #include "public/web/WebPluginAction.h" | 148 #include "public/web/WebPluginAction.h" |
| 149 #include "public/web/WebRange.h" | 149 #include "public/web/WebRange.h" |
| 150 #include "public/web/WebSelection.h" | 150 #include "public/web/WebSelection.h" |
| 151 #include "public/web/WebTextInputInfo.h" | 151 #include "public/web/WebTextInputInfo.h" |
| 152 #include "public/web/WebViewClient.h" | 152 #include "public/web/WebViewClient.h" |
| 153 #include "public/web/WebWindowFeatures.h" | 153 #include "public/web/WebWindowFeatures.h" |
| 154 #include "web/CompositionUnderlineVectorBuilder.h" | 154 #include "web/CompositionUnderlineVectorBuilder.h" |
| 155 #include "web/ContextFeaturesClientImpl.h" | 155 #include "web/ContextFeaturesClientImpl.h" |
| 156 #include "web/ContextMenuAllowedScope.h" | 156 #include "web/ContextMenuAllowedScope.h" |
| 157 #include "web/DatabaseClientImpl.h" | 157 #include "web/DatabaseClientImpl.h" |
| 158 #include "web/DedicatedWorkerGlobalScopeProxyProviderImpl.h" |
| 158 #include "web/DevToolsEmulator.h" | 159 #include "web/DevToolsEmulator.h" |
| 159 #include "web/FullscreenController.h" | 160 #include "web/FullscreenController.h" |
| 160 #include "web/InspectorOverlay.h" | 161 #include "web/InspectorOverlay.h" |
| 161 #include "web/LinkHighlightImpl.h" | 162 #include "web/LinkHighlightImpl.h" |
| 162 #include "web/PageOverlay.h" | 163 #include "web/PageOverlay.h" |
| 163 #include "web/PrerendererClientImpl.h" | 164 #include "web/PrerendererClientImpl.h" |
| 164 #include "web/ResizeViewportAnchor.h" | 165 #include "web/ResizeViewportAnchor.h" |
| 165 #include "web/RotationViewportAnchor.h" | 166 #include "web/RotationViewportAnchor.h" |
| 166 #include "web/SpeechRecognitionClientProxy.h" | 167 #include "web/SpeechRecognitionClientProxy.h" |
| 167 #include "web/StorageQuotaClientImpl.h" | 168 #include "web/StorageQuotaClientImpl.h" |
| 168 #include "web/ValidationMessageClientImpl.h" | 169 #include "web/ValidationMessageClientImpl.h" |
| 169 #include "web/ViewportAnchor.h" | 170 #include "web/ViewportAnchor.h" |
| 170 #include "web/WebDevToolsAgentImpl.h" | 171 #include "web/WebDevToolsAgentImpl.h" |
| 171 #include "web/WebInputEventConversion.h" | 172 #include "web/WebInputEventConversion.h" |
| 172 #include "web/WebLocalFrameImpl.h" | 173 #include "web/WebLocalFrameImpl.h" |
| 173 #include "web/WebPagePopupImpl.h" | 174 #include "web/WebPagePopupImpl.h" |
| 174 #include "web/WebPluginContainerImpl.h" | 175 #include "web/WebPluginContainerImpl.h" |
| 175 #include "web/WebRemoteFrameImpl.h" | 176 #include "web/WebRemoteFrameImpl.h" |
| 176 #include "web/WebSettingsImpl.h" | 177 #include "web/WebSettingsImpl.h" |
| 177 #include "web/WorkerGlobalScopeProxyProviderImpl.h" | |
| 178 #include "wtf/CurrentTime.h" | 178 #include "wtf/CurrentTime.h" |
| 179 #include "wtf/RefPtr.h" | 179 #include "wtf/RefPtr.h" |
| 180 #include "wtf/TemporaryChange.h" | 180 #include "wtf/TemporaryChange.h" |
| 181 | 181 |
| 182 #if USE(DEFAULT_RENDER_THEME) | 182 #if USE(DEFAULT_RENDER_THEME) |
| 183 #include "core/layout/LayoutThemeDefault.h" | 183 #include "core/layout/LayoutThemeDefault.h" |
| 184 #endif | 184 #endif |
| 185 | 185 |
| 186 // Get rid of WTF's pow define so we can use std::pow. | 186 // Get rid of WTF's pow define so we can use std::pow. |
| 187 #undef pow | 187 #undef pow |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 pageClients.spellCheckerClient = &m_spellCheckerClientImpl; | 452 pageClients.spellCheckerClient = &m_spellCheckerClientImpl; |
| 453 | 453 |
| 454 m_page = Page::createOrdinary(pageClients); | 454 m_page = Page::createOrdinary(pageClients); |
| 455 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); | 455 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); |
| 456 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli
ent ? client->speechRecognizer() : nullptr)); | 456 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli
ent ? client->speechRecognizer() : nullptr)); |
| 457 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create()); | 457 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create()); |
| 458 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); | 458 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); |
| 459 | 459 |
| 460 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); | 460 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); |
| 461 m_page->setValidationMessageClient(ValidationMessageClientImpl::create(*this
)); | 461 m_page->setValidationMessageClient(ValidationMessageClientImpl::create(*this
)); |
| 462 provideWorkerGlobalScopeProxyProviderTo(*m_page, WorkerGlobalScopeProxyProvi
derImpl::create()); | 462 provideDedicatedWorkerGlobalScopeProxyProviderTo(*m_page, DedicatedWorkerGlo
balScopeProxyProviderImpl::create()); |
| 463 StorageNamespaceController::provideStorageNamespaceTo(*m_page, &m_storageCli
entImpl); | 463 StorageNamespaceController::provideStorageNamespaceTo(*m_page, &m_storageCli
entImpl); |
| 464 | 464 |
| 465 if (m_client) { | 465 if (m_client) { |
| 466 setVisibilityState(m_client->visibilityState(), true); | 466 setVisibilityState(m_client->visibilityState(), true); |
| 467 } | 467 } |
| 468 | 468 |
| 469 initializeLayerTreeView(); | 469 initializeLayerTreeView(); |
| 470 | 470 |
| 471 m_devToolsEmulator = DevToolsEmulator::create(this); | 471 m_devToolsEmulator = DevToolsEmulator::create(this); |
| 472 | 472 |
| (...skipping 4117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4590 { | 4590 { |
| 4591 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa
ctor rather than | 4591 // TODO(oshima): Investigate if this should return the ScreenInfo's scale fa
ctor rather than |
| 4592 // page's scale factor, which can be 1 in use-zoom-for-dsf mode. | 4592 // page's scale factor, which can be 1 in use-zoom-for-dsf mode. |
| 4593 if (!page()) | 4593 if (!page()) |
| 4594 return 1; | 4594 return 1; |
| 4595 | 4595 |
| 4596 return page()->deviceScaleFactor(); | 4596 return page()->deviceScaleFactor(); |
| 4597 } | 4597 } |
| 4598 | 4598 |
| 4599 } // namespace blink | 4599 } // namespace blink |
| OLD | NEW |