| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 virtual void resize(const WebSize&) OVERRIDE; | 95 virtual void resize(const WebSize&) OVERRIDE; |
| 96 virtual void resizePinchViewport(const WebSize&) OVERRIDE; | 96 virtual void resizePinchViewport(const WebSize&) OVERRIDE; |
| 97 virtual void willEndLiveResize() OVERRIDE; | 97 virtual void willEndLiveResize() OVERRIDE; |
| 98 virtual void willEnterFullScreen() OVERRIDE; | 98 virtual void willEnterFullScreen() OVERRIDE; |
| 99 virtual void didEnterFullScreen() OVERRIDE; | 99 virtual void didEnterFullScreen() OVERRIDE; |
| 100 virtual void willExitFullScreen() OVERRIDE; | 100 virtual void willExitFullScreen() OVERRIDE; |
| 101 virtual void didExitFullScreen() OVERRIDE; | 101 virtual void didExitFullScreen() OVERRIDE; |
| 102 virtual void animate(double) OVERRIDE; | 102 virtual void animate(double) OVERRIDE; |
| 103 virtual void layout() OVERRIDE; | 103 virtual void layout() OVERRIDE; |
| 104 virtual void enterForceCompositingMode(bool enable) OVERRIDE; | 104 virtual void enterForceCompositingMode(bool enable) OVERRIDE; |
| 105 virtual void paint(WebCanvas*, const WebRect&, PaintOptions = ReadbackFromCo
mpositorIfAvailable) OVERRIDE; | 105 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE; |
| 106 #if OS(ANDROID) | 106 #if OS(ANDROID) |
| 107 virtual void paintCompositedDeprecated(WebCanvas*, const WebRect&) OVERRIDE; | 107 virtual void paintCompositedDeprecated(WebCanvas*, const WebRect&) OVERRIDE; |
| 108 #endif | 108 #endif |
| 109 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) OVERRIDE; | 109 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) OVERRIDE; |
| 110 virtual bool isTrackingRepaints() const OVERRIDE; | 110 virtual bool isTrackingRepaints() const OVERRIDE; |
| 111 virtual void themeChanged() OVERRIDE; | 111 virtual void themeChanged() OVERRIDE; |
| 112 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE; | 112 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE; |
| 113 virtual void setCursorVisibilityState(bool isVisible) OVERRIDE; | 113 virtual void setCursorVisibilityState(bool isVisible) OVERRIDE; |
| 114 virtual bool hasTouchEventHandlersAt(const WebPoint&) OVERRIDE; | 114 virtual bool hasTouchEventHandlersAt(const WebPoint&) OVERRIDE; |
| 115 virtual void applyScrollAndScale(const WebSize&, float) OVERRIDE; | 115 virtual void applyScrollAndScale(const WebSize&, float) OVERRIDE; |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 // should be true. | 541 // should be true. |
| 542 WebDragOperation dragTargetDragEnterOrOver(const WebPoint& clientPoint, | 542 WebDragOperation dragTargetDragEnterOrOver(const WebPoint& clientPoint, |
| 543 const WebPoint& screenPoint, | 543 const WebPoint& screenPoint, |
| 544 DragAction, | 544 DragAction, |
| 545 int keyModifiers); | 545 int keyModifiers); |
| 546 | 546 |
| 547 void configureAutoResizeMode(); | 547 void configureAutoResizeMode(); |
| 548 | 548 |
| 549 void setIsAcceleratedCompositingActive(bool); | 549 void setIsAcceleratedCompositingActive(bool); |
| 550 void doComposite(); | 550 void doComposite(); |
| 551 void doPixelReadbackToCanvas(WebCanvas*, const WebCore::IntRect&); | |
| 552 void reallocateRenderer(); | 551 void reallocateRenderer(); |
| 553 void updateLayerTreeViewport(); | 552 void updateLayerTreeViewport(); |
| 554 void updateLayerTreeBackgroundColor(); | 553 void updateLayerTreeBackgroundColor(); |
| 555 void updateRootLayerTransform(); | 554 void updateRootLayerTransform(); |
| 556 void updateLayerTreeDeviceScaleFactor(); | 555 void updateLayerTreeDeviceScaleFactor(); |
| 557 | 556 |
| 558 // Helper function: Widens the width of |source| by the specified margins | 557 // Helper function: Widens the width of |source| by the specified margins |
| 559 // while keeping it smaller than page width. | 558 // while keeping it smaller than page width. |
| 560 WebRect widenRectWithinPageBounds(const WebRect& source, int targetMargin, i
nt minimumMargin); | 559 WebRect widenRectWithinPageBounds(const WebRect& source, int targetMargin, i
nt minimumMargin); |
| 561 | 560 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 bool m_userGestureObserved; | 723 bool m_userGestureObserved; |
| 725 }; | 724 }; |
| 726 | 725 |
| 727 // We have no ways to check if the specified WebView is an instance of | 726 // We have no ways to check if the specified WebView is an instance of |
| 728 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 727 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 729 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 728 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 730 | 729 |
| 731 } // namespace blink | 730 } // namespace blink |
| 732 | 731 |
| 733 #endif | 732 #endif |
| OLD | NEW |