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 } | 441 } |
442 float fakePageScaleAnimationPageScaleForTesting() const { | 442 float fakePageScaleAnimationPageScaleForTesting() const { |
443 return m_fakePageScaleAnimationPageScaleFactor; | 443 return m_fakePageScaleAnimationPageScaleFactor; |
444 } | 444 } |
445 bool fakePageScaleAnimationUseAnchorForTesting() const { | 445 bool fakePageScaleAnimationUseAnchorForTesting() const { |
446 return m_fakePageScaleAnimationUseAnchor; | 446 return m_fakePageScaleAnimationUseAnchor; |
447 } | 447 } |
448 | 448 |
449 void enterFullscreen(LocalFrame&); | 449 void enterFullscreen(LocalFrame&); |
450 void exitFullscreen(LocalFrame&); | 450 void exitFullscreen(LocalFrame&); |
451 void fullscreenElementChanged(Element*, Element*); | 451 void fullscreenElementChanged(Element* fromElement, Element* toElement); |
452 | 452 |
453 // Exposed for the purpose of overriding device metrics. | 453 // Exposed for the purpose of overriding device metrics. |
454 void sendResizeEventAndRepaint(); | 454 void sendResizeEventAndRepaint(); |
455 | 455 |
456 // Exposed for testing purposes. | 456 // Exposed for testing purposes. |
457 bool hasHorizontalScrollbar(); | 457 bool hasHorizontalScrollbar(); |
458 bool hasVerticalScrollbar(); | 458 bool hasVerticalScrollbar(); |
459 | 459 |
460 // Exposed for tests. | 460 // Exposed for tests. |
461 unsigned numLinkHighlights() { return m_linkHighlights.size(); } | 461 unsigned numLinkHighlights() { return m_linkHighlights.size(); } |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
741 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 741 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
742 }; | 742 }; |
743 | 743 |
744 // We have no ways to check if the specified WebView is an instance of | 744 // We have no ways to check if the specified WebView is an instance of |
745 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 745 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
746 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 746 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
747 | 747 |
748 } // namespace blink | 748 } // namespace blink |
749 | 749 |
750 #endif | 750 #endif |
OLD | NEW |