OLD | NEW |
---|---|
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 #include "cc/blink/web_layer_impl.h" | 5 #include "cc/blink/web_layer_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
320 } | 320 } |
321 | 321 |
322 bool WebLayerImpl::userScrollableHorizontal() const { | 322 bool WebLayerImpl::userScrollableHorizontal() const { |
323 return layer_->user_scrollable_horizontal(); | 323 return layer_->user_scrollable_horizontal(); |
324 } | 324 } |
325 | 325 |
326 bool WebLayerImpl::userScrollableVertical() const { | 326 bool WebLayerImpl::userScrollableVertical() const { |
327 return layer_->user_scrollable_vertical(); | 327 return layer_->user_scrollable_vertical(); |
328 } | 328 } |
329 | 329 |
330 void WebLayerImpl::setHaveWheelEventHandlers(bool have_wheel_event_handlers) { | |
331 layer_->SetHaveWheelEventHandlers(have_wheel_event_handlers); | |
332 } | |
333 | |
334 bool WebLayerImpl::haveWheelEventHandlers() const { | 330 bool WebLayerImpl::haveWheelEventHandlers() const { |
aelias_OOO_until_Jul13
2016/01/27 23:55:46
Looks like this is only used by InspectorLayerTree
dtapuska
2016/01/28 16:23:06
I've removed this method for clarity.
| |
335 return layer_->have_wheel_event_handlers(); | 331 if (const cc::LayerTreeHost* layer_tree_host = layer_->layer_tree_host()) |
332 return layer_tree_host->have_wheel_event_handlers(); | |
333 return false; | |
336 } | 334 } |
337 | 335 |
338 void WebLayerImpl::setHaveScrollEventHandlers(bool have_scroll_event_handlers) { | 336 void WebLayerImpl::setHaveScrollEventHandlers(bool have_scroll_event_handlers) { |
339 layer_->SetHaveScrollEventHandlers(have_scroll_event_handlers); | 337 layer_->SetHaveScrollEventHandlers(have_scroll_event_handlers); |
340 } | 338 } |
341 | 339 |
342 bool WebLayerImpl::haveScrollEventHandlers() const { | 340 bool WebLayerImpl::haveScrollEventHandlers() const { |
343 return layer_->have_scroll_event_handlers(); | 341 return layer_->have_scroll_event_handlers(); |
344 } | 342 } |
345 | 343 |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
549 | 547 |
550 Layer* WebLayerImpl::layer() const { | 548 Layer* WebLayerImpl::layer() const { |
551 return layer_.get(); | 549 return layer_.get(); |
552 } | 550 } |
553 | 551 |
554 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) { | 552 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) { |
555 contents_opaque_is_fixed_ = fixed; | 553 contents_opaque_is_fixed_ = fixed; |
556 } | 554 } |
557 | 555 |
558 } // namespace cc_blink | 556 } // namespace cc_blink |
OLD | NEW |