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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 #include "core/page/PageGroup.h" | 114 #include "core/page/PageGroup.h" |
115 #include "core/page/PageGroupLoadDeferrer.h" | 115 #include "core/page/PageGroupLoadDeferrer.h" |
116 #include "core/page/PagePopupClient.h" | 116 #include "core/page/PagePopupClient.h" |
117 #include "core/page/PointerLockController.h" | 117 #include "core/page/PointerLockController.h" |
118 #include "core/page/TouchDisambiguation.h" | 118 #include "core/page/TouchDisambiguation.h" |
119 #include "core/rendering/RenderLayerCompositor.h" | 119 #include "core/rendering/RenderLayerCompositor.h" |
120 #include "core/rendering/RenderView.h" | 120 #include "core/rendering/RenderView.h" |
121 #include "core/rendering/RenderWidget.h" | 121 #include "core/rendering/RenderWidget.h" |
122 #include "core/rendering/TextAutosizer.h" | 122 #include "core/rendering/TextAutosizer.h" |
123 #include "modules/geolocation/GeolocationController.h" | 123 #include "modules/geolocation/GeolocationController.h" |
| 124 #include "modules/indexeddb/InspectorIndexedDBAgent.h" |
124 #include "modules/notifications/NotificationController.h" | 125 #include "modules/notifications/NotificationController.h" |
125 #include "painting/ContinuousPainter.h" | 126 #include "painting/ContinuousPainter.h" |
126 #include "platform/ContextMenu.h" | 127 #include "platform/ContextMenu.h" |
127 #include "platform/ContextMenuItem.h" | 128 #include "platform/ContextMenuItem.h" |
128 #include "platform/Cursor.h" | 129 #include "platform/Cursor.h" |
129 #include "platform/KeyboardCodes.h" | 130 #include "platform/KeyboardCodes.h" |
130 #include "platform/NotImplemented.h" | 131 #include "platform/NotImplemented.h" |
131 #include "platform/OverscrollTheme.h" | 132 #include "platform/OverscrollTheme.h" |
132 #include "platform/PlatformGestureEvent.h" | 133 #include "platform/PlatformGestureEvent.h" |
133 #include "platform/PlatformKeyboardEvent.h" | 134 #include "platform/PlatformKeyboardEvent.h" |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 provideSpeechRecognitionTo(m_page.get(), m_speechRecognitionClient.get()); | 400 provideSpeechRecognitionTo(m_page.get(), m_speechRecognitionClient.get()); |
400 provideNotification(m_page.get(), notificationPresenterImpl()); | 401 provideNotification(m_page.get(), notificationPresenterImpl()); |
401 provideNavigatorContentUtilsTo(m_page.get(), m_navigatorContentUtilsClient.g
et()); | 402 provideNavigatorContentUtilsTo(m_page.get(), m_navigatorContentUtilsClient.g
et()); |
402 | 403 |
403 provideContextFeaturesTo(m_page.get(), m_featureSwitchClient.get()); | 404 provideContextFeaturesTo(m_page.get(), m_featureSwitchClient.get()); |
404 provideGeolocationTo(m_page.get(), m_geolocationClientProxy.get()); | 405 provideGeolocationTo(m_page.get(), m_geolocationClientProxy.get()); |
405 m_geolocationClientProxy->setController(GeolocationController::from(m_page.g
et())); | 406 m_geolocationClientProxy->setController(GeolocationController::from(m_page.g
et())); |
406 | 407 |
407 provideLocalFileSystemTo(m_page.get(), LocalFileSystemClient::create()); | 408 provideLocalFileSystemTo(m_page.get(), LocalFileSystemClient::create()); |
408 provideDatabaseClientTo(m_page.get(), DatabaseClientImpl::create()); | 409 provideDatabaseClientTo(m_page.get(), DatabaseClientImpl::create()); |
| 410 InspectorIndexedDBAgent::provideTo(m_page.get()); |
409 provideStorageQuotaClientTo(m_page.get(), StorageQuotaClientImpl::create()); | 411 provideStorageQuotaClientTo(m_page.get(), StorageQuotaClientImpl::create()); |
410 m_validationMessage = ValidationMessageClientImpl::create(*this); | 412 m_validationMessage = ValidationMessageClientImpl::create(*this); |
411 m_page->setValidationMessageClient(m_validationMessage.get()); | 413 m_page->setValidationMessageClient(m_validationMessage.get()); |
412 provideWorkerGlobalScopeProxyProviderTo(m_page.get(), WorkerGlobalScopeProxy
ProviderImpl::create()); | 414 provideWorkerGlobalScopeProxyProviderTo(m_page.get(), WorkerGlobalScopeProxy
ProviderImpl::create()); |
413 | 415 |
414 m_page->setGroupType(Page::SharedPageGroup); | 416 m_page->setGroupType(Page::SharedPageGroup); |
415 | 417 |
416 if (m_client) { | 418 if (m_client) { |
417 setDeviceScaleFactor(m_client->screenInfo().deviceScaleFactor); | 419 setDeviceScaleFactor(m_client->screenInfo().deviceScaleFactor); |
418 setVisibilityState(m_client->visibilityState(), true); | 420 setVisibilityState(m_client->visibilityState(), true); |
(...skipping 3564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3983 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 3985 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
3984 | 3986 |
3985 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) | 3987 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) |
3986 return false; | 3988 return false; |
3987 | 3989 |
3988 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 3990 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
3989 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 3991 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
3990 } | 3992 } |
3991 | 3993 |
3992 } // namespace blink | 3994 } // namespace blink |
OLD | NEW |