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

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

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

Powered by Google App Engine
This is Rietveld 408576698