| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #include "config.h" | 32 #include "sky/engine/config.h" |
| 33 #include "web/ChromeClientImpl.h" | 33 #include "sky/engine/web/ChromeClientImpl.h" |
| 34 | 34 |
| 35 #include "bindings/core/v8/ScriptController.h" | |
| 36 #include "core/dom/Document.h" | |
| 37 #include "core/dom/Node.h" | |
| 38 #include "core/events/KeyboardEvent.h" | |
| 39 #include "core/events/MouseEvent.h" | |
| 40 #include "core/events/WheelEvent.h" | |
| 41 #include "core/frame/Console.h" | |
| 42 #include "core/frame/FrameView.h" | |
| 43 #include "core/frame/Settings.h" | |
| 44 #include "core/page/Page.h" | |
| 45 #include "core/rendering/HitTestResult.h" | |
| 46 #include "platform/Cursor.h" | |
| 47 #include "platform/NotImplemented.h" | |
| 48 #include "platform/PlatformScreen.h" | |
| 49 #include "gen/sky/platform/RuntimeEnabledFeatures.h" | 35 #include "gen/sky/platform/RuntimeEnabledFeatures.h" |
| 50 #include "platform/exported/WrappedResourceRequest.h" | 36 #include "sky/engine/bindings/core/v8/ScriptController.h" |
| 51 #include "platform/geometry/FloatRect.h" | 37 #include "sky/engine/core/dom/Document.h" |
| 52 #include "platform/geometry/IntRect.h" | 38 #include "sky/engine/core/dom/Node.h" |
| 53 #include "platform/graphics/GraphicsLayer.h" | 39 #include "sky/engine/core/events/KeyboardEvent.h" |
| 54 #include "public/platform/Platform.h" | 40 #include "sky/engine/core/events/MouseEvent.h" |
| 55 #include "public/platform/WebCursorInfo.h" | 41 #include "sky/engine/core/events/WheelEvent.h" |
| 56 #include "public/platform/WebRect.h" | 42 #include "sky/engine/core/frame/Console.h" |
| 57 #include "public/platform/WebURLRequest.h" | 43 #include "sky/engine/core/frame/FrameView.h" |
| 58 #include "public/web/Sky.h" | 44 #include "sky/engine/core/frame/Settings.h" |
| 59 #include "public/web/WebConsoleMessage.h" | 45 #include "sky/engine/core/page/Page.h" |
| 60 #include "public/web/WebFrameClient.h" | 46 #include "sky/engine/core/rendering/HitTestResult.h" |
| 61 #include "public/web/WebInputEvent.h" | 47 #include "sky/engine/platform/Cursor.h" |
| 62 #include "public/web/WebNode.h" | 48 #include "sky/engine/platform/NotImplemented.h" |
| 63 #include "public/web/WebSettings.h" | 49 #include "sky/engine/platform/PlatformScreen.h" |
| 64 #include "public/web/WebTextDirection.h" | 50 #include "sky/engine/platform/exported/WrappedResourceRequest.h" |
| 65 #include "public/web/WebTouchAction.h" | 51 #include "sky/engine/platform/geometry/FloatRect.h" |
| 66 #include "public/web/WebUserGestureIndicator.h" | 52 #include "sky/engine/platform/geometry/IntRect.h" |
| 67 #include "public/web/WebUserGestureToken.h" | 53 #include "sky/engine/platform/graphics/GraphicsLayer.h" |
| 68 #include "public/web/WebViewClient.h" | 54 #include "sky/engine/public/platform/Platform.h" |
| 69 #include "web/WebInputEventConversion.h" | 55 #include "sky/engine/public/platform/WebCursorInfo.h" |
| 70 #include "web/WebLocalFrameImpl.h" | 56 #include "sky/engine/public/platform/WebRect.h" |
| 71 #include "web/WebSettingsImpl.h" | 57 #include "sky/engine/public/platform/WebURLRequest.h" |
| 72 #include "web/WebViewImpl.h" | 58 #include "sky/engine/public/web/Sky.h" |
| 73 #include "wtf/text/CString.h" | 59 #include "sky/engine/public/web/WebConsoleMessage.h" |
| 74 #include "wtf/text/StringBuilder.h" | 60 #include "sky/engine/public/web/WebFrameClient.h" |
| 75 #include "wtf/text/StringConcatenate.h" | 61 #include "sky/engine/public/web/WebInputEvent.h" |
| 76 #include "wtf/unicode/CharacterNames.h" | 62 #include "sky/engine/public/web/WebNode.h" |
| 63 #include "sky/engine/public/web/WebSettings.h" |
| 64 #include "sky/engine/public/web/WebTextDirection.h" |
| 65 #include "sky/engine/public/web/WebTouchAction.h" |
| 66 #include "sky/engine/public/web/WebUserGestureIndicator.h" |
| 67 #include "sky/engine/public/web/WebUserGestureToken.h" |
| 68 #include "sky/engine/public/web/WebViewClient.h" |
| 69 #include "sky/engine/web/WebInputEventConversion.h" |
| 70 #include "sky/engine/web/WebLocalFrameImpl.h" |
| 71 #include "sky/engine/web/WebSettingsImpl.h" |
| 72 #include "sky/engine/web/WebViewImpl.h" |
| 73 #include "sky/engine/wtf/text/CString.h" |
| 74 #include "sky/engine/wtf/text/StringBuilder.h" |
| 75 #include "sky/engine/wtf/text/StringConcatenate.h" |
| 76 #include "sky/engine/wtf/unicode/CharacterNames.h" |
| 77 | 77 |
| 78 namespace blink { | 78 namespace blink { |
| 79 | 79 |
| 80 ChromeClientImpl::ChromeClientImpl(WebViewImpl* webView) | 80 ChromeClientImpl::ChromeClientImpl(WebViewImpl* webView) |
| 81 : m_webView(webView) | 81 : m_webView(webView) |
| 82 { | 82 { |
| 83 } | 83 } |
| 84 | 84 |
| 85 ChromeClientImpl::~ChromeClientImpl() | 85 ChromeClientImpl::~ChromeClientImpl() |
| 86 { | 86 { |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 webFrame->client()->forwardInputEvent(&webEvent); | 404 webFrame->client()->forwardInputEvent(&webEvent); |
| 405 } else if (event->isWheelEvent()) { | 405 } else if (event->isWheelEvent()) { |
| 406 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas
t<WheelEvent*>(event)); | 406 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas
t<WheelEvent*>(event)); |
| 407 if (webEvent.type == WebInputEvent::Undefined) | 407 if (webEvent.type == WebInputEvent::Undefined) |
| 408 return; | 408 return; |
| 409 webFrame->client()->forwardInputEvent(&webEvent); | 409 webFrame->client()->forwardInputEvent(&webEvent); |
| 410 } | 410 } |
| 411 } | 411 } |
| 412 | 412 |
| 413 } // namespace blink | 413 } // namespace blink |
| OLD | NEW |