| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 bool isFlinging() const override { return !!m_gestureAnimation.get(); } | 278 bool isFlinging() const override { return !!m_gestureAnimation.get(); } |
| 279 void setShowPaintRects(bool) override; | 279 void setShowPaintRects(bool) override; |
| 280 void setShowDebugBorders(bool); | 280 void setShowDebugBorders(bool); |
| 281 void setShowFPSCounter(bool) override; | 281 void setShowFPSCounter(bool) override; |
| 282 void setShowScrollBottleneckRects(bool) override; | 282 void setShowScrollBottleneckRects(bool) override; |
| 283 void acceptLanguagesChanged() override; | 283 void acceptLanguagesChanged() override; |
| 284 | 284 |
| 285 // WebScheduler::InterventionReporter implementation: | 285 // WebScheduler::InterventionReporter implementation: |
| 286 void ReportIntervention(const WebString& message) override; | 286 void ReportIntervention(const WebString& message) override; |
| 287 | 287 |
| 288 void didUpdateFullScreenSize(); | 288 void didUpdateFullscreenSize(); |
| 289 | 289 |
| 290 float defaultMinimumPageScaleFactor() const; | 290 float defaultMinimumPageScaleFactor() const; |
| 291 float defaultMaximumPageScaleFactor() const; | 291 float defaultMaximumPageScaleFactor() const; |
| 292 float minimumPageScaleFactor() const; | 292 float minimumPageScaleFactor() const; |
| 293 float maximumPageScaleFactor() const; | 293 float maximumPageScaleFactor() const; |
| 294 float clampPageScaleFactorToLimits(float) const; | 294 float clampPageScaleFactorToLimits(float) const; |
| 295 void resetScaleStateImmediately(); | 295 void resetScaleStateImmediately(); |
| 296 | 296 |
| 297 HitTestResult coreHitTestResultAt(const WebPoint&); | 297 HitTestResult coreHitTestResultAt(const WebPoint&); |
| 298 void invalidateRect(const IntRect&); | 298 void invalidateRect(const IntRect&); |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 void computeScaleAndScrollForFocusedNode(Node* focusedNode, bool zoomInToLeg
ibleScale, float& scale, IntPoint& scroll, bool& needAnimation); | 456 void computeScaleAndScrollForFocusedNode(Node* focusedNode, bool zoomInToLeg
ibleScale, float& scale, IntPoint& scroll, bool& needAnimation); |
| 457 | 457 |
| 458 void animateDoubleTapZoom(const IntPoint&); | 458 void animateDoubleTapZoom(const IntPoint&); |
| 459 | 459 |
| 460 void enableFakePageScaleAnimationForTesting(bool); | 460 void enableFakePageScaleAnimationForTesting(bool); |
| 461 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } | 461 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } |
| 462 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f
akePageScaleAnimationTargetPosition; } | 462 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f
akePageScaleAnimationTargetPosition; } |
| 463 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } | 463 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } |
| 464 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } | 464 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } |
| 465 | 465 |
| 466 void enterFullScreenForElement(Element*); | 466 void enterFullscreenForElement(Element*); |
| 467 void exitFullScreenForElement(Element*); | 467 void exitFullscreenForElement(Element*); |
| 468 | 468 |
| 469 // Exposed for the purpose of overriding device metrics. | 469 // Exposed for the purpose of overriding device metrics. |
| 470 void sendResizeEventAndRepaint(); | 470 void sendResizeEventAndRepaint(); |
| 471 | 471 |
| 472 // Exposed for testing purposes. | 472 // Exposed for testing purposes. |
| 473 bool hasHorizontalScrollbar(); | 473 bool hasHorizontalScrollbar(); |
| 474 bool hasVerticalScrollbar(); | 474 bool hasVerticalScrollbar(); |
| 475 | 475 |
| 476 // Exposed for tests. | 476 // Exposed for tests. |
| 477 unsigned numLinkHighlights() { return m_linkHighlights.size(); } | 477 unsigned numLinkHighlights() { return m_linkHighlights.size(); } |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 779 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 779 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
| 780 }; | 780 }; |
| 781 | 781 |
| 782 // We have no ways to check if the specified WebView is an instance of | 782 // We have no ways to check if the specified WebView is an instance of |
| 783 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 783 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 784 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 784 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 785 | 785 |
| 786 } // namespace blink | 786 } // namespace blink |
| 787 | 787 |
| 788 #endif | 788 #endif |
| OLD | NEW |