| 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 GraphicsLayer* rootGraphicsLayer(); | 438 GraphicsLayer* rootGraphicsLayer(); |
| 439 void setRootGraphicsLayer(GraphicsLayer*); | 439 void setRootGraphicsLayer(GraphicsLayer*); |
| 440 GraphicsLayerFactory* graphicsLayerFactory() const; | 440 GraphicsLayerFactory* graphicsLayerFactory() const; |
| 441 PaintLayerCompositor* compositor() const; | 441 PaintLayerCompositor* compositor() const; |
| 442 void registerForAnimations(WebLayer*); | 442 void registerForAnimations(WebLayer*); |
| 443 void scheduleAnimation(); | 443 void scheduleAnimation(); |
| 444 void attachCompositorAnimationTimeline(WebCompositorAnimationTimeline*); | 444 void attachCompositorAnimationTimeline(WebCompositorAnimationTimeline*); |
| 445 void detachCompositorAnimationTimeline(WebCompositorAnimationTimeline*); | 445 void detachCompositorAnimationTimeline(WebCompositorAnimationTimeline*); |
| 446 WebCompositorAnimationTimeline* linkHighlightsTimeline() const { return m_li
nkHighlightsTimeline.get(); } | 446 WebCompositorAnimationTimeline* linkHighlightsTimeline() const { return m_li
nkHighlightsTimeline.get(); } |
| 447 | 447 |
| 448 WebViewScheduler* scheduler() const override; |
| 448 void setVisibilityState(WebPageVisibilityState, bool) override; | 449 void setVisibilityState(WebPageVisibilityState, bool) override; |
| 449 | 450 |
| 450 bool hasOpenedPopup() const { return m_pagePopup; } | 451 bool hasOpenedPopup() const { return m_pagePopup; } |
| 451 | 452 |
| 452 // Returns true if the event leads to scrolling. | 453 // Returns true if the event leads to scrolling. |
| 453 static bool mapKeyCodeForScroll( | 454 static bool mapKeyCodeForScroll( |
| 454 int keyCode, | 455 int keyCode, |
| 455 ScrollDirectionPhysical*, | 456 ScrollDirectionPhysical*, |
| 456 ScrollGranularity*); | 457 ScrollGranularity*); |
| 457 | 458 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 void forceNextWebGLContextCreationToFail() override; | 518 void forceNextWebGLContextCreationToFail() override; |
| 518 void forceNextDrawingBufferCreationToFail() override; | 519 void forceNextDrawingBufferCreationToFail() override; |
| 519 | 520 |
| 520 IntSize mainFrameSize(); | 521 IntSize mainFrameSize(); |
| 521 WebDisplayMode displayMode() const { return m_displayMode; } | 522 WebDisplayMode displayMode() const { return m_displayMode; } |
| 522 | 523 |
| 523 PageScaleConstraintsSet& pageScaleConstraintsSet() const; | 524 PageScaleConstraintsSet& pageScaleConstraintsSet() const; |
| 524 | 525 |
| 525 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } | 526 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } |
| 526 | 527 |
| 527 WebViewScheduler* scheduler() const { return m_scheduler.get(); } | |
| 528 | |
| 529 // Attaches the PaintArtifactCompositor's tree to this WebView's layer tree | 528 // Attaches the PaintArtifactCompositor's tree to this WebView's layer tree |
| 530 // view. | 529 // view. |
| 531 void attachPaintArtifactCompositor(); | 530 void attachPaintArtifactCompositor(); |
| 532 | 531 |
| 533 // Detaches the PaintArtifactCompositor and clears the layer tree view's | 532 // Detaches the PaintArtifactCompositor and clears the layer tree view's |
| 534 // root layer. | 533 // root layer. |
| 535 void detachPaintArtifactCompositor(); | 534 void detachPaintArtifactCompositor(); |
| 536 | 535 |
| 537 // Use in Slimming Paint v2 to update the layer tree for the content. | 536 // Use in Slimming Paint v2 to update the layer tree for the content. |
| 538 PaintArtifactCompositor& paintArtifactCompositor() { return m_paintArtifactC
ompositor; } | 537 PaintArtifactCompositor& paintArtifactCompositor() { return m_paintArtifactC
ompositor; } |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 }; | 774 }; |
| 776 | 775 |
| 777 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 776 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
| 778 // We have no ways to check if the specified WebView is an instance of | 777 // We have no ways to check if the specified WebView is an instance of |
| 779 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 778 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 780 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 779 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 781 | 780 |
| 782 } // namespace blink | 781 } // namespace blink |
| 783 | 782 |
| 784 #endif | 783 #endif |
| OLD | NEW |