| 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 void computeScaleAndScrollForFocusedNode(blink::Node* focusedNode, float& sc
ale, blink::IntPoint& scroll, bool& needAnimation); | 441 void computeScaleAndScrollForFocusedNode(blink::Node* focusedNode, float& sc
ale, blink::IntPoint& scroll, bool& needAnimation); |
| 442 | 442 |
| 443 void animateDoubleTapZoom(const blink::IntPoint&); | 443 void animateDoubleTapZoom(const blink::IntPoint&); |
| 444 | 444 |
| 445 void enableFakePageScaleAnimationForTesting(bool); | 445 void enableFakePageScaleAnimationForTesting(bool); |
| 446 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } | 446 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } |
| 447 blink::IntPoint fakePageScaleAnimationTargetPositionForTesting() const { ret
urn m_fakePageScaleAnimationTargetPosition; } | 447 blink::IntPoint fakePageScaleAnimationTargetPositionForTesting() const { ret
urn m_fakePageScaleAnimationTargetPosition; } |
| 448 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } | 448 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } |
| 449 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } | 449 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } |
| 450 | 450 |
| 451 bool fullscreenEnabled(blink::Element*); |
| 451 void enterFullScreenForElement(blink::Element*); | 452 void enterFullScreenForElement(blink::Element*); |
| 452 void exitFullScreenForElement(blink::Element*); | 453 void exitFullScreenForElement(blink::Element*); |
| 453 | 454 |
| 454 void clearCompositedSelectionBounds(); | 455 void clearCompositedSelectionBounds(); |
| 455 | 456 |
| 456 // Exposed for the purpose of overriding device metrics. | 457 // Exposed for the purpose of overriding device metrics. |
| 457 void sendResizeEventAndRepaint(); | 458 void sendResizeEventAndRepaint(); |
| 458 | 459 |
| 459 // Exposed for testing purposes. | 460 // Exposed for testing purposes. |
| 460 bool hasHorizontalScrollbar(); | 461 bool hasHorizontalScrollbar(); |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 bool m_userGestureObserved; | 726 bool m_userGestureObserved; |
| 726 }; | 727 }; |
| 727 | 728 |
| 728 // We have no ways to check if the specified WebView is an instance of | 729 // We have no ways to check if the specified WebView is an instance of |
| 729 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 730 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 730 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 731 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 731 | 732 |
| 732 } // namespace blink | 733 } // namespace blink |
| 733 | 734 |
| 734 #endif | 735 #endif |
| OLD | NEW |