| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 void performCustomContextMenuAction(unsigned action) override; | 261 void performCustomContextMenuAction(unsigned action) override; |
| 262 void showContextMenu() override; | 262 void showContextMenu() override; |
| 263 void extractSmartClipData(WebRect, WebString&, WebString&, WebRect&) overrid
e; | 263 void extractSmartClipData(WebRect, WebString&, WebString&, WebRect&) overrid
e; |
| 264 void hidePopups() override; | 264 void hidePopups() override; |
| 265 void setPageOverlayColor(WebColor) override; | 265 void setPageOverlayColor(WebColor) override; |
| 266 void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&)
override; | 266 void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&)
override; |
| 267 bool endActiveFlingAnimation() override; | 267 bool endActiveFlingAnimation() override; |
| 268 void setShowPaintRects(bool) override; | 268 void setShowPaintRects(bool) override; |
| 269 void setShowDebugBorders(bool); | 269 void setShowDebugBorders(bool); |
| 270 void setShowFPSCounter(bool) override; | 270 void setShowFPSCounter(bool) override; |
| 271 void setContinuousPaintingEnabled(bool) override; | |
| 272 void setShowScrollBottleneckRects(bool) override; | 271 void setShowScrollBottleneckRects(bool) override; |
| 273 void acceptLanguagesChanged() override; | 272 void acceptLanguagesChanged() override; |
| 274 | 273 |
| 275 // WebViewImpl | 274 // WebViewImpl |
| 276 void enableViewport(); | 275 void enableViewport(); |
| 277 void disableViewport(); | 276 void disableViewport(); |
| 278 | 277 |
| 279 float defaultMinimumPageScaleFactor() const; | 278 float defaultMinimumPageScaleFactor() const; |
| 280 float defaultMaximumPageScaleFactor() const; | 279 float defaultMaximumPageScaleFactor() const; |
| 281 float minimumPageScaleFactor() const; | 280 float minimumPageScaleFactor() const; |
| 282 float maximumPageScaleFactor() const; | 281 float maximumPageScaleFactor() const; |
| 283 float clampPageScaleFactorToLimits(float) const; | 282 float clampPageScaleFactorToLimits(float) const; |
| 284 void resetScrollAndScaleStateImmediately(); | 283 void resetScrollAndScaleStateImmediately(); |
| 285 | 284 |
| 286 HitTestResult coreHitTestResultAt(const WebPoint&); | 285 HitTestResult coreHitTestResultAt(const WebPoint&); |
| 287 void suppressInvalidations(bool enable); | 286 void suppressInvalidations(bool enable); |
| 288 void invalidateRect(const IntRect&); | 287 void invalidateRect(const IntRect&); |
| 289 | 288 |
| 290 void setIgnoreInputEvents(bool newValue); | 289 void setIgnoreInputEvents(bool newValue); |
| 291 void setBackgroundColorOverride(WebColor); | 290 void setBackgroundColorOverride(WebColor); |
| 292 void setZoomFactorOverride(float); | 291 void setZoomFactorOverride(float); |
| 293 void updateShowFPSCounterAndContinuousPainting(); | 292 void updateShowFPSCounter(); |
| 294 void setCompositorDeviceScaleFactorOverride(float); | 293 void setCompositorDeviceScaleFactorOverride(float); |
| 295 void setRootLayerTransform(const WebSize& offset, float scale); | 294 void setRootLayerTransform(const WebSize& offset, float scale); |
| 296 | 295 |
| 297 Color baseBackgroundColor() const { return m_baseBackgroundColor; } | 296 Color baseBackgroundColor() const { return m_baseBackgroundColor; } |
| 298 | 297 |
| 299 WebColor backgroundColorOverride() const { return m_backgroundColorOverride;
} | 298 WebColor backgroundColorOverride() const { return m_backgroundColorOverride;
} |
| 300 | 299 |
| 301 const WebPoint& lastMouseDownPoint() const | 300 const WebPoint& lastMouseDownPoint() const |
| 302 { | 301 { |
| 303 return m_lastMouseDownPoint; | 302 return m_lastMouseDownPoint; |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation; | 744 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation; |
| 746 WebPoint m_positionOnFlingStart; | 745 WebPoint m_positionOnFlingStart; |
| 747 WebPoint m_globalPositionOnFlingStart; | 746 WebPoint m_globalPositionOnFlingStart; |
| 748 int m_flingModifier; | 747 int m_flingModifier; |
| 749 bool m_flingSourceDevice; | 748 bool m_flingSourceDevice; |
| 750 Vector<OwnPtr<LinkHighlightImpl>> m_linkHighlights; | 749 Vector<OwnPtr<LinkHighlightImpl>> m_linkHighlights; |
| 751 OwnPtr<WebCompositorAnimationTimeline> m_linkHighlightsTimeline; | 750 OwnPtr<WebCompositorAnimationTimeline> m_linkHighlightsTimeline; |
| 752 OwnPtrWillBePersistent<FullscreenController> m_fullscreenController; | 751 OwnPtrWillBePersistent<FullscreenController> m_fullscreenController; |
| 753 | 752 |
| 754 bool m_showFPSCounter; | 753 bool m_showFPSCounter; |
| 755 bool m_continuousPaintingEnabled; | |
| 756 WebColor m_baseBackgroundColor; | 754 WebColor m_baseBackgroundColor; |
| 757 WebColor m_backgroundColorOverride; | 755 WebColor m_backgroundColorOverride; |
| 758 float m_zoomFactorOverride; | 756 float m_zoomFactorOverride; |
| 759 | 757 |
| 760 bool m_userGestureObserved; | 758 bool m_userGestureObserved; |
| 761 WebDisplayMode m_displayMode; | 759 WebDisplayMode m_displayMode; |
| 762 | 760 |
| 763 FloatSize m_elasticOverscroll; | 761 FloatSize m_elasticOverscroll; |
| 764 | 762 |
| 765 RefPtrWillBePersistent<EventListener> m_popupMouseWheelEventListener; | 763 RefPtrWillBePersistent<EventListener> m_popupMouseWheelEventListener; |
| 766 | 764 |
| 767 WebPageImportanceSignals m_pageImportanceSignals; | 765 WebPageImportanceSignals m_pageImportanceSignals; |
| 768 }; | 766 }; |
| 769 | 767 |
| 770 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 768 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
| 771 // We have no ways to check if the specified WebView is an instance of | 769 // We have no ways to check if the specified WebView is an instance of |
| 772 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 770 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 773 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 771 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 774 | 772 |
| 775 } // namespace blink | 773 } // namespace blink |
| 776 | 774 |
| 777 #endif | 775 #endif |
| OLD | NEW |