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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
992 void RenderWidgetHostImpl::NotifyScreenInfoChanged() { | 992 void RenderWidgetHostImpl::NotifyScreenInfoChanged() { |
993 WebKit::WebScreenInfo screen_info; | 993 WebKit::WebScreenInfo screen_info; |
994 GetWebScreenInfo(&screen_info); | 994 GetWebScreenInfo(&screen_info); |
995 Send(new ViewMsg_ScreenInfoChanged(GetRoutingID(), screen_info)); | 995 Send(new ViewMsg_ScreenInfoChanged(GetRoutingID(), screen_info)); |
996 } | 996 } |
997 | 997 |
998 void RenderWidgetHostImpl::SetDeviceScaleFactor(float scale) { | 998 void RenderWidgetHostImpl::SetDeviceScaleFactor(float scale) { |
999 Send(new ViewMsg_SetDeviceScaleFactor(GetRoutingID(), scale)); | 999 Send(new ViewMsg_SetDeviceScaleFactor(GetRoutingID(), scale)); |
1000 } | 1000 } |
1001 | 1001 |
1002 void RenderWidgetHostImpl::UpdateVSyncParameters(base::TimeTicks timebase, | |
darin (slow to review)
2012/07/24 23:56:43
Does it make sense to pass TimeTicks values across
| |
1003 base::TimeDelta interval) { | |
1004 Send(new ViewMsg_UpdateVSyncParameters(GetRoutingID(), timebase, interval)); | |
1005 } | |
1006 | |
1002 void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status, | 1007 void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status, |
1003 int exit_code) { | 1008 int exit_code) { |
1004 // Clearing this flag causes us to re-create the renderer when recovering | 1009 // Clearing this flag causes us to re-create the renderer when recovering |
1005 // from a crashed renderer. | 1010 // from a crashed renderer. |
1006 renderer_initialized_ = false; | 1011 renderer_initialized_ = false; |
1007 | 1012 |
1008 // Must reset these to ensure that mouse move/wheel events work with a new | 1013 // Must reset these to ensure that mouse move/wheel events work with a new |
1009 // renderer. | 1014 // renderer. |
1010 mouse_move_pending_ = false; | 1015 mouse_move_pending_ = false; |
1011 next_mouse_move_.reset(); | 1016 next_mouse_move_.reset(); |
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1926 // indicate that no callback is in progress (i.e. without this line | 1931 // indicate that no callback is in progress (i.e. without this line |
1927 // DelayedAutoResized will not get called again). | 1932 // DelayedAutoResized will not get called again). |
1928 new_auto_size_.SetSize(0, 0); | 1933 new_auto_size_.SetSize(0, 0); |
1929 if (!should_auto_resize_) | 1934 if (!should_auto_resize_) |
1930 return; | 1935 return; |
1931 | 1936 |
1932 OnRenderAutoResized(new_size); | 1937 OnRenderAutoResized(new_size); |
1933 } | 1938 } |
1934 | 1939 |
1935 } // namespace content | 1940 } // namespace content |
OLD | NEW |