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 28 matching lines...) Expand all Loading... |
39 #include "platform/graphics/GraphicsLayer.h" | 39 #include "platform/graphics/GraphicsLayer.h" |
40 #include "platform/graphics/compositing/PaintArtifactCompositor.h" | 40 #include "platform/graphics/compositing/PaintArtifactCompositor.h" |
41 #include "platform/heap/Handle.h" | 41 #include "platform/heap/Handle.h" |
42 #include "public/platform/WebDisplayMode.h" | 42 #include "public/platform/WebDisplayMode.h" |
43 #include "public/platform/WebFloatSize.h" | 43 #include "public/platform/WebFloatSize.h" |
44 #include "public/platform/WebGestureCurveTarget.h" | 44 #include "public/platform/WebGestureCurveTarget.h" |
45 #include "public/platform/WebInputEventResult.h" | 45 #include "public/platform/WebInputEventResult.h" |
46 #include "public/platform/WebLayer.h" | 46 #include "public/platform/WebLayer.h" |
47 #include "public/platform/WebPoint.h" | 47 #include "public/platform/WebPoint.h" |
48 #include "public/platform/WebRect.h" | 48 #include "public/platform/WebRect.h" |
| 49 #include "public/platform/WebScheduler.h" |
49 #include "public/platform/WebSize.h" | 50 #include "public/platform/WebSize.h" |
50 #include "public/platform/WebString.h" | 51 #include "public/platform/WebString.h" |
51 #include "public/platform/WebVector.h" | 52 #include "public/platform/WebVector.h" |
52 #include "public/web/WebInputEvent.h" | 53 #include "public/web/WebInputEvent.h" |
53 #include "public/web/WebNavigationPolicy.h" | 54 #include "public/web/WebNavigationPolicy.h" |
54 #include "public/web/WebPageImportanceSignals.h" | 55 #include "public/web/WebPageImportanceSignals.h" |
55 #include "public/web/WebView.h" | 56 #include "public/web/WebView.h" |
56 #include "web/ChromeClientImpl.h" | 57 #include "web/ChromeClientImpl.h" |
57 #include "web/ContextMenuClientImpl.h" | 58 #include "web/ContextMenuClientImpl.h" |
58 #include "web/EditorClientImpl.h" | 59 #include "web/EditorClientImpl.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 class WebPagePopupImpl; | 93 class WebPagePopupImpl; |
93 class WebPlugin; | 94 class WebPlugin; |
94 class WebRemoteFrame; | 95 class WebRemoteFrame; |
95 class WebSelection; | 96 class WebSelection; |
96 class WebSettingsImpl; | 97 class WebSettingsImpl; |
97 class WebViewScheduler; | 98 class WebViewScheduler; |
98 | 99 |
99 class WEB_EXPORT WebViewImpl final : WTF_NON_EXPORTED_BASE(public WebView) | 100 class WEB_EXPORT WebViewImpl final : WTF_NON_EXPORTED_BASE(public WebView) |
100 , public RefCounted<WebViewImpl> | 101 , public RefCounted<WebViewImpl> |
101 , WTF_NON_EXPORTED_BASE(public WebGestureCurveTarget) | 102 , WTF_NON_EXPORTED_BASE(public WebGestureCurveTarget) |
102 , public PageWidgetEventHandler { | 103 , public PageWidgetEventHandler |
| 104 , public WebScheduler::InterventionReporter { |
103 public: | 105 public: |
104 static WebViewImpl* create(WebViewClient*, WebPageVisibilityState); | 106 static WebViewImpl* create(WebViewClient*, WebPageVisibilityState); |
105 static HashSet<WebViewImpl*>& allInstances(); | 107 static HashSet<WebViewImpl*>& allInstances(); |
106 | 108 |
107 // WebWidget methods: | 109 // WebWidget methods: |
108 void close() override; | 110 void close() override; |
109 WebSize size() override; | 111 WebSize size() override; |
110 void resize(const WebSize&) override; | 112 void resize(const WebSize&) override; |
111 void resizeVisualViewport(const WebSize&) override; | 113 void resizeVisualViewport(const WebSize&) override; |
112 void didEnterFullscreen() override; | 114 void didEnterFullscreen() override; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 WebPageImportanceSignals* pageImportanceSignals() override; | 277 WebPageImportanceSignals* pageImportanceSignals() override; |
276 void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&)
override; | 278 void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&)
override; |
277 bool endActiveFlingAnimation() override; | 279 bool endActiveFlingAnimation() override; |
278 bool isFlinging() const override { return !!m_gestureAnimation.get(); } | 280 bool isFlinging() const override { return !!m_gestureAnimation.get(); } |
279 void setShowPaintRects(bool) override; | 281 void setShowPaintRects(bool) override; |
280 void setShowDebugBorders(bool); | 282 void setShowDebugBorders(bool); |
281 void setShowFPSCounter(bool) override; | 283 void setShowFPSCounter(bool) override; |
282 void setShowScrollBottleneckRects(bool) override; | 284 void setShowScrollBottleneckRects(bool) override; |
283 void acceptLanguagesChanged() override; | 285 void acceptLanguagesChanged() override; |
284 | 286 |
| 287 // WebScheduler::InterventionReporter implementation: |
| 288 void ReportIntervention(const WebString& message) override; |
| 289 |
285 void didUpdateFullScreenSize(); | 290 void didUpdateFullScreenSize(); |
286 | 291 |
287 float defaultMinimumPageScaleFactor() const; | 292 float defaultMinimumPageScaleFactor() const; |
288 float defaultMaximumPageScaleFactor() const; | 293 float defaultMaximumPageScaleFactor() const; |
289 float minimumPageScaleFactor() const; | 294 float minimumPageScaleFactor() const; |
290 float maximumPageScaleFactor() const; | 295 float maximumPageScaleFactor() const; |
291 float clampPageScaleFactorToLimits(float) const; | 296 float clampPageScaleFactorToLimits(float) const; |
292 void resetScaleStateImmediately(); | 297 void resetScaleStateImmediately(); |
293 | 298 |
294 HitTestResult coreHitTestResultAt(const WebPoint&); | 299 HitTestResult coreHitTestResultAt(const WebPoint&); |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 784 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
780 }; | 785 }; |
781 | 786 |
782 // We have no ways to check if the specified WebView is an instance of | 787 // We have no ways to check if the specified WebView is an instance of |
783 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 788 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
784 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 789 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
785 | 790 |
786 } // namespace blink | 791 } // namespace blink |
787 | 792 |
788 #endif | 793 #endif |
OLD | NEW |