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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2050033002: Revert of Remove enable/disable wheel gestures setting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@can_scroll_remove
Patch Set: Created 4 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "content/child/request_extra_data.h" 43 #include "content/child/request_extra_data.h"
44 #include "content/child/v8_value_converter_impl.h" 44 #include "content/child/v8_value_converter_impl.h"
45 #include "content/child/webmessageportchannel_impl.h" 45 #include "content/child/webmessageportchannel_impl.h"
46 #include "content/common/content_constants_internal.h" 46 #include "content/common/content_constants_internal.h"
47 #include "content/common/content_switches_internal.h" 47 #include "content/common/content_switches_internal.h"
48 #include "content/common/database_messages.h" 48 #include "content/common/database_messages.h"
49 #include "content/common/dom_storage/dom_storage_types.h" 49 #include "content/common/dom_storage/dom_storage_types.h"
50 #include "content/common/drag_messages.h" 50 #include "content/common/drag_messages.h"
51 #include "content/common/frame_messages.h" 51 #include "content/common/frame_messages.h"
52 #include "content/common/frame_replication_state.h" 52 #include "content/common/frame_replication_state.h"
53 #include "content/common/input/input_event_utils.h"
53 #include "content/common/input_messages.h" 54 #include "content/common/input_messages.h"
54 #include "content/common/page_messages.h" 55 #include "content/common/page_messages.h"
55 #include "content/common/site_isolation_policy.h" 56 #include "content/common/site_isolation_policy.h"
56 #include "content/common/ssl_status_serialization.h" 57 #include "content/common/ssl_status_serialization.h"
57 #include "content/common/view_messages.h" 58 #include "content/common/view_messages.h"
58 #include "content/public/common/bindings_policy.h" 59 #include "content/public/common/bindings_policy.h"
59 #include "content/public/common/content_client.h" 60 #include "content/public/common/content_client.h"
60 #include "content/public/common/content_constants.h" 61 #include "content/public/common/content_constants.h"
61 #include "content/public/common/content_switches.h" 62 #include "content/public/common/content_switches.h"
62 #include "content/public/common/drop_data.h" 63 #include "content/public/common/drop_data.h"
(...skipping 1992 matching lines...) Expand 10 before | Expand all | Expand 10 after
2055 use_threaded_event_handling = compositor_deps_->IsElasticOverscrollEnabled(); 2056 use_threaded_event_handling = compositor_deps_->IsElasticOverscrollEnabled();
2056 #endif 2057 #endif
2057 if (use_threaded_event_handling) { 2058 if (use_threaded_event_handling) {
2058 RenderThreadImpl* render_thread = RenderThreadImpl::current(); 2059 RenderThreadImpl* render_thread = RenderThreadImpl::current();
2059 // render_thread may be NULL in tests. 2060 // render_thread may be NULL in tests.
2060 InputHandlerManager* input_handler_manager = 2061 InputHandlerManager* input_handler_manager =
2061 render_thread ? render_thread->input_handler_manager() : NULL; 2062 render_thread ? render_thread->input_handler_manager() : NULL;
2062 if (input_handler_manager) { 2063 if (input_handler_manager) {
2063 input_handler_manager->AddInputHandler( 2064 input_handler_manager->AddInputHandler(
2064 GetRoutingID(), rwc->GetInputHandler(), AsWeakPtr(), 2065 GetRoutingID(), rwc->GetInputHandler(), AsWeakPtr(),
2065 webkit_preferences_.enable_scroll_animator); 2066 webkit_preferences_.enable_scroll_animator,
2067 UseGestureBasedWheelScrolling());
2066 } 2068 }
2067 } 2069 }
2068 } 2070 }
2069 2071
2070 bool RenderViewImpl::allowsBrokenNullLayerTreeView() const { 2072 bool RenderViewImpl::allowsBrokenNullLayerTreeView() const {
2071 return RenderWidget::allowsBrokenNullLayerTreeView(); 2073 return RenderWidget::allowsBrokenNullLayerTreeView();
2072 } 2074 }
2073 2075
2074 void RenderViewImpl::closeWidgetSoon() { 2076 void RenderViewImpl::closeWidgetSoon() {
2075 RenderWidget::closeWidgetSoon(); 2077 RenderWidget::closeWidgetSoon();
(...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after
3391 return render_frame->focused_pepper_plugin(); 3393 return render_frame->focused_pepper_plugin();
3392 } 3394 }
3393 frame = frame->traverseNext(false); 3395 frame = frame->traverseNext(false);
3394 } 3396 }
3395 3397
3396 return nullptr; 3398 return nullptr;
3397 } 3399 }
3398 #endif 3400 #endif
3399 3401
3400 } // namespace content 3402 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698