| 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 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "WebViewImpl.h" | 32 #include "WebViewImpl.h" |
| 33 | 33 |
| 34 #include "AutofillPopupMenuClient.h" | 34 #include "AutofillPopupMenuClient.h" |
| 35 #include "BatteryClientImpl.h" | 35 #include "BatteryClientImpl.h" |
| 36 #include "BatteryController.h" | |
| 37 #include "CSSValueKeywords.h" | 36 #include "CSSValueKeywords.h" |
| 38 #include "CompositionUnderlineVectorBuilder.h" | 37 #include "CompositionUnderlineVectorBuilder.h" |
| 39 #include "ContextFeaturesClientImpl.h" | 38 #include "ContextFeaturesClientImpl.h" |
| 40 #include "DeviceOrientationClientProxy.h" | 39 #include "DeviceOrientationClientProxy.h" |
| 41 #include "GeolocationClientProxy.h" | 40 #include "GeolocationClientProxy.h" |
| 42 #include "GeolocationController.h" | |
| 43 #include "GraphicsLayerFactoryChromium.h" | 41 #include "GraphicsLayerFactoryChromium.h" |
| 44 #include "HTMLInputElement.h" | 42 #include "HTMLInputElement.h" |
| 45 #include "HTMLMediaElement.h" | 43 #include "HTMLMediaElement.h" |
| 46 #include "HTMLNames.h" | 44 #include "HTMLNames.h" |
| 47 #include "HTMLTextAreaElement.h" | 45 #include "HTMLTextAreaElement.h" |
| 48 #include "LinkHighlight.h" | 46 #include "LinkHighlight.h" |
| 49 #include "NonCompositedContentHost.h" | 47 #include "NonCompositedContentHost.h" |
| 50 #include "PageWidgetDelegate.h" | 48 #include "PageWidgetDelegate.h" |
| 51 #include "PlatformContextSkia.h" | 49 #include "PlatformContextSkia.h" |
| 52 #include "PrerendererClientImpl.h" | 50 #include "PrerendererClientImpl.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 #include "core/platform/graphics/GraphicsContext.h" | 133 #include "core/platform/graphics/GraphicsContext.h" |
| 136 #include "core/platform/graphics/GraphicsContext3D.h" | 134 #include "core/platform/graphics/GraphicsContext3D.h" |
| 137 #include "core/platform/graphics/Image.h" | 135 #include "core/platform/graphics/Image.h" |
| 138 #include "core/platform/graphics/ImageBuffer.h" | 136 #include "core/platform/graphics/ImageBuffer.h" |
| 139 #include "core/platform/graphics/chromium/LayerPainterChromium.h" | 137 #include "core/platform/graphics/chromium/LayerPainterChromium.h" |
| 140 #include "core/platform/graphics/gpu/SharedGraphicsContext3D.h" | 138 #include "core/platform/graphics/gpu/SharedGraphicsContext3D.h" |
| 141 #include "core/platform/network/ResourceHandle.h" | 139 #include "core/platform/network/ResourceHandle.h" |
| 142 #include "core/rendering/RenderLayerCompositor.h" | 140 #include "core/rendering/RenderLayerCompositor.h" |
| 143 #include "core/rendering/RenderView.h" | 141 #include "core/rendering/RenderView.h" |
| 144 #include "core/rendering/RenderWidget.h" | 142 #include "core/rendering/RenderWidget.h" |
| 143 #include "modules/battery/BatteryController.h" |
| 144 #include "modules/geolocation/GeolocationController.h" |
| 145 #include "painting/ContinuousPainter.h" | 145 #include "painting/ContinuousPainter.h" |
| 146 #include "painting/GraphicsContextBuilder.h" | 146 #include "painting/GraphicsContextBuilder.h" |
| 147 #include "src/WebActiveGestureAnimation.h" | 147 #include "src/WebActiveGestureAnimation.h" |
| 148 #include <public/Platform.h> | 148 #include <public/Platform.h> |
| 149 #include <public/WebCompositorOutputSurface.h> | 149 #include <public/WebCompositorOutputSurface.h> |
| 150 #include <public/WebCompositorSupport.h> | 150 #include <public/WebCompositorSupport.h> |
| 151 #include <public/WebDragData.h> | 151 #include <public/WebDragData.h> |
| 152 #include <public/WebFloatPoint.h> | 152 #include <public/WebFloatPoint.h> |
| 153 #include <public/WebGraphicsContext3D.h> | 153 #include <public/WebGraphicsContext3D.h> |
| 154 #include <public/WebImage.h> | 154 #include <public/WebImage.h> |
| (...skipping 4058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4213 } | 4213 } |
| 4214 | 4214 |
| 4215 bool WebViewImpl::shouldDisableDesktopWorkarounds() | 4215 bool WebViewImpl::shouldDisableDesktopWorkarounds() |
| 4216 { | 4216 { |
| 4217 ViewportArguments arguments = mainFrameImpl()->frame()->document()->viewport
Arguments(); | 4217 ViewportArguments arguments = mainFrameImpl()->frame()->document()->viewport
Arguments(); |
| 4218 return arguments.width == ViewportArguments::ValueDeviceWidth || !arguments.
userZoom | 4218 return arguments.width == ViewportArguments::ValueDeviceWidth || !arguments.
userZoom |
| 4219 || (arguments.minZoom == arguments.maxZoom && arguments.minZoom != Viewp
ortArguments::ValueAuto); | 4219 || (arguments.minZoom == arguments.maxZoom && arguments.minZoom != Viewp
ortArguments::ValueAuto); |
| 4220 } | 4220 } |
| 4221 | 4221 |
| 4222 } // namespace WebKit | 4222 } // namespace WebKit |
| OLD | NEW |