| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |