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 <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1100 void RenderWidgetHostImpl::NotifyScreenInfoChanged() { | 1100 void RenderWidgetHostImpl::NotifyScreenInfoChanged() { |
1101 WebKit::WebScreenInfo screen_info; | 1101 WebKit::WebScreenInfo screen_info; |
1102 GetWebScreenInfo(&screen_info); | 1102 GetWebScreenInfo(&screen_info); |
1103 Send(new ViewMsg_ScreenInfoChanged(GetRoutingID(), screen_info)); | 1103 Send(new ViewMsg_ScreenInfoChanged(GetRoutingID(), screen_info)); |
1104 } | 1104 } |
1105 | 1105 |
1106 void RenderWidgetHostImpl::SetDeviceScaleFactor(float scale) { | 1106 void RenderWidgetHostImpl::SetDeviceScaleFactor(float scale) { |
1107 Send(new ViewMsg_SetDeviceScaleFactor(GetRoutingID(), scale)); | 1107 Send(new ViewMsg_SetDeviceScaleFactor(GetRoutingID(), scale)); |
1108 } | 1108 } |
1109 | 1109 |
| 1110 void RenderWidgetHostImpl::UpdateVSyncParameters(base::TimeTicks timebase, |
| 1111 base::TimeDelta interval) { |
| 1112 Send(new ViewMsg_UpdateVSyncParameters(GetRoutingID(), timebase, interval)); |
| 1113 } |
| 1114 |
1110 void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status, | 1115 void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status, |
1111 int exit_code) { | 1116 int exit_code) { |
1112 // Clearing this flag causes us to re-create the renderer when recovering | 1117 // Clearing this flag causes us to re-create the renderer when recovering |
1113 // from a crashed renderer. | 1118 // from a crashed renderer. |
1114 renderer_initialized_ = false; | 1119 renderer_initialized_ = false; |
1115 | 1120 |
1116 // Must reset these to ensure that mouse move/wheel events work with a new | 1121 // Must reset these to ensure that mouse move/wheel events work with a new |
1117 // renderer. | 1122 // renderer. |
1118 mouse_move_pending_ = false; | 1123 mouse_move_pending_ = false; |
1119 next_mouse_move_.reset(); | 1124 next_mouse_move_.reset(); |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2051 // indicate that no callback is in progress (i.e. without this line | 2056 // indicate that no callback is in progress (i.e. without this line |
2052 // DelayedAutoResized will not get called again). | 2057 // DelayedAutoResized will not get called again). |
2053 new_auto_size_.SetSize(0, 0); | 2058 new_auto_size_.SetSize(0, 0); |
2054 if (!should_auto_resize_) | 2059 if (!should_auto_resize_) |
2055 return; | 2060 return; |
2056 | 2061 |
2057 OnRenderAutoResized(new_size); | 2062 OnRenderAutoResized(new_size); |
2058 } | 2063 } |
2059 | 2064 |
2060 } // namespace content | 2065 } // namespace content |
OLD | NEW |