mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Remove moar composited scrolling from sky
R=abarth@chromium.org Review URL: https://codereview.chromium.org/722063002
This commit is contained in:
parent
88a6505c93
commit
f5bed9da06
@ -166,21 +166,6 @@ public:
|
||||
|
||||
// To set a WebLayer as scrollable we must specify the corresponding clip layer.
|
||||
virtual void setScrollClipLayer(WebLayer*) = 0;
|
||||
virtual bool scrollable() const = 0;
|
||||
virtual void setUserScrollable(bool horizontal, bool vertical) = 0;
|
||||
virtual bool userScrollableHorizontal() const = 0;
|
||||
virtual bool userScrollableVertical() const = 0;
|
||||
|
||||
virtual void setHaveWheelEventHandlers(bool) = 0;
|
||||
virtual bool haveWheelEventHandlers() const = 0;
|
||||
|
||||
virtual void setHaveScrollEventHandlers(bool) = 0;
|
||||
virtual bool haveScrollEventHandlers() const = 0;
|
||||
|
||||
virtual void setShouldScrollOnMainThread(bool) = 0;
|
||||
virtual bool shouldScrollOnMainThread() const = 0;
|
||||
|
||||
virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) = 0;
|
||||
|
||||
// The scroll client is notified when the scroll position of the WebLayer
|
||||
// changes. Only a single scroll client can be set for a WebLayer at a time.
|
||||
|
||||
@ -288,54 +288,6 @@ void WebLayerImpl::setScrollClipLayer(WebLayer* clip_layer) {
|
||||
layer_->SetScrollClipLayerId(clip_layer->id());
|
||||
}
|
||||
|
||||
bool WebLayerImpl::scrollable() const {
|
||||
return layer_->scrollable();
|
||||
}
|
||||
|
||||
void WebLayerImpl::setUserScrollable(bool horizontal, bool vertical) {
|
||||
layer_->SetUserScrollable(horizontal, vertical);
|
||||
}
|
||||
|
||||
bool WebLayerImpl::userScrollableHorizontal() const {
|
||||
return layer_->user_scrollable_horizontal();
|
||||
}
|
||||
|
||||
bool WebLayerImpl::userScrollableVertical() const {
|
||||
return layer_->user_scrollable_vertical();
|
||||
}
|
||||
|
||||
void WebLayerImpl::setHaveWheelEventHandlers(bool have_wheel_event_handlers) {
|
||||
layer_->SetHaveWheelEventHandlers(have_wheel_event_handlers);
|
||||
}
|
||||
|
||||
bool WebLayerImpl::haveWheelEventHandlers() const {
|
||||
return layer_->have_wheel_event_handlers();
|
||||
}
|
||||
|
||||
void WebLayerImpl::setHaveScrollEventHandlers(bool have_scroll_event_handlers) {
|
||||
layer_->SetHaveScrollEventHandlers(have_scroll_event_handlers);
|
||||
}
|
||||
|
||||
bool WebLayerImpl::haveScrollEventHandlers() const {
|
||||
return layer_->have_scroll_event_handlers();
|
||||
}
|
||||
|
||||
void WebLayerImpl::setShouldScrollOnMainThread(
|
||||
bool should_scroll_on_main_thread) {
|
||||
layer_->SetShouldScrollOnMainThread(should_scroll_on_main_thread);
|
||||
}
|
||||
|
||||
bool WebLayerImpl::shouldScrollOnMainThread() const {
|
||||
return layer_->should_scroll_on_main_thread();
|
||||
}
|
||||
|
||||
void WebLayerImpl::setNonFastScrollableRegion(const WebVector<WebRect>& rects) {
|
||||
cc::Region region;
|
||||
for (size_t i = 0; i < rects.size(); ++i)
|
||||
region.Union(rects[i]);
|
||||
layer_->SetNonFastScrollableRegion(region);
|
||||
}
|
||||
|
||||
void WebLayerImpl::setScrollClient(blink::WebLayerScrollClient* scroll_client) {
|
||||
if (scroll_client) {
|
||||
layer_->set_did_scroll_callback(
|
||||
|
||||
@ -107,18 +107,6 @@ class WebLayerImpl : public blink::WebLayer, public cc::LayerClient {
|
||||
virtual void setScrollPosition(blink::WebPoint position);
|
||||
virtual blink::WebPoint scrollPosition() const;
|
||||
virtual void setScrollClipLayer(blink::WebLayer* clip_layer);
|
||||
virtual bool scrollable() const;
|
||||
virtual void setUserScrollable(bool horizontal, bool vertical);
|
||||
virtual bool userScrollableHorizontal() const;
|
||||
virtual bool userScrollableVertical() const;
|
||||
virtual void setHaveWheelEventHandlers(bool have_wheel_event_handlers);
|
||||
virtual bool haveWheelEventHandlers() const;
|
||||
virtual void setHaveScrollEventHandlers(bool have_scroll_event_handlers);
|
||||
virtual bool haveScrollEventHandlers() const;
|
||||
virtual void setShouldScrollOnMainThread(bool scroll_on_main);
|
||||
virtual bool shouldScrollOnMainThread() const;
|
||||
virtual void setNonFastScrollableRegion(
|
||||
const blink::WebVector<blink::WebRect>& region);
|
||||
virtual void setScrollClient(blink::WebLayerScrollClient* client);
|
||||
virtual bool isOrphan() const;
|
||||
virtual void setWebLayerClient(blink::WebLayerClient* client);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user