| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 #include "core/page/Page.h" | 111 #include "core/page/Page.h" |
| 112 #include "core/page/PagePopupClient.h" | 112 #include "core/page/PagePopupClient.h" |
| 113 #include "core/page/PointerLockController.h" | 113 #include "core/page/PointerLockController.h" |
| 114 #include "core/page/ScopedPageLoadDeferrer.h" | 114 #include "core/page/ScopedPageLoadDeferrer.h" |
| 115 #include "core/page/TouchDisambiguation.h" | 115 #include "core/page/TouchDisambiguation.h" |
| 116 #include "core/rendering/RenderView.h" | 116 #include "core/rendering/RenderView.h" |
| 117 #include "core/rendering/RenderWidget.h" | 117 #include "core/rendering/RenderWidget.h" |
| 118 #include "core/rendering/TextAutosizer.h" | 118 #include "core/rendering/TextAutosizer.h" |
| 119 #include "core/rendering/compositing/RenderLayerCompositor.h" | 119 #include "core/rendering/compositing/RenderLayerCompositor.h" |
| 120 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" | 120 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" |
| 121 #include "modules/encryptedmedia/MediaKeysController.h" |
| 121 #include "modules/geolocation/GeolocationController.h" | 122 #include "modules/geolocation/GeolocationController.h" |
| 122 #include "modules/indexeddb/InspectorIndexedDBAgent.h" | 123 #include "modules/indexeddb/InspectorIndexedDBAgent.h" |
| 123 #include "modules/notifications/NotificationController.h" | 124 #include "modules/notifications/NotificationController.h" |
| 124 #include "painting/ContinuousPainter.h" | 125 #include "painting/ContinuousPainter.h" |
| 125 #include "platform/ContextMenu.h" | 126 #include "platform/ContextMenu.h" |
| 126 #include "platform/ContextMenuItem.h" | 127 #include "platform/ContextMenuItem.h" |
| 127 #include "platform/Cursor.h" | 128 #include "platform/Cursor.h" |
| 128 #include "platform/KeyboardCodes.h" | 129 #include "platform/KeyboardCodes.h" |
| 129 #include "platform/NotImplemented.h" | 130 #include "platform/NotImplemented.h" |
| 130 #include "platform/OverscrollTheme.h" | 131 #include "platform/OverscrollTheme.h" |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 pageClients.contextMenuClient = &m_contextMenuClientImpl; | 382 pageClients.contextMenuClient = &m_contextMenuClientImpl; |
| 382 pageClients.editorClient = &m_editorClientImpl; | 383 pageClients.editorClient = &m_editorClientImpl; |
| 383 pageClients.dragClient = &m_dragClientImpl; | 384 pageClients.dragClient = &m_dragClientImpl; |
| 384 pageClients.inspectorClient = &m_inspectorClientImpl; | 385 pageClients.inspectorClient = &m_inspectorClientImpl; |
| 385 pageClients.backForwardClient = &m_backForwardClientImpl; | 386 pageClients.backForwardClient = &m_backForwardClientImpl; |
| 386 pageClients.spellCheckerClient = &m_spellCheckerClientImpl; | 387 pageClients.spellCheckerClient = &m_spellCheckerClientImpl; |
| 387 pageClients.storageClient = &m_storageClientImpl; | 388 pageClients.storageClient = &m_storageClientImpl; |
| 388 | 389 |
| 389 m_page = adoptPtr(new Page(pageClients)); | 390 m_page = adoptPtr(new Page(pageClients)); |
| 390 provideUserMediaTo(*m_page, &m_userMediaClientImpl); | 391 provideUserMediaTo(*m_page, &m_userMediaClientImpl); |
| 392 MediaKeysController::provideMediaKeysTo(*m_page, &m_mediaKeysClientImpl); |
| 391 provideMIDITo(*m_page, m_midiClientProxy.get()); | 393 provideMIDITo(*m_page, m_midiClientProxy.get()); |
| 392 #if ENABLE(INPUT_SPEECH) | 394 #if ENABLE(INPUT_SPEECH) |
| 393 provideSpeechInputTo(*m_page, m_speechInputClient.get()); | 395 provideSpeechInputTo(*m_page, m_speechInputClient.get()); |
| 394 #endif | 396 #endif |
| 395 provideSpeechRecognitionTo(*m_page, m_speechRecognitionClient.get()); | 397 provideSpeechRecognitionTo(*m_page, m_speechRecognitionClient.get()); |
| 396 provideNotification(*m_page, notificationPresenterImpl()); | 398 provideNotification(*m_page, notificationPresenterImpl()); |
| 397 provideNavigatorContentUtilsTo(*m_page, m_navigatorContentUtilsClient.get())
; | 399 provideNavigatorContentUtilsTo(*m_page, m_navigatorContentUtilsClient.get())
; |
| 398 | 400 |
| 399 provideContextFeaturesTo(*m_page, m_featureSwitchClient.get()); | 401 provideContextFeaturesTo(*m_page, m_featureSwitchClient.get()); |
| 400 if (RuntimeEnabledFeatures::deviceOrientationEnabled()) | 402 if (RuntimeEnabledFeatures::deviceOrientationEnabled()) |
| (...skipping 3597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3998 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 4000 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
| 3999 | 4001 |
| 4000 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) | 4002 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) |
| 4001 return false; | 4003 return false; |
| 4002 | 4004 |
| 4003 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4005 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
| 4004 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4006 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
| 4005 } | 4007 } |
| 4006 | 4008 |
| 4007 } // namespace blink | 4009 } // namespace blink |
| OLD | NEW |