| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be found | 2 // Use of this source code is governed by a BSD-style license that can be found |
| 3 // in the LICENSE file. | 3 // in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebViewFrameWidget_h | 5 #ifndef WebViewFrameWidget_h |
| 6 #define WebViewFrameWidget_h | 6 #define WebViewFrameWidget_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/frame/WebFrameWidgetBase.h" | 9 #include "core/frame/WebFrameWidgetBase.h" |
| 10 #include "core/frame/WebLocalFrameBase.h" | 10 #include "core/frame/WebLocalFrameBase.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 void DidEnterFullscreen() override; | 50 void DidEnterFullscreen() override; |
| 51 void DidExitFullscreen() override; | 51 void DidExitFullscreen() override; |
| 52 void SetSuppressFrameRequestsWorkaroundFor704763Only(bool) final; | 52 void SetSuppressFrameRequestsWorkaroundFor704763Only(bool) final; |
| 53 void BeginFrame(double last_frame_time_monotonic) override; | 53 void BeginFrame(double last_frame_time_monotonic) override; |
| 54 void UpdateAllLifecyclePhases() override; | 54 void UpdateAllLifecyclePhases() override; |
| 55 void Paint(WebCanvas*, const WebRect& view_port) override; | 55 void Paint(WebCanvas*, const WebRect& view_port) override; |
| 56 void LayoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) override; | 56 void LayoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) override; |
| 57 void CompositeAndReadbackAsync( | 57 void CompositeAndReadbackAsync( |
| 58 WebCompositeAndReadbackAsyncCallback*) override; | 58 WebCompositeAndReadbackAsyncCallback*) override; |
| 59 void ThemeChanged() override; | 59 void ThemeChanged() override; |
| 60 // WebFrame* HitTestFrameAt(const WebFloatPoint&) override; |
| 60 WebInputEventResult HandleInputEvent(const WebCoalescedInputEvent&) override; | 61 WebInputEventResult HandleInputEvent(const WebCoalescedInputEvent&) override; |
| 61 void SetCursorVisibilityState(bool is_visible) override; | 62 void SetCursorVisibilityState(bool is_visible) override; |
| 62 bool HasTouchEventHandlersAt(const WebPoint&) override; | 63 bool HasTouchEventHandlersAt(const WebPoint&) override; |
| 63 void ApplyViewportDeltas(const WebFloatSize& visual_viewport_delta, | 64 void ApplyViewportDeltas(const WebFloatSize& visual_viewport_delta, |
| 64 const WebFloatSize& layout_viewport_delta, | 65 const WebFloatSize& layout_viewport_delta, |
| 65 const WebFloatSize& elastic_overscroll_delta, | 66 const WebFloatSize& elastic_overscroll_delta, |
| 66 float scale_factor, | 67 float scale_factor, |
| 67 float browser_controls_shown_ratio_delta) override; | 68 float browser_controls_shown_ratio_delta) override; |
| 68 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel, | 69 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel, |
| 69 bool has_scrolled_by_touch) override; | 70 bool has_scrolled_by_touch) override; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 97 // WebFrameWidgetBase overrides: | 98 // WebFrameWidgetBase overrides: |
| 98 bool ForSubframe() const override { return false; } | 99 bool ForSubframe() const override { return false; } |
| 99 void ScheduleAnimation() override; | 100 void ScheduleAnimation() override; |
| 100 CompositorMutatorImpl* CompositorMutator() override; | 101 CompositorMutatorImpl* CompositorMutator() override; |
| 101 void SetRootGraphicsLayer(GraphicsLayer*) override; | 102 void SetRootGraphicsLayer(GraphicsLayer*) override; |
| 102 GraphicsLayer* RootGraphicsLayer() const override; | 103 GraphicsLayer* RootGraphicsLayer() const override; |
| 103 void SetRootLayer(WebLayer*) override; | 104 void SetRootLayer(WebLayer*) override; |
| 104 WebLayerTreeView* GetLayerTreeView() const override; | 105 WebLayerTreeView* GetLayerTreeView() const override; |
| 105 CompositorAnimationHost* AnimationHost() const override; | 106 CompositorAnimationHost* AnimationHost() const override; |
| 106 WebWidgetClient* Client() const override { return client_; } | 107 WebWidgetClient* Client() const override { return client_; } |
| 108 WebHitTestResult HitTestResultAt(const WebPoint&) override; |
| 107 HitTestResult CoreHitTestResultAt(const WebPoint&) override; | 109 HitTestResult CoreHitTestResultAt(const WebPoint&) override; |
| 108 | 110 |
| 109 DECLARE_VIRTUAL_TRACE(); | 111 DECLARE_VIRTUAL_TRACE(); |
| 110 | 112 |
| 111 private: | 113 private: |
| 112 WebWidgetClient* client_; | 114 WebWidgetClient* client_; |
| 113 RefPtr<WebViewBase> web_view_; | 115 RefPtr<WebViewBase> web_view_; |
| 114 Member<WebLocalFrameBase> main_frame_; | 116 Member<WebLocalFrameBase> main_frame_; |
| 115 | 117 |
| 116 SelfKeepAlive<WebViewFrameWidget> self_keep_alive_; | 118 SelfKeepAlive<WebViewFrameWidget> self_keep_alive_; |
| 117 }; | 119 }; |
| 118 | 120 |
| 119 } // namespace blink | 121 } // namespace blink |
| 120 | 122 |
| 121 #endif // WebViewFrameWidget_h | 123 #endif // WebViewFrameWidget_h |
| OLD | NEW |