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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 #include "public/web/WebTextInputInfo.h" | 126 #include "public/web/WebTextInputInfo.h" |
127 #include "public/web/WebViewClient.h" | 127 #include "public/web/WebViewClient.h" |
128 #include "public/web/WebWindowFeatures.h" | 128 #include "public/web/WebWindowFeatures.h" |
129 #include "web/CompositionUnderlineVectorBuilder.h" | 129 #include "web/CompositionUnderlineVectorBuilder.h" |
130 #include "web/ContextFeaturesClientImpl.h" | 130 #include "web/ContextFeaturesClientImpl.h" |
131 #include "web/DatabaseClientImpl.h" | 131 #include "web/DatabaseClientImpl.h" |
132 #include "web/FullscreenController.h" | 132 #include "web/FullscreenController.h" |
133 #include "web/GraphicsLayerFactoryChromium.h" | 133 #include "web/GraphicsLayerFactoryChromium.h" |
134 #include "web/LinkHighlight.h" | 134 #include "web/LinkHighlight.h" |
135 #include "web/LocalFileSystemClient.h" | 135 #include "web/LocalFileSystemClient.h" |
136 #include "web/MIDIClientProxy.h" | |
137 #include "web/PopupContainer.h" | 136 #include "web/PopupContainer.h" |
138 #include "web/PrerendererClientImpl.h" | 137 #include "web/PrerendererClientImpl.h" |
139 #include "web/SpeechRecognitionClientProxy.h" | 138 #include "web/SpeechRecognitionClientProxy.h" |
140 #include "web/StorageQuotaClientImpl.h" | 139 #include "web/StorageQuotaClientImpl.h" |
141 #include "web/ValidationMessageClientImpl.h" | 140 #include "web/ValidationMessageClientImpl.h" |
142 #include "web/ViewportAnchor.h" | 141 #include "web/ViewportAnchor.h" |
143 #include "web/WebDevToolsAgentImpl.h" | 142 #include "web/WebDevToolsAgentImpl.h" |
144 #include "web/WebDevToolsAgentPrivate.h" | 143 #include "web/WebDevToolsAgentPrivate.h" |
145 #include "web/WebInputEventConversion.h" | 144 #include "web/WebInputEventConversion.h" |
146 #include "web/WebLocalFrameImpl.h" | 145 #include "web/WebLocalFrameImpl.h" |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 pageClients.contextMenuClient = &m_contextMenuClientImpl; | 402 pageClients.contextMenuClient = &m_contextMenuClientImpl; |
404 pageClients.editorClient = &m_editorClientImpl; | 403 pageClients.editorClient = &m_editorClientImpl; |
405 pageClients.dragClient = &m_dragClientImpl; | 404 pageClients.dragClient = &m_dragClientImpl; |
406 pageClients.inspectorClient = &m_inspectorClientImpl; | 405 pageClients.inspectorClient = &m_inspectorClientImpl; |
407 pageClients.backForwardClient = &m_backForwardClientImpl; | 406 pageClients.backForwardClient = &m_backForwardClientImpl; |
408 pageClients.spellCheckerClient = &m_spellCheckerClientImpl; | 407 pageClients.spellCheckerClient = &m_spellCheckerClientImpl; |
409 pageClients.storageClient = &m_storageClientImpl; | 408 pageClients.storageClient = &m_storageClientImpl; |
410 | 409 |
411 m_page = adoptPtrWillBeNoop(new Page(pageClients)); | 410 m_page = adoptPtrWillBeNoop(new Page(pageClients)); |
412 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); | 411 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); |
413 provideMIDITo(*m_page, MIDIClientProxy::create(client ? client->webMIDIClien
t() : 0)); | |
414 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli
ent ? client->speechRecognizer() : 0)); | 412 provideSpeechRecognitionTo(*m_page, SpeechRecognitionClientProxy::create(cli
ent ? client->speechRecognizer() : 0)); |
415 provideNavigatorContentUtilsTo(*m_page, NavigatorContentUtilsClientImpl::cre
ate(this)); | 413 provideNavigatorContentUtilsTo(*m_page, NavigatorContentUtilsClientImpl::cre
ate(this)); |
416 | 414 |
417 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create()); | 415 provideContextFeaturesTo(*m_page, ContextFeaturesClientImpl::create()); |
418 DeviceOrientationInspectorAgent::provideTo(*m_page); | 416 DeviceOrientationInspectorAgent::provideTo(*m_page); |
419 | 417 |
420 provideLocalFileSystemTo(*m_page, LocalFileSystemClient::create()); | 418 provideLocalFileSystemTo(*m_page, LocalFileSystemClient::create()); |
421 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); | 419 provideDatabaseClientTo(*m_page, DatabaseClientImpl::create()); |
422 InspectorIndexedDBAgent::provideTo(m_page.get()); | 420 InspectorIndexedDBAgent::provideTo(m_page.get()); |
423 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); | 421 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); |
(...skipping 3639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4063 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 4061 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
4064 | 4062 |
4065 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) | 4063 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) |
4066 return false; | 4064 return false; |
4067 | 4065 |
4068 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4066 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
4069 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4067 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
4070 } | 4068 } |
4071 | 4069 |
4072 } // namespace blink | 4070 } // namespace blink |
OLD | NEW |