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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 1646603004: Move scroll event handlers from layer to layer tree view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_cc_listeners
Patch Set: Rebase 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 } 744 }
745 745
746 void RenderWidgetCompositor::setHaveWheelEventHandlers(bool value) { 746 void RenderWidgetCompositor::setHaveWheelEventHandlers(bool value) {
747 layer_tree_host_->SetHaveWheelEventHandlers(value); 747 layer_tree_host_->SetHaveWheelEventHandlers(value);
748 } 748 }
749 749
750 bool RenderWidgetCompositor::haveWheelEventHandlers() const { 750 bool RenderWidgetCompositor::haveWheelEventHandlers() const {
751 return layer_tree_host_->have_wheel_event_handlers(); 751 return layer_tree_host_->have_wheel_event_handlers();
752 } 752 }
753 753
754 void RenderWidgetCompositor::setHaveScrollEventHandlers(bool has_handlers) {
755 layer_tree_host_->SetHaveScrollEventHandlers(has_handlers);
756 }
757
758 bool RenderWidgetCompositor::haveScrollEventHandlers() const {
759 return layer_tree_host_->have_scroll_event_handlers();
760 }
761
754 void CompositeAndReadbackAsyncCallback( 762 void CompositeAndReadbackAsyncCallback(
755 blink::WebCompositeAndReadbackAsyncCallback* callback, 763 blink::WebCompositeAndReadbackAsyncCallback* callback,
756 scoped_ptr<cc::CopyOutputResult> result) { 764 scoped_ptr<cc::CopyOutputResult> result) {
757 if (result->HasBitmap()) { 765 if (result->HasBitmap()) {
758 scoped_ptr<SkBitmap> result_bitmap = result->TakeBitmap(); 766 scoped_ptr<SkBitmap> result_bitmap = result->TakeBitmap();
759 callback->didCompositeAndReadback(*result_bitmap); 767 callback->didCompositeAndReadback(*result_bitmap);
760 } else { 768 } else {
761 callback->didCompositeAndReadback(SkBitmap()); 769 callback->didCompositeAndReadback(SkBitmap());
762 } 770 }
763 } 771 }
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 #endif 1114 #endif
1107 return actual; 1115 return actual;
1108 } 1116 }
1109 1117
1110 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( 1118 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor(
1111 float device_scale) { 1119 float device_scale) {
1112 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); 1120 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale);
1113 } 1121 }
1114 1122
1115 } // namespace content 1123 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/test/web_layer_tree_view_impl_for_testing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698