| 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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 | 460 |
| 461 void enableFakePageScaleAnimationForTesting(bool); | 461 void enableFakePageScaleAnimationForTesting(bool); |
| 462 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } | 462 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } |
| 463 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f
akePageScaleAnimationTargetPosition; } | 463 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f
akePageScaleAnimationTargetPosition; } |
| 464 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } | 464 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } |
| 465 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } | 465 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } |
| 466 | 466 |
| 467 void enterFullScreenForElement(Element*); | 467 void enterFullScreenForElement(Element*); |
| 468 void exitFullScreenForElement(Element*); | 468 void exitFullScreenForElement(Element*); |
| 469 | 469 |
| 470 void clearCompositedSelection(); | |
| 471 void updateCompositedSelection(const WebSelection&); | |
| 472 | |
| 473 // Exposed for the purpose of overriding device metrics. | 470 // Exposed for the purpose of overriding device metrics. |
| 474 void sendResizeEventAndRepaint(); | 471 void sendResizeEventAndRepaint(); |
| 475 | 472 |
| 476 // Exposed for testing purposes. | 473 // Exposed for testing purposes. |
| 477 bool hasHorizontalScrollbar(); | 474 bool hasHorizontalScrollbar(); |
| 478 bool hasVerticalScrollbar(); | 475 bool hasVerticalScrollbar(); |
| 479 | 476 |
| 480 // Exposed for tests. | 477 // Exposed for tests. |
| 481 unsigned numLinkHighlights() { return m_linkHighlights.size(); } | 478 unsigned numLinkHighlights() { return m_linkHighlights.size(); } |
| 482 LinkHighlightImpl* getLinkHighlight(int i) { return m_linkHighlights[i].get(
); } | 479 LinkHighlightImpl* getLinkHighlight(int i) { return m_linkHighlights[i].get(
); } |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 780 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
| 784 }; | 781 }; |
| 785 | 782 |
| 786 // We have no ways to check if the specified WebView is an instance of | 783 // We have no ways to check if the specified WebView is an instance of |
| 787 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 784 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 788 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 785 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 789 | 786 |
| 790 } // namespace blink | 787 } // namespace blink |
| 791 | 788 |
| 792 #endif | 789 #endif |
| OLD | NEW |