| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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/indexeddb/InspectorIndexedDBAgent.h" | 85 #include "modules/indexeddb/InspectorIndexedDBAgent.h" |
| 86 #include "modules/push_messaging/PushController.h" | 86 #include "modules/push_messaging/PushController.h" |
| 87 #include "modules/screen_orientation/ScreenOrientationController.h" | |
| 88 #include "platform/ContextMenu.h" | 87 #include "platform/ContextMenu.h" |
| 89 #include "platform/ContextMenuItem.h" | 88 #include "platform/ContextMenuItem.h" |
| 90 #include "platform/Cursor.h" | 89 #include "platform/Cursor.h" |
| 91 #include "platform/KeyboardCodes.h" | 90 #include "platform/KeyboardCodes.h" |
| 92 #include "platform/NotImplemented.h" | 91 #include "platform/NotImplemented.h" |
| 93 #include "platform/OverscrollTheme.h" | 92 #include "platform/OverscrollTheme.h" |
| 94 #include "platform/PlatformGestureEvent.h" | 93 #include "platform/PlatformGestureEvent.h" |
| 95 #include "platform/PlatformKeyboardEvent.h" | 94 #include "platform/PlatformKeyboardEvent.h" |
| 96 #include "platform/PlatformMouseEvent.h" | 95 #include "platform/PlatformMouseEvent.h" |
| 97 #include "platform/PlatformWheelEvent.h" | 96 #include "platform/PlatformWheelEvent.h" |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); | 420 provideStorageQuotaClientTo(*m_page, StorageQuotaClientImpl::create()); |
| 422 m_page->setValidationMessageClient(ValidationMessageClientImpl::create(*this
)); | 421 m_page->setValidationMessageClient(ValidationMessageClientImpl::create(*this
)); |
| 423 provideWorkerGlobalScopeProxyProviderTo(*m_page, WorkerGlobalScopeProxyProvi
derImpl::create()); | 422 provideWorkerGlobalScopeProxyProviderTo(*m_page, WorkerGlobalScopeProxyProvi
derImpl::create()); |
| 424 | 423 |
| 425 m_page->makeOrdinary(); | 424 m_page->makeOrdinary(); |
| 426 | 425 |
| 427 if (m_client) { | 426 if (m_client) { |
| 428 providePushControllerTo(*m_page, m_client->webPushClient()); | 427 providePushControllerTo(*m_page, m_client->webPushClient()); |
| 429 setDeviceScaleFactor(m_client->screenInfo().deviceScaleFactor); | 428 setDeviceScaleFactor(m_client->screenInfo().deviceScaleFactor); |
| 430 setVisibilityState(m_client->visibilityState(), true); | 429 setVisibilityState(m_client->visibilityState(), true); |
| 431 if (RuntimeEnabledFeatures::screenOrientationEnabled()) | |
| 432 ScreenOrientationController::provideTo(*m_page, m_client->webScreenO
rientationClient()); | |
| 433 } | 430 } |
| 434 | 431 |
| 435 m_inspectorSettingsMap = adoptPtr(new SettingsMap); | 432 m_inspectorSettingsMap = adoptPtr(new SettingsMap); |
| 436 } | 433 } |
| 437 | 434 |
| 438 WebViewImpl::~WebViewImpl() | 435 WebViewImpl::~WebViewImpl() |
| 439 { | 436 { |
| 440 ASSERT(!m_page); | 437 ASSERT(!m_page); |
| 441 } | 438 } |
| 442 | 439 |
| (...skipping 3658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4101 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 4098 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
| 4102 | 4099 |
| 4103 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) | 4100 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) |
| 4104 return false; | 4101 return false; |
| 4105 | 4102 |
| 4106 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4103 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
| 4107 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4104 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
| 4108 } | 4105 } |
| 4109 | 4106 |
| 4110 } // namespace blink | 4107 } // namespace blink |
| OLD | NEW |