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

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

Issue 586933003: fling: Remove a bunch of code for configuring fling curves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 6 years, 3 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 | « content/renderer/render_thread_impl.h ('k') | content/renderer/render_view_impl.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 (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_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1605 media_thread_->Start(); 1605 media_thread_->Start();
1606 1606
1607 #if defined(OS_ANDROID) 1607 #if defined(OS_ANDROID)
1608 renderer_demuxer_ = new RendererDemuxerAndroid(); 1608 renderer_demuxer_ = new RendererDemuxerAndroid();
1609 AddFilter(renderer_demuxer_.get()); 1609 AddFilter(renderer_demuxer_.get());
1610 #endif 1610 #endif
1611 } 1611 }
1612 return media_thread_->message_loop_proxy(); 1612 return media_thread_->message_loop_proxy();
1613 } 1613 }
1614 1614
1615 void RenderThreadImpl::SetFlingCurveParameters(
1616 const std::vector<float>& new_touchpad,
1617 const std::vector<float>& new_touchscreen) {
1618 webkit_platform_support_->SetFlingCurveParameters(new_touchpad,
1619 new_touchscreen);
1620 }
1621
1622 void RenderThreadImpl::SampleGamepads(blink::WebGamepads* data) { 1615 void RenderThreadImpl::SampleGamepads(blink::WebGamepads* data) {
1623 webkit_platform_support_->sampleGamepads(*data); 1616 webkit_platform_support_->sampleGamepads(*data);
1624 } 1617 }
1625 1618
1626 void RenderThreadImpl::WidgetCreated() { 1619 void RenderThreadImpl::WidgetCreated() {
1627 widget_count_++; 1620 widget_count_++;
1628 } 1621 }
1629 1622
1630 void RenderThreadImpl::WidgetDestroyed() { 1623 void RenderThreadImpl::WidgetDestroyed() {
1631 widget_count_--; 1624 widget_count_--;
(...skipping 20 matching lines...) Expand all
1652 hidden_widget_count_--; 1645 hidden_widget_count_--;
1653 1646
1654 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 1647 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
1655 return; 1648 return;
1656 } 1649 }
1657 1650
1658 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 1651 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
1659 } 1652 }
1660 1653
1661 } // namespace content 1654 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698