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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 } | 313 } |
314 | 314 |
315 bool WebLayerImpl::userScrollableHorizontal() const { | 315 bool WebLayerImpl::userScrollableHorizontal() const { |
316 return layer_->user_scrollable_horizontal(); | 316 return layer_->user_scrollable_horizontal(); |
317 } | 317 } |
318 | 318 |
319 bool WebLayerImpl::userScrollableVertical() const { | 319 bool WebLayerImpl::userScrollableVertical() const { |
320 return layer_->user_scrollable_vertical(); | 320 return layer_->user_scrollable_vertical(); |
321 } | 321 } |
322 | 322 |
323 void WebLayerImpl::setHaveWheelEventHandlers(bool have_wheel_event_handlers) { | |
324 layer_->SetHaveWheelEventHandlers(have_wheel_event_handlers); | |
325 } | |
326 | |
327 bool WebLayerImpl::haveWheelEventHandlers() const { | |
328 return layer_->have_wheel_event_handlers(); | |
329 } | |
330 | |
331 void WebLayerImpl::setHaveScrollEventHandlers(bool have_scroll_event_handlers) { | 323 void WebLayerImpl::setHaveScrollEventHandlers(bool have_scroll_event_handlers) { |
332 layer_->SetHaveScrollEventHandlers(have_scroll_event_handlers); | 324 layer_->SetHaveScrollEventHandlers(have_scroll_event_handlers); |
333 } | 325 } |
334 | 326 |
335 bool WebLayerImpl::haveScrollEventHandlers() const { | 327 bool WebLayerImpl::haveScrollEventHandlers() const { |
336 return layer_->have_scroll_event_handlers(); | 328 return layer_->have_scroll_event_handlers(); |
337 } | 329 } |
338 | 330 |
339 void WebLayerImpl::addMainThreadScrollingReasons( | 331 void WebLayerImpl::addMainThreadScrollingReasons( |
340 uint32_t main_thread_scrolling_reasons) { | 332 uint32_t main_thread_scrolling_reasons) { |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 | 512 |
521 Layer* WebLayerImpl::layer() const { | 513 Layer* WebLayerImpl::layer() const { |
522 return layer_.get(); | 514 return layer_.get(); |
523 } | 515 } |
524 | 516 |
525 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) { | 517 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) { |
526 contents_opaque_is_fixed_ = fixed; | 518 contents_opaque_is_fixed_ = fixed; |
527 } | 519 } |
528 | 520 |
529 } // namespace cc_blink | 521 } // namespace cc_blink |
OLD | NEW |