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

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

Issue 1895303007: Non passive touch end or touch cancel listeners should not block scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 void RenderWidgetCompositor::registerSelection( 723 void RenderWidgetCompositor::registerSelection(
724 const blink::WebSelection& selection) { 724 const blink::WebSelection& selection) {
725 layer_tree_host_->RegisterSelection(ConvertWebSelection(selection)); 725 layer_tree_host_->RegisterSelection(ConvertWebSelection(selection));
726 } 726 }
727 727
728 void RenderWidgetCompositor::clearSelection() { 728 void RenderWidgetCompositor::clearSelection() {
729 cc::LayerSelection empty_selection; 729 cc::LayerSelection empty_selection;
730 layer_tree_host_->RegisterSelection(empty_selection); 730 layer_tree_host_->RegisterSelection(empty_selection);
731 } 731 }
732 732
733 static_assert( 733 static_assert(static_cast<cc::EventListenerClass>(
734 static_cast<cc::EventListenerClass>(blink::WebEventListenerClass::Touch) == 734 blink::WebEventListenerClass::TouchStartOrMove) ==
735 cc::EventListenerClass::kTouch, 735 cc::EventListenerClass::kTouchStartOrMove,
736 "EventListenerClass and WebEventListenerClass enums must match"); 736 "EventListenerClass and WebEventListenerClass enums must match");
737 static_assert(static_cast<cc::EventListenerClass>( 737 static_assert(static_cast<cc::EventListenerClass>(
738 blink::WebEventListenerClass::MouseWheel) == 738 blink::WebEventListenerClass::MouseWheel) ==
739 cc::EventListenerClass::kMouseWheel, 739 cc::EventListenerClass::kMouseWheel,
740 "EventListenerClass and WebEventListenerClass enums must match"); 740 "EventListenerClass and WebEventListenerClass enums must match");
741 741
742 static_assert(static_cast<cc::EventListenerProperties>( 742 static_assert(static_cast<cc::EventListenerProperties>(
743 blink::WebEventListenerProperties::Nothing) == 743 blink::WebEventListenerProperties::Nothing) ==
744 cc::EventListenerProperties::kNone, 744 cc::EventListenerProperties::kNone,
745 "EventListener and WebEventListener enums must match"); 745 "EventListener and WebEventListener enums must match");
746 static_assert(static_cast<cc::EventListenerProperties>( 746 static_assert(static_cast<cc::EventListenerProperties>(
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 #endif 1135 #endif
1136 return actual; 1136 return actual;
1137 } 1137 }
1138 1138
1139 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( 1139 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor(
1140 float device_scale) { 1140 float device_scale) {
1141 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); 1141 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale);
1142 } 1142 }
1143 1143
1144 } // namespace content 1144 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698