| 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/browser/renderer_host/render_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 base::TimeDelta::FromMilliseconds(hung_renderer_delay_ms_)); | 928 base::TimeDelta::FromMilliseconds(hung_renderer_delay_ms_)); |
| 929 } | 929 } |
| 930 | 930 |
| 931 void RenderWidgetHostImpl::StopHangMonitorTimeout() { | 931 void RenderWidgetHostImpl::StopHangMonitorTimeout() { |
| 932 if (hang_monitor_timeout_) | 932 if (hang_monitor_timeout_) |
| 933 hang_monitor_timeout_->Stop(); | 933 hang_monitor_timeout_->Stop(); |
| 934 RendererIsResponsive(); | 934 RendererIsResponsive(); |
| 935 } | 935 } |
| 936 | 936 |
| 937 void RenderWidgetHostImpl::EnableFullAccessibilityMode() { | 937 void RenderWidgetHostImpl::EnableFullAccessibilityMode() { |
| 938 SetAccessibilityMode(AccessibilityModeComplete); | 938 SetAccessibilityMode(accessibility_mode_ | AccessibilityModeComplete); |
| 939 } | 939 } |
| 940 | 940 |
| 941 void RenderWidgetHostImpl::ForwardMouseEvent(const WebMouseEvent& mouse_event) { | 941 void RenderWidgetHostImpl::ForwardMouseEvent(const WebMouseEvent& mouse_event) { |
| 942 ForwardMouseEventWithLatencyInfo(mouse_event, ui::LatencyInfo()); | 942 ForwardMouseEventWithLatencyInfo(mouse_event, ui::LatencyInfo()); |
| 943 } | 943 } |
| 944 | 944 |
| 945 void RenderWidgetHostImpl::ForwardMouseEventWithLatencyInfo( | 945 void RenderWidgetHostImpl::ForwardMouseEventWithLatencyInfo( |
| 946 const blink::WebMouseEvent& mouse_event, | 946 const blink::WebMouseEvent& mouse_event, |
| 947 const ui::LatencyInfo& ui_latency) { | 947 const ui::LatencyInfo& ui_latency) { |
| 948 TRACE_EVENT2("input", "RenderWidgetHostImpl::ForwardMouseEvent", | 948 TRACE_EVENT2("input", "RenderWidgetHostImpl::ForwardMouseEvent", |
| (...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2138 | 2138 |
| 2139 void RenderWidgetHostImpl::SetBackground(const SkBitmap& background) { | 2139 void RenderWidgetHostImpl::SetBackground(const SkBitmap& background) { |
| 2140 Send(new ViewMsg_SetBackground(GetRoutingID(), background)); | 2140 Send(new ViewMsg_SetBackground(GetRoutingID(), background)); |
| 2141 } | 2141 } |
| 2142 | 2142 |
| 2143 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent( | 2143 void RenderWidgetHostImpl::SetEditCommandsForNextKeyEvent( |
| 2144 const std::vector<EditCommand>& commands) { | 2144 const std::vector<EditCommand>& commands) { |
| 2145 Send(new InputMsg_SetEditCommandsForNextKeyEvent(GetRoutingID(), commands)); | 2145 Send(new InputMsg_SetEditCommandsForNextKeyEvent(GetRoutingID(), commands)); |
| 2146 } | 2146 } |
| 2147 | 2147 |
| 2148 void RenderWidgetHostImpl::SetAccessibilityMode(AccessibilityMode mode) { | 2148 void RenderWidgetHostImpl::SetAccessibilityMode(unsigned int mode) { |
| 2149 accessibility_mode_ = mode; | 2149 accessibility_mode_ = mode; |
| 2150 Send(new ViewMsg_SetAccessibilityMode(GetRoutingID(), mode)); | 2150 Send(new ViewMsg_SetAccessibilityMode(GetRoutingID(), mode)); |
| 2151 } | 2151 } |
| 2152 | 2152 |
| 2153 void RenderWidgetHostImpl::AccessibilityDoDefaultAction(int object_id) { | 2153 void RenderWidgetHostImpl::AccessibilityDoDefaultAction(int object_id) { |
| 2154 Send(new AccessibilityMsg_DoDefaultAction(GetRoutingID(), object_id)); | 2154 Send(new AccessibilityMsg_DoDefaultAction(GetRoutingID(), object_id)); |
| 2155 } | 2155 } |
| 2156 | 2156 |
| 2157 void RenderWidgetHostImpl::AccessibilitySetFocus(int object_id) { | 2157 void RenderWidgetHostImpl::AccessibilitySetFocus(int object_id) { |
| 2158 Send(new AccessibilityMsg_SetFocus(GetRoutingID(), object_id)); | 2158 Send(new AccessibilityMsg_SetFocus(GetRoutingID(), object_id)); |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2569 } | 2569 } |
| 2570 } | 2570 } |
| 2571 | 2571 |
| 2572 // Add newly generated components into the latency info | 2572 // Add newly generated components into the latency info |
| 2573 for (lc = new_components.begin(); lc != new_components.end(); ++lc) { | 2573 for (lc = new_components.begin(); lc != new_components.end(); ++lc) { |
| 2574 latency_info->latency_components[lc->first] = lc->second; | 2574 latency_info->latency_components[lc->first] = lc->second; |
| 2575 } | 2575 } |
| 2576 } | 2576 } |
| 2577 | 2577 |
| 2578 } // namespace content | 2578 } // namespace content |
| OLD | NEW |