| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 float defaultMaximumPageScaleFactor() const; | 279 float defaultMaximumPageScaleFactor() const; |
| 280 float minimumPageScaleFactor() const; | 280 float minimumPageScaleFactor() const; |
| 281 float maximumPageScaleFactor() const; | 281 float maximumPageScaleFactor() const; |
| 282 float clampPageScaleFactorToLimits(float) const; | 282 float clampPageScaleFactorToLimits(float) const; |
| 283 void resetScaleStateImmediately(); | 283 void resetScaleStateImmediately(); |
| 284 | 284 |
| 285 HitTestResult coreHitTestResultAt(const WebPoint&); | 285 HitTestResult coreHitTestResultAt(const WebPoint&); |
| 286 void invalidateRect(const IntRect&); | 286 void invalidateRect(const IntRect&); |
| 287 | 287 |
| 288 void setBaseBackgroundColor(WebColor); | 288 void setBaseBackgroundColor(WebColor); |
| 289 void setBaseBackgroundColorOverride(WebColor); |
| 289 void setBackgroundColorOverride(WebColor); | 290 void setBackgroundColorOverride(WebColor); |
| 290 void setZoomFactorOverride(float); | 291 void setZoomFactorOverride(float); |
| 291 void setCompositorDeviceScaleFactorOverride(float); | 292 void setCompositorDeviceScaleFactorOverride(float); |
| 292 void setDeviceEmulationTransform(const TransformationMatrix&); | 293 void setDeviceEmulationTransform(const TransformationMatrix&); |
| 293 TransformationMatrix getDeviceEmulationTransformForTesting() const; | 294 TransformationMatrix getDeviceEmulationTransformForTesting() const; |
| 294 | 295 |
| 295 Color baseBackgroundColor() const { return m_baseBackgroundColor; } | 296 Color baseBackgroundColor() const; |
| 296 | |
| 297 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } | 297 WebColor backgroundColorOverride() const { return m_backgroundColorOverride; } |
| 298 | 298 |
| 299 Frame* focusedCoreFrame() const; | 299 Frame* focusedCoreFrame() const; |
| 300 | 300 |
| 301 // Returns the currently focused Element or null if no element has focus. | 301 // Returns the currently focused Element or null if no element has focus. |
| 302 Element* focusedElement() const; | 302 Element* focusedElement() const; |
| 303 | 303 |
| 304 static WebViewImpl* fromPage(Page*); | 304 static WebViewImpl* fromPage(Page*); |
| 305 | 305 |
| 306 WebViewClient* client() { return m_client; } | 306 WebViewClient* client() { return m_client; } |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 | 525 |
| 526 // Overrides the compositor visibility. See the description of | 526 // Overrides the compositor visibility. See the description of |
| 527 // m_overrideCompositorVisibility for more details. | 527 // m_overrideCompositorVisibility for more details. |
| 528 void setCompositorVisibility(bool); | 528 void setCompositorVisibility(bool); |
| 529 | 529 |
| 530 // TODO(lfg): Remove once WebViewFrameWidget is deleted. | 530 // TODO(lfg): Remove once WebViewFrameWidget is deleted. |
| 531 void scheduleAnimationForWidget(); | 531 void scheduleAnimationForWidget(); |
| 532 bool getCompositionCharacterBounds(WebVector<WebRect>&) override; | 532 bool getCompositionCharacterBounds(WebVector<WebRect>&) override; |
| 533 void applyReplacementRange(const WebRange&) override; | 533 void applyReplacementRange(const WebRange&) override; |
| 534 | 534 |
| 535 void updateBaseBackgroundColor(); |
| 536 |
| 535 friend class WebView; // So WebView::Create can call our constructor | 537 friend class WebView; // So WebView::Create can call our constructor |
| 536 friend class WebViewFrameWidget; | 538 friend class WebViewFrameWidget; |
| 537 friend class WTF::RefCounted<WebViewImpl>; | 539 friend class WTF::RefCounted<WebViewImpl>; |
| 538 friend void setCurrentInputEventForTest(const WebInputEvent*); | 540 friend void setCurrentInputEventForTest(const WebInputEvent*); |
| 539 | 541 |
| 540 explicit WebViewImpl(WebViewClient*, WebPageVisibilityState); | 542 explicit WebViewImpl(WebViewClient*, WebPageVisibilityState); |
| 541 ~WebViewImpl() override; | 543 ~WebViewImpl() override; |
| 542 | 544 |
| 543 void hideSelectPopup(); | 545 void hideSelectPopup(); |
| 544 | 546 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 std::unique_ptr<WebActiveGestureAnimation> m_gestureAnimation; | 701 std::unique_ptr<WebActiveGestureAnimation> m_gestureAnimation; |
| 700 WebPoint m_positionOnFlingStart; | 702 WebPoint m_positionOnFlingStart; |
| 701 WebPoint m_globalPositionOnFlingStart; | 703 WebPoint m_globalPositionOnFlingStart; |
| 702 int m_flingModifier; | 704 int m_flingModifier; |
| 703 WebGestureDevice m_flingSourceDevice; | 705 WebGestureDevice m_flingSourceDevice; |
| 704 Vector<std::unique_ptr<LinkHighlightImpl>> m_linkHighlights; | 706 Vector<std::unique_ptr<LinkHighlightImpl>> m_linkHighlights; |
| 705 std::unique_ptr<CompositorAnimationTimeline> m_linkHighlightsTimeline; | 707 std::unique_ptr<CompositorAnimationTimeline> m_linkHighlightsTimeline; |
| 706 std::unique_ptr<FullscreenController> m_fullscreenController; | 708 std::unique_ptr<FullscreenController> m_fullscreenController; |
| 707 | 709 |
| 708 WebColor m_baseBackgroundColor; | 710 WebColor m_baseBackgroundColor; |
| 711 WebColor m_baseBackgroundColorOverride; |
| 709 WebColor m_backgroundColorOverride; | 712 WebColor m_backgroundColorOverride; |
| 710 float m_zoomFactorOverride; | 713 float m_zoomFactorOverride; |
| 711 | 714 |
| 712 bool m_userGestureObserved; | 715 bool m_userGestureObserved; |
| 713 bool m_shouldDispatchFirstVisuallyNonEmptyLayout; | 716 bool m_shouldDispatchFirstVisuallyNonEmptyLayout; |
| 714 bool m_shouldDispatchFirstLayoutAfterFinishedParsing; | 717 bool m_shouldDispatchFirstLayoutAfterFinishedParsing; |
| 715 bool m_shouldDispatchFirstLayoutAfterFinishedLoading; | 718 bool m_shouldDispatchFirstLayoutAfterFinishedLoading; |
| 716 WebDisplayMode m_displayMode; | 719 WebDisplayMode m_displayMode; |
| 717 | 720 |
| 718 FloatSize m_elasticOverscroll; | 721 FloatSize m_elasticOverscroll; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 739 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 742 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
| 740 }; | 743 }; |
| 741 | 744 |
| 742 // 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 |
| 743 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 746 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 744 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 747 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 745 | 748 |
| 746 } // namespace blink | 749 } // namespace blink |
| 747 | 750 |
| 748 #endif | 751 #endif |
| OLD | NEW |