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