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

Side by Side Diff: cc/blink/web_layer_impl.h

Issue 1648293003: Fix smooth scroll jump when switching scroll handling between MT and CC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: todo + nit Created 4 years, 10 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
« no previous file with comments | « no previous file | cc/blink/web_layer_impl.cc » ('j') | cc/input/main_thread_scrolling_reason.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_BLINK_WEB_LAYER_IMPL_H_ 5 #ifndef CC_BLINK_WEB_LAYER_IMPL_H_
6 #define CC_BLINK_WEB_LAYER_IMPL_H_ 6 #define CC_BLINK_WEB_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void setScrollPositionDouble(blink::WebDoublePoint position) override; 116 void setScrollPositionDouble(blink::WebDoublePoint position) override;
117 blink::WebDoublePoint scrollPositionDouble() const override; 117 blink::WebDoublePoint scrollPositionDouble() const override;
118 void setScrollCompensationAdjustment(blink::WebDoublePoint position) override; 118 void setScrollCompensationAdjustment(blink::WebDoublePoint position) override;
119 void setScrollClipLayer(blink::WebLayer* clip_layer) override; 119 void setScrollClipLayer(blink::WebLayer* clip_layer) override;
120 bool scrollable() const override; 120 bool scrollable() const override;
121 void setUserScrollable(bool horizontal, bool vertical) override; 121 void setUserScrollable(bool horizontal, bool vertical) override;
122 bool userScrollableHorizontal() const override; 122 bool userScrollableHorizontal() const override;
123 bool userScrollableVertical() const override; 123 bool userScrollableVertical() const override;
124 void addMainThreadScrollingReasons( 124 void addMainThreadScrollingReasons(
125 uint32_t main_thread_scrolling_reasons) override; 125 uint32_t main_thread_scrolling_reasons) override;
126 void clearMainThreadScrollingReasons() override; 126 void clearMainThreadScrollingReasons(
127 uint32_t main_thread_scrolling_reasons_to_clear) override;
128 uint32_t mainThreadScrollingReasons() override;
127 bool shouldScrollOnMainThread() const override; 129 bool shouldScrollOnMainThread() const override;
128 void setNonFastScrollableRegion( 130 void setNonFastScrollableRegion(
129 const blink::WebVector<blink::WebRect>& region) override; 131 const blink::WebVector<blink::WebRect>& region) override;
130 blink::WebVector<blink::WebRect> nonFastScrollableRegion() const override; 132 blink::WebVector<blink::WebRect> nonFastScrollableRegion() const override;
131 void setTouchEventHandlerRegion( 133 void setTouchEventHandlerRegion(
132 const blink::WebVector<blink::WebRect>& region) override; 134 const blink::WebVector<blink::WebRect>& region) override;
133 blink::WebVector<blink::WebRect> touchEventHandlerRegion() const override; 135 blink::WebVector<blink::WebRect> touchEventHandlerRegion() const override;
134 void setFrameTimingRequests( 136 void setFrameTimingRequests(
135 const blink::WebVector<std::pair<int64_t, blink::WebRect>>& requests) 137 const blink::WebVector<std::pair<int64_t, blink::WebRect>>& requests)
136 override; 138 override;
(...skipping 22 matching lines...) Expand all
159 161
160 private: 162 private:
161 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; 163 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_;
162 164
163 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); 165 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
164 }; 166 };
165 167
166 } // namespace cc_blink 168 } // namespace cc_blink
167 169
168 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ 170 #endif // CC_BLINK_WEB_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/blink/web_layer_impl.cc » ('j') | cc/input/main_thread_scrolling_reason.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698