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

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

Issue 1639363002: Move have_wheel_event_handlers to WebLayerTreeView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove blank line 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 | « cc/blink/web_layer_impl.h ('k') | cc/debug/debug_rect_history.cc » ('j') | no next file with comments »
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 #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
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
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
OLDNEW
« no previous file with comments | « cc/blink/web_layer_impl.h ('k') | cc/debug/debug_rect_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698