Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 1625473002: compositor-worker: blink->cc plumbing Base URL: https://chromium.googlesource.com/chromium/src.git@upstream-compositor-worker
Patch Set: Merge with landing of https://codereview.chromium.org/1599673002/ on master Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 class PaintLayerCompositor; 79 class PaintLayerCompositor;
80 class TopControls; 80 class TopControls;
81 class UserGestureToken; 81 class UserGestureToken;
82 class WebActiveGestureAnimation; 82 class WebActiveGestureAnimation;
83 class WebDevToolsAgentImpl; 83 class WebDevToolsAgentImpl;
84 class WebElement; 84 class WebElement;
85 class WebLayerTreeView; 85 class WebLayerTreeView;
86 class WebLocalFrame; 86 class WebLocalFrame;
87 class WebLocalFrameImpl; 87 class WebLocalFrameImpl;
88 class WebImage; 88 class WebImage;
89 class CompositorMutatorImpl;
89 class WebPagePopupImpl; 90 class WebPagePopupImpl;
90 class WebPlugin; 91 class WebPlugin;
91 class WebRemoteFrame; 92 class WebRemoteFrame;
92 class WebSelection; 93 class WebSelection;
93 class WebSettingsImpl; 94 class WebSettingsImpl;
94 class WebViewScheduler; 95 class WebViewScheduler;
95 96
96 class WebViewImpl final : public WebView 97 class WebViewImpl final : public WebView
97 , public RefCounted<WebViewImpl> 98 , public RefCounted<WebViewImpl>
98 , public WebGestureCurveTarget 99 , public WebGestureCurveTarget
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) ov erride; 513 void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) ov erride;
513 void updateTopControlsState(WebTopControlsState constraint, WebTopControlsSt ate current, bool animate) override; 514 void updateTopControlsState(WebTopControlsState constraint, WebTopControlsSt ate current, bool animate) override;
514 515
515 TopControls& topControls(); 516 TopControls& topControls();
516 // Called anytime top controls layout height or content offset have changed. 517 // Called anytime top controls layout height or content offset have changed.
517 void didUpdateTopControls(); 518 void didUpdateTopControls();
518 519
519 void forceNextWebGLContextCreationToFail() override; 520 void forceNextWebGLContextCreationToFail() override;
520 void forceNextDrawingBufferCreationToFail() override; 521 void forceNextDrawingBufferCreationToFail() override;
521 522
523 CompositorProxyClient* createCompositorProxyClient() override;
522 IntSize mainFrameSize(); 524 IntSize mainFrameSize();
523 WebDisplayMode displayMode() const { return m_displayMode; } 525 WebDisplayMode displayMode() const { return m_displayMode; }
524 526
525 PageScaleConstraintsSet& pageScaleConstraintsSet() const; 527 PageScaleConstraintsSet& pageScaleConstraintsSet() const;
526 528
527 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } 529 FloatSize elasticOverscroll() const { return m_elasticOverscroll; }
528 530
529 WebViewScheduler* scheduler() const { return m_scheduler.get(); } 531 WebViewScheduler* scheduler() const { return m_scheduler.get(); }
530 532
531 // Attaches the PaintArtifactCompositor's tree to this WebView's layer tree 533 // Attaches the PaintArtifactCompositor's tree to this WebView's layer tree
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 float m_zoomFactorOverride; 762 float m_zoomFactorOverride;
761 763
762 bool m_userGestureObserved; 764 bool m_userGestureObserved;
763 bool m_shouldDispatchFirstVisuallyNonEmptyLayout; 765 bool m_shouldDispatchFirstVisuallyNonEmptyLayout;
764 bool m_shouldDispatchFirstLayoutAfterFinishedParsing; 766 bool m_shouldDispatchFirstLayoutAfterFinishedParsing;
765 bool m_shouldDispatchFirstLayoutAfterFinishedLoading; 767 bool m_shouldDispatchFirstLayoutAfterFinishedLoading;
766 WebDisplayMode m_displayMode; 768 WebDisplayMode m_displayMode;
767 769
768 FloatSize m_elasticOverscroll; 770 FloatSize m_elasticOverscroll;
769 771
772 OwnPtr<CompositorMutatorImpl> m_mutator;
773
770 RefPtrWillBePersistent<EventListener> m_popupMouseWheelEventListener; 774 RefPtrWillBePersistent<EventListener> m_popupMouseWheelEventListener;
771 775
772 WebPageImportanceSignals m_pageImportanceSignals; 776 WebPageImportanceSignals m_pageImportanceSignals;
773 777
774 const OwnPtr<WebViewScheduler> m_scheduler; 778 const OwnPtr<WebViewScheduler> m_scheduler;
775 779
776 // Manages the layer tree created for this page in Slimming Paint v2. 780 // Manages the layer tree created for this page in Slimming Paint v2.
777 PaintArtifactCompositor m_paintArtifactCompositor; 781 PaintArtifactCompositor m_paintArtifactCompositor;
778 }; 782 };
779 783
780 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 784 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
781 // We have no ways to check if the specified WebView is an instance of 785 // We have no ways to check if the specified WebView is an instance of
782 // WebViewImpl because WebViewImpl is the only implementation of WebView. 786 // WebViewImpl because WebViewImpl is the only implementation of WebView.
783 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 787 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
784 788
785 } // namespace blink 789 } // namespace blink
786 790
787 #endif 791 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/CompositorProxyClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698