| 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 21 matching lines...) Expand all Loading... |
| 32 #include "WebViewImpl.h" | 32 #include "WebViewImpl.h" |
| 33 | 33 |
| 34 #include "AutofillPopupMenuClient.h" | 34 #include "AutofillPopupMenuClient.h" |
| 35 #include "BackForwardListChromium.h" | 35 #include "BackForwardListChromium.h" |
| 36 #include "BatteryClientImpl.h" | 36 #include "BatteryClientImpl.h" |
| 37 #include "BatteryController.h" | 37 #include "BatteryController.h" |
| 38 #include "CSSValueKeywords.h" | 38 #include "CSSValueKeywords.h" |
| 39 #include "Chrome.h" | 39 #include "Chrome.h" |
| 40 #include "CompositionUnderlineVectorBuilder.h" | 40 #include "CompositionUnderlineVectorBuilder.h" |
| 41 #include "ContextFeaturesClientImpl.h" | 41 #include "ContextFeaturesClientImpl.h" |
| 42 #include "ContextMenu.h" | |
| 43 #include "ContextMenuController.h" | 42 #include "ContextMenuController.h" |
| 44 #include "ContextMenuItem.h" | |
| 45 #include "Cursor.h" | |
| 46 #include "DeviceOrientationClientProxy.h" | 43 #include "DeviceOrientationClientProxy.h" |
| 47 #include "Document.h" | 44 #include "Document.h" |
| 48 #include "DocumentLoader.h" | 45 #include "DocumentLoader.h" |
| 49 #include "DragController.h" | 46 #include "DragController.h" |
| 50 #include "DragData.h" | |
| 51 #include "DragSession.h" | 47 #include "DragSession.h" |
| 52 #include "Editor.h" | 48 #include "Editor.h" |
| 53 #include "EventHandler.h" | 49 #include "EventHandler.h" |
| 54 #include "FocusController.h" | 50 #include "FocusController.h" |
| 55 #include "Frame.h" | 51 #include "Frame.h" |
| 56 #include "FrameLoader.h" | 52 #include "FrameLoader.h" |
| 57 #include "FrameSelection.h" | 53 #include "FrameSelection.h" |
| 58 #include "FrameTree.h" | 54 #include "FrameTree.h" |
| 59 #include "FrameView.h" | 55 #include "FrameView.h" |
| 60 #include "GeolocationClientProxy.h" | 56 #include "GeolocationClientProxy.h" |
| 61 #include "GeolocationController.h" | 57 #include "GeolocationController.h" |
| 62 #include "GraphicsLayerFactoryChromium.h" | 58 #include "GraphicsLayerFactoryChromium.h" |
| 63 #include "HTMLInputElement.h" | 59 #include "HTMLInputElement.h" |
| 64 #include "HTMLMediaElement.h" | 60 #include "HTMLMediaElement.h" |
| 65 #include "HTMLNames.h" | 61 #include "HTMLNames.h" |
| 66 #include "HTMLTextAreaElement.h" | 62 #include "HTMLTextAreaElement.h" |
| 67 #include "InspectorController.h" | 63 #include "InspectorController.h" |
| 68 #include "InspectorInstrumentation.h" | 64 #include "InspectorInstrumentation.h" |
| 69 #include "KeyboardEvent.h" | 65 #include "KeyboardEvent.h" |
| 70 #include "LinkHighlight.h" | 66 #include "LinkHighlight.h" |
| 71 #include "MIMETypeRegistry.h" | |
| 72 #include "NodeRenderStyle.h" | 67 #include "NodeRenderStyle.h" |
| 73 #include "NonCompositedContentHost.h" | 68 #include "NonCompositedContentHost.h" |
| 74 #include "NotImplemented.h" | |
| 75 #include "Page.h" | 69 #include "Page.h" |
| 76 #include "PageGroup.h" | 70 #include "PageGroup.h" |
| 77 #include "PageGroupLoadDeferrer.h" | 71 #include "PageGroupLoadDeferrer.h" |
| 78 #include "PagePopupClient.h" | 72 #include "PagePopupClient.h" |
| 79 #include "PageWidgetDelegate.h" | 73 #include "PageWidgetDelegate.h" |
| 80 #include "PlatformContextSkia.h" | 74 #include "PlatformContextSkia.h" |
| 81 #include "PlatformGestureEvent.h" | |
| 82 #include "PlatformKeyboardEvent.h" | |
| 83 #include "PlatformMouseEvent.h" | |
| 84 #include "PlatformWheelEvent.h" | |
| 85 #include "PointerLockController.h" | 75 #include "PointerLockController.h" |
| 86 #include "PopupMenuClient.h" | |
| 87 #include "PrerendererClientImpl.h" | 76 #include "PrerendererClientImpl.h" |
| 88 #include "RenderLayerCompositor.h" | 77 #include "RenderLayerCompositor.h" |
| 89 #include "RenderView.h" | 78 #include "RenderView.h" |
| 90 #include "RenderWidget.h" | 79 #include "RenderWidget.h" |
| 91 #include "SchemeRegistry.h" | |
| 92 #include "SecurityOrigin.h" | 80 #include "SecurityOrigin.h" |
| 93 #include "SecurityPolicy.h" | 81 #include "SecurityPolicy.h" |
| 94 #include "Settings.h" | 82 #include "Settings.h" |
| 95 #include "SpeechInputClientImpl.h" | 83 #include "SpeechInputClientImpl.h" |
| 96 #include "SpeechRecognitionClientProxy.h" | 84 #include "SpeechRecognitionClientProxy.h" |
| 97 #include "StyleResolver.h" | 85 #include "StyleResolver.h" |
| 98 #include "Text.h" | 86 #include "Text.h" |
| 99 #include "TextFieldDecoratorImpl.h" | 87 #include "TextFieldDecoratorImpl.h" |
| 100 #include "TextIterator.h" | 88 #include "TextIterator.h" |
| 101 #include "Timer.h" | |
| 102 #include "TouchDisambiguation.h" | 89 #include "TouchDisambiguation.h" |
| 103 #include "ValidationMessageClientImpl.h" | 90 #include "ValidationMessageClientImpl.h" |
| 104 #include "ViewportAnchor.h" | 91 #include "ViewportAnchor.h" |
| 105 #include "WebAccessibilityObject.h" | 92 #include "WebAccessibilityObject.h" |
| 106 #include "WebActiveWheelFlingParameters.h" | 93 #include "WebActiveWheelFlingParameters.h" |
| 107 #include "WebAutofillClient.h" | 94 #include "WebAutofillClient.h" |
| 108 #include "WebCompositorInputHandlerImpl.h" | 95 #include "WebCompositorInputHandlerImpl.h" |
| 109 #include "WebDevToolsAgentImpl.h" | 96 #include "WebDevToolsAgentImpl.h" |
| 110 #include "WebDevToolsAgentPrivate.h" | 97 #include "WebDevToolsAgentPrivate.h" |
| 111 #include "WebFrameImpl.h" | 98 #include "WebFrameImpl.h" |
| 112 #include "WebHelperPluginImpl.h" | 99 #include "WebHelperPluginImpl.h" |
| 113 #include "WebHitTestResult.h" | 100 #include "WebHitTestResult.h" |
| 114 #include "WebInputElement.h" | 101 #include "WebInputElement.h" |
| 115 #include "WebInputEvent.h" | 102 #include "WebInputEvent.h" |
| 116 #include "WebInputEventConversion.h" | 103 #include "WebInputEventConversion.h" |
| 117 #include "WebMediaPlayerAction.h" | 104 #include "WebMediaPlayerAction.h" |
| 118 #include "WebNode.h" | 105 #include "WebNode.h" |
| 119 #include "WebPagePopupImpl.h" | 106 #include "WebPagePopupImpl.h" |
| 120 #include "WebPlugin.h" | 107 #include "WebPlugin.h" |
| 121 #include "WebPluginAction.h" | 108 #include "WebPluginAction.h" |
| 122 #include "WebPluginContainerImpl.h" | 109 #include "WebPluginContainerImpl.h" |
| 123 #include "WebPopupMenuImpl.h" | 110 #include "WebPopupMenuImpl.h" |
| 124 #include "WebRange.h" | 111 #include "WebRange.h" |
| 125 #include "WebSettingsImpl.h" | 112 #include "WebSettingsImpl.h" |
| 126 #include "WebTextInputInfo.h" | 113 #include "WebTextInputInfo.h" |
| 127 #include "WebViewClient.h" | 114 #include "WebViewClient.h" |
| 128 #include "WheelEvent.h" | 115 #include "WheelEvent.h" |
| 129 #include "core/accessibility/AXObjectCache.h" | 116 #include "core/accessibility/AXObjectCache.h" |
| 130 #include "core/loader/UniqueIdentifier.h" | 117 #include "core/loader/UniqueIdentifier.h" |
| 118 #include "core/platform/ContextMenu.h" |
| 119 #include "core/platform/ContextMenuItem.h" |
| 120 #include "core/platform/Cursor.h" |
| 121 #include "core/platform/DragData.h" |
| 122 #include "core/platform/MIMETypeRegistry.h" |
| 123 #include "core/platform/NotImplemented.h" |
| 124 #include "core/platform/PlatformGestureEvent.h" |
| 125 #include "core/platform/PlatformKeyboardEvent.h" |
| 126 #include "core/platform/PlatformMouseEvent.h" |
| 127 #include "core/platform/PlatformWheelEvent.h" |
| 128 #include "core/platform/PopupMenuClient.h" |
| 129 #include "core/platform/SchemeRegistry.h" |
| 130 #include "core/platform/Timer.h" |
| 131 #include "core/platform/chromium/KeyboardCodes.h" | 131 #include "core/platform/chromium/KeyboardCodes.h" |
| 132 #include "core/platform/chromium/PopupContainer.h" | 132 #include "core/platform/chromium/PopupContainer.h" |
| 133 #include "core/platform/chromium/TraceEvent.h" | 133 #include "core/platform/chromium/TraceEvent.h" |
| 134 #include "core/platform/chromium/support/GraphicsContext3DPrivate.h" | 134 #include "core/platform/chromium/support/GraphicsContext3DPrivate.h" |
| 135 #include "core/platform/graphics/Color.h" | 135 #include "core/platform/graphics/Color.h" |
| 136 #include "core/platform/graphics/ColorSpace.h" | 136 #include "core/platform/graphics/ColorSpace.h" |
| 137 #include "core/platform/graphics/Extensions3D.h" | 137 #include "core/platform/graphics/Extensions3D.h" |
| 138 #include "core/platform/graphics/FontDescription.h" | 138 #include "core/platform/graphics/FontDescription.h" |
| 139 #include "core/platform/graphics/GraphicsContext.h" | 139 #include "core/platform/graphics/GraphicsContext.h" |
| 140 #include "core/platform/graphics/GraphicsContext3D.h" | 140 #include "core/platform/graphics/GraphicsContext3D.h" |
| (...skipping 4068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4209 } | 4209 } |
| 4210 | 4210 |
| 4211 bool WebViewImpl::shouldDisableDesktopWorkarounds() | 4211 bool WebViewImpl::shouldDisableDesktopWorkarounds() |
| 4212 { | 4212 { |
| 4213 ViewportArguments arguments = mainFrameImpl()->frame()->document()->viewport
Arguments(); | 4213 ViewportArguments arguments = mainFrameImpl()->frame()->document()->viewport
Arguments(); |
| 4214 return arguments.width == ViewportArguments::ValueDeviceWidth || !arguments.
userZoom | 4214 return arguments.width == ViewportArguments::ValueDeviceWidth || !arguments.
userZoom |
| 4215 || (arguments.minZoom == arguments.maxZoom && arguments.minZoom != Viewp
ortArguments::ValueAuto); | 4215 || (arguments.minZoom == arguments.maxZoom && arguments.minZoom != Viewp
ortArguments::ValueAuto); |
| 4216 } | 4216 } |
| 4217 | 4217 |
| 4218 } // namespace WebKit | 4218 } // namespace WebKit |
| OLD | NEW |