| 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 | 425 |
| 426 // Returns the input event we're currently processing. This is used in some | 426 // Returns the input event we're currently processing. This is used in some |
| 427 // cases where the WebCore DOM event doesn't have the information we need. | 427 // cases where the WebCore DOM event doesn't have the information we need. |
| 428 static const WebInputEvent* currentInputEvent() | 428 static const WebInputEvent* currentInputEvent() |
| 429 { | 429 { |
| 430 return m_currentInputEvent; | 430 return m_currentInputEvent; |
| 431 } | 431 } |
| 432 | 432 |
| 433 GraphicsLayer* rootGraphicsLayer(); | 433 GraphicsLayer* rootGraphicsLayer(); |
| 434 void setRootGraphicsLayer(GraphicsLayer*); | 434 void setRootGraphicsLayer(GraphicsLayer*); |
| 435 GraphicsLayerFactory* graphicsLayerFactory() const; | |
| 436 PaintLayerCompositor* compositor() const; | 435 PaintLayerCompositor* compositor() const; |
| 437 void scheduleAnimation(); | 436 void scheduleAnimation(); |
| 438 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*); | 437 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*); |
| 439 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*); | 438 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*); |
| 440 CompositorAnimationTimeline* linkHighlightsTimeline() const { return m_linkH
ighlightsTimeline.get(); } | 439 CompositorAnimationTimeline* linkHighlightsTimeline() const { return m_linkH
ighlightsTimeline.get(); } |
| 441 | 440 |
| 442 WebViewScheduler* scheduler() const override; | 441 WebViewScheduler* scheduler() const override; |
| 443 void setVisibilityState(WebPageVisibilityState, bool) override; | 442 void setVisibilityState(WebPageVisibilityState, bool) override; |
| 444 | 443 |
| 445 bool hasOpenedPopup() const { return m_pagePopup; } | 444 bool hasOpenedPopup() const { return m_pagePopup; } |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 | 725 |
| 727 // If set, the (plugin) node which has mouse capture. | 726 // If set, the (plugin) node which has mouse capture. |
| 728 RefPtrWillBePersistent<Node> m_mouseCaptureNode; | 727 RefPtrWillBePersistent<Node> m_mouseCaptureNode; |
| 729 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; | 728 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; |
| 730 | 729 |
| 731 RefPtr<UserGestureToken> m_pointerLockGestureToken; | 730 RefPtr<UserGestureToken> m_pointerLockGestureToken; |
| 732 | 731 |
| 733 WebLayerTreeView* m_layerTreeView; | 732 WebLayerTreeView* m_layerTreeView; |
| 734 WebLayer* m_rootLayer; | 733 WebLayer* m_rootLayer; |
| 735 GraphicsLayer* m_rootGraphicsLayer; | 734 GraphicsLayer* m_rootGraphicsLayer; |
| 736 OwnPtr<GraphicsLayerFactory> m_graphicsLayerFactory; | |
| 737 bool m_matchesHeuristicsForGpuRasterization; | 735 bool m_matchesHeuristicsForGpuRasterization; |
| 738 static const WebInputEvent* m_currentInputEvent; | 736 static const WebInputEvent* m_currentInputEvent; |
| 739 | 737 |
| 740 MediaKeysClientImpl m_mediaKeysClientImpl; | 738 MediaKeysClientImpl m_mediaKeysClientImpl; |
| 741 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation; | 739 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation; |
| 742 WebPoint m_positionOnFlingStart; | 740 WebPoint m_positionOnFlingStart; |
| 743 WebPoint m_globalPositionOnFlingStart; | 741 WebPoint m_globalPositionOnFlingStart; |
| 744 int m_flingModifier; | 742 int m_flingModifier; |
| 745 WebGestureDevice m_flingSourceDevice; | 743 WebGestureDevice m_flingSourceDevice; |
| 746 Vector<OwnPtr<LinkHighlightImpl>> m_linkHighlights; | 744 Vector<OwnPtr<LinkHighlightImpl>> m_linkHighlights; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 771 }; | 769 }; |
| 772 | 770 |
| 773 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 771 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
| 774 // We have no ways to check if the specified WebView is an instance of | 772 // We have no ways to check if the specified WebView is an instance of |
| 775 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 773 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 776 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 774 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 777 | 775 |
| 778 } // namespace blink | 776 } // namespace blink |
| 779 | 777 |
| 780 #endif | 778 #endif |
| OLD | NEW |