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

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

Issue 2113483002: Make RootScroller set the outer viewport scroll layer in the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } 488 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; }
489 489
490 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match esHeuristicsForGpuRasterization; } 490 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match esHeuristicsForGpuRasterization; }
491 491
492 void updateTopControlsState(WebTopControlsState constraint, WebTopControlsSt ate current, bool animate) override; 492 void updateTopControlsState(WebTopControlsState constraint, WebTopControlsSt ate current, bool animate) override;
493 493
494 TopControls& topControls(); 494 TopControls& topControls();
495 // Called anytime top controls layout height or content offset have changed. 495 // Called anytime top controls layout height or content offset have changed.
496 void didUpdateTopControls(); 496 void didUpdateTopControls();
497 497
498 // Called to update the root scroller layer on the compositor.
499 void didUpdateRootScrollerLayer(WebLayer*);
500
498 void forceNextWebGLContextCreationToFail() override; 501 void forceNextWebGLContextCreationToFail() override;
499 void forceNextDrawingBufferCreationToFail() override; 502 void forceNextDrawingBufferCreationToFail() override;
500 503
501 CompositorProxyClient* createCompositorProxyClient(); 504 CompositorProxyClient* createCompositorProxyClient();
502 IntSize mainFrameSize(); 505 IntSize mainFrameSize();
503 WebDisplayMode displayMode() const { return m_displayMode; } 506 WebDisplayMode displayMode() const { return m_displayMode; }
504 507
505 PageScaleConstraintsSet& pageScaleConstraintsSet() const; 508 PageScaleConstraintsSet& pageScaleConstraintsSet() const;
506 509
507 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } 510 FloatSize elasticOverscroll() const { return m_elasticOverscroll; }
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 double m_lastFrameTimeMonotonic; 762 double m_lastFrameTimeMonotonic;
760 }; 763 };
761 764
762 // We have no ways to check if the specified WebView is an instance of 765 // We have no ways to check if the specified WebView is an instance of
763 // WebViewImpl because WebViewImpl is the only implementation of WebView. 766 // WebViewImpl because WebViewImpl is the only implementation of WebView.
764 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 767 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
765 768
766 } // namespace blink 769 } // namespace blink
767 770
768 #endif 771 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698