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