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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 #include "core/page/PointerLockController.h" | 75 #include "core/page/PointerLockController.h" |
76 #include "core/page/ScopedPageLoadDeferrer.h" | 76 #include "core/page/ScopedPageLoadDeferrer.h" |
77 #include "core/page/TouchDisambiguation.h" | 77 #include "core/page/TouchDisambiguation.h" |
78 #include "core/rendering/FastTextAutosizer.h" | 78 #include "core/rendering/FastTextAutosizer.h" |
79 #include "core/rendering/RenderView.h" | 79 #include "core/rendering/RenderView.h" |
80 #include "core/rendering/RenderWidget.h" | 80 #include "core/rendering/RenderWidget.h" |
81 #include "core/rendering/TextAutosizer.h" | 81 #include "core/rendering/TextAutosizer.h" |
82 #include "core/rendering/compositing/RenderLayerCompositor.h" | 82 #include "core/rendering/compositing/RenderLayerCompositor.h" |
83 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" | 83 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" |
84 #include "modules/encryptedmedia/MediaKeysController.h" | 84 #include "modules/encryptedmedia/MediaKeysController.h" |
| 85 #include "modules/filesystem/InspectorFileSystemAgent.h" |
85 #include "modules/indexeddb/InspectorIndexedDBAgent.h" | 86 #include "modules/indexeddb/InspectorIndexedDBAgent.h" |
86 #include "modules/push_messaging/PushController.h" | 87 #include "modules/push_messaging/PushController.h" |
87 #include "modules/screen_orientation/ScreenOrientationController.h" | 88 #include "modules/screen_orientation/ScreenOrientationController.h" |
88 #include "platform/ContextMenu.h" | 89 #include "platform/ContextMenu.h" |
89 #include "platform/ContextMenuItem.h" | 90 #include "platform/ContextMenuItem.h" |
90 #include "platform/Cursor.h" | 91 #include "platform/Cursor.h" |
91 #include "platform/KeyboardCodes.h" | 92 #include "platform/KeyboardCodes.h" |
92 #include "platform/NotImplemented.h" | 93 #include "platform/NotImplemented.h" |
93 #include "platform/OverscrollTheme.h" | 94 #include "platform/OverscrollTheme.h" |
94 #include "platform/PlatformGestureEvent.h" | 95 #include "platform/PlatformGestureEvent.h" |
(...skipping 30 matching lines...) Expand all Loading... |
125 #include "public/web/WebRange.h" | 126 #include "public/web/WebRange.h" |
126 #include "public/web/WebTextInputInfo.h" | 127 #include "public/web/WebTextInputInfo.h" |
127 #include "public/web/WebViewClient.h" | 128 #include "public/web/WebViewClient.h" |
128 #include "public/web/WebWindowFeatures.h" | 129 #include "public/web/WebWindowFeatures.h" |
129 #include "web/CompositionUnderlineVectorBuilder.h" | 130 #include "web/CompositionUnderlineVectorBuilder.h" |
130 #include "web/ContextFeaturesClientImpl.h" | 131 #include "web/ContextFeaturesClientImpl.h" |
131 #include "web/DatabaseClientImpl.h" | 132 #include "web/DatabaseClientImpl.h" |
132 #include "web/FullscreenController.h" | 133 #include "web/FullscreenController.h" |
133 #include "web/GraphicsLayerFactoryChromium.h" | 134 #include "web/GraphicsLayerFactoryChromium.h" |
134 #include "web/LinkHighlight.h" | 135 #include "web/LinkHighlight.h" |
135 #include "web/LocalFileSystemClient.h" | |
136 #include "web/MIDIClientProxy.h" | 136 #include "web/MIDIClientProxy.h" |
137 #include "web/PopupContainer.h" | 137 #include "web/PopupContainer.h" |
138 #include "web/PrerendererClientImpl.h" | 138 #include "web/PrerendererClientImpl.h" |
139 #include "web/SpeechRecognitionClientProxy.h" | 139 #include "web/SpeechRecognitionClientProxy.h" |
140 #include "web/StorageQuotaClientImpl.h" | 140 #include "web/StorageQuotaClientImpl.h" |
141 #include "web/ValidationMessageClientImpl.h" | 141 #include "web/ValidationMessageClientImpl.h" |
142 #include "web/ViewportAnchor.h" | 142 #include "web/ViewportAnchor.h" |
143 #include "web/WebDevToolsAgentImpl.h" | 143 #include "web/WebDevToolsAgentImpl.h" |
144 #include "web/WebDevToolsAgentPrivate.h" | 144 #include "web/WebDevToolsAgentPrivate.h" |
145 #include "web/WebInputEventConversion.h" | 145 #include "web/WebInputEventConversion.h" |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 | 410 |
411 m_page = adoptPtrWillBeNoop(new Page(pageClients)); | 411 m_page = adoptPtrWillBeNoop(new Page(pageClients)); |
412 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); | 412 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); |
413 provideMIDITo(*m_page, MIDIClientProxy::create(client ? client->webMIDIClien
t() : 0)); | 413 provideMIDITo(*m_page, MIDIClientProxy::create(client ? client->webMIDIClien
t() : 0)); |
414 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli
ent ? client->speechRecognizer() : 0)); | 414 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli
ent ? client->speechRecognizer() : 0)); |
415 provideNavigatorContentUtilsTo(*m_page, NavigatorContentUtilsClientImpl::cre
ate(this)); | 415 provideNavigatorContentUtilsTo(*m_page, NavigatorContentUtilsClientImpl::cre
ate(this)); |
416 | 416 |
417 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create()); | 417 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create()); |
418 DeviceOrientationInspectorAgent::provideTo(*m_page); | 418 DeviceOrientationInspectorAgent::provideTo(*m_page); |
419 | 419 |
420 provideLocalFileSystemTo(*m_page, LocalFileSystemClient::create()); | 420 m_page->inspectorController().registerModuleAgent(InspectorFileSystemAgent::
create(m_page.get())); |
421 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); | 421 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); |
422 InspectorIndexedDBAgent::provideTo(m_page.get()); | 422 InspectorIndexedDBAgent::provideTo(m_page.get()); |
423 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); | 423 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); |
424 m_page->setValidationMessageClient(ValidationMessageClientImpl::create(*this
)); | 424 m_page->setValidationMessageClient(ValidationMessageClientImpl::create(*this
)); |
425 provideWorkerGlobalScopeProxyProviderTo(*m_page, WorkerGlobalScopeProxyProvi
derImpl::create()); | 425 provideWorkerGlobalScopeProxyProviderTo(*m_page, WorkerGlobalScopeProxyProvi
derImpl::create()); |
426 | 426 |
427 m_page->makeOrdinary(); | 427 m_page->makeOrdinary(); |
428 | 428 |
429 if (m_client) { | 429 if (m_client) { |
430 providePushControllerTo(*m_page, m_client->webPushClient()); | 430 providePushControllerTo(*m_page, m_client->webPushClient()); |
(...skipping 3632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4063 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 4063 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
4064 | 4064 |
4065 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) | 4065 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) |
4066 return false; | 4066 return false; |
4067 | 4067 |
4068 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4068 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
4069 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4069 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
4070 } | 4070 } |
4071 | 4071 |
4072 } // namespace blink | 4072 } // namespace blink |
OLD | NEW |