| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 20 matching lines...) Expand all Loading... |
| 31 #ifndef WebViewImpl_h | 31 #ifndef WebViewImpl_h |
| 32 #define WebViewImpl_h | 32 #define WebViewImpl_h |
| 33 | 33 |
| 34 #include "core/page/ContextMenuProvider.h" | 34 #include "core/page/ContextMenuProvider.h" |
| 35 #include "core/page/EventWithHitTestResults.h" | 35 #include "core/page/EventWithHitTestResults.h" |
| 36 #include "platform/animation/CompositorAnimationTimeline.h" | 36 #include "platform/animation/CompositorAnimationTimeline.h" |
| 37 #include "platform/geometry/IntPoint.h" | 37 #include "platform/geometry/IntPoint.h" |
| 38 #include "platform/geometry/IntRect.h" | 38 #include "platform/geometry/IntRect.h" |
| 39 #include "platform/graphics/GraphicsLayer.h" | 39 #include "platform/graphics/GraphicsLayer.h" |
| 40 #include "platform/heap/Handle.h" | 40 #include "platform/heap/Handle.h" |
| 41 #include "public/platform/CoalescedWebInputEvent.h" |
| 41 #include "public/platform/WebDisplayMode.h" | 42 #include "public/platform/WebDisplayMode.h" |
| 42 #include "public/platform/WebFloatSize.h" | 43 #include "public/platform/WebFloatSize.h" |
| 43 #include "public/platform/WebGestureCurveTarget.h" | 44 #include "public/platform/WebGestureCurveTarget.h" |
| 44 #include "public/platform/WebGestureEvent.h" | 45 #include "public/platform/WebGestureEvent.h" |
| 45 #include "public/platform/WebInputEvent.h" | |
| 46 #include "public/platform/WebInputEventResult.h" | 46 #include "public/platform/WebInputEventResult.h" |
| 47 #include "public/platform/WebLayer.h" | 47 #include "public/platform/WebLayer.h" |
| 48 #include "public/platform/WebPoint.h" | 48 #include "public/platform/WebPoint.h" |
| 49 #include "public/platform/WebRect.h" | 49 #include "public/platform/WebRect.h" |
| 50 #include "public/platform/WebScheduler.h" | 50 #include "public/platform/WebScheduler.h" |
| 51 #include "public/platform/WebSize.h" | 51 #include "public/platform/WebSize.h" |
| 52 #include "public/platform/WebString.h" | 52 #include "public/platform/WebString.h" |
| 53 #include "public/platform/WebVector.h" | 53 #include "public/platform/WebVector.h" |
| 54 #include "public/web/WebNavigationPolicy.h" | 54 #include "public/web/WebNavigationPolicy.h" |
| 55 #include "public/web/WebPageImportanceSignals.h" | 55 #include "public/web/WebPageImportanceSignals.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 void updateAllLifecyclePhases() override; | 135 void updateAllLifecyclePhases() override; |
| 136 void paint(WebCanvas*, const WebRect&) override; | 136 void paint(WebCanvas*, const WebRect&) override; |
| 137 #if OS(ANDROID) | 137 #if OS(ANDROID) |
| 138 void paintIgnoringCompositing(WebCanvas*, const WebRect&) override; | 138 void paintIgnoringCompositing(WebCanvas*, const WebRect&) override; |
| 139 #endif | 139 #endif |
| 140 void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) override; | 140 void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) override; |
| 141 void compositeAndReadbackAsync( | 141 void compositeAndReadbackAsync( |
| 142 WebCompositeAndReadbackAsyncCallback*) override; | 142 WebCompositeAndReadbackAsyncCallback*) override; |
| 143 void themeChanged() override; | 143 void themeChanged() override; |
| 144 WebInputEventResult handleInputEvent(const WebInputEvent&) override; | 144 WebInputEventResult handleInputEvent(const CoalescedWebInputEvent&) override; |
| 145 void setCursorVisibilityState(bool isVisible) override; | 145 void setCursorVisibilityState(bool isVisible) override; |
| 146 bool hasTouchEventHandlersAt(const WebPoint&) override; | 146 bool hasTouchEventHandlersAt(const WebPoint&) override; |
| 147 | 147 |
| 148 void applyViewportDeltas(const WebFloatSize& visualViewportDelta, | 148 void applyViewportDeltas(const WebFloatSize& visualViewportDelta, |
| 149 const WebFloatSize& layoutViewportDelta, | 149 const WebFloatSize& layoutViewportDelta, |
| 150 const WebFloatSize& elasticOverscrollDelta, | 150 const WebFloatSize& elasticOverscrollDelta, |
| 151 float pageScaleDelta, | 151 float pageScaleDelta, |
| 152 float browserControlsShownRatioDelta) override; | 152 float browserControlsShownRatioDelta) override; |
| 153 void mouseCaptureLost() override; | 153 void mouseCaptureLost() override; |
| 154 void setFocus(bool enable) override; | 154 void setFocus(bool enable) override; |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 742 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
| 743 }; | 743 }; |
| 744 | 744 |
| 745 // We have no ways to check if the specified WebView is an instance of | 745 // We have no ways to check if the specified WebView is an instance of |
| 746 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 746 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 747 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 747 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 748 | 748 |
| 749 } // namespace blink | 749 } // namespace blink |
| 750 | 750 |
| 751 #endif | 751 #endif |
| OLD | NEW |