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 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1188 } | 1188 } |
1189 } | 1189 } |
1190 | 1190 |
1191 void RenderWidgetHostImpl::UpdateVSyncParameters(base::TimeTicks timebase, | 1191 void RenderWidgetHostImpl::UpdateVSyncParameters(base::TimeTicks timebase, |
1192 base::TimeDelta interval) { | 1192 base::TimeDelta interval) { |
1193 Send(new ViewMsg_UpdateVSyncParameters(GetRoutingID(), timebase, interval)); | 1193 Send(new ViewMsg_UpdateVSyncParameters(GetRoutingID(), timebase, interval)); |
1194 } | 1194 } |
1195 | 1195 |
1196 void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status, | 1196 void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status, |
1197 int exit_code) { | 1197 int exit_code) { |
| 1198 if (!renderer_initialized_) |
| 1199 return; |
| 1200 |
1198 // Clearing this flag causes us to re-create the renderer when recovering | 1201 // Clearing this flag causes us to re-create the renderer when recovering |
1199 // from a crashed renderer. | 1202 // from a crashed renderer. |
1200 renderer_initialized_ = false; | 1203 renderer_initialized_ = false; |
1201 | 1204 |
1202 waiting_for_screen_rects_ack_ = false; | 1205 waiting_for_screen_rects_ack_ = false; |
1203 | 1206 |
1204 // Must reset these to ensure that keyboard events work with a new renderer. | 1207 // Must reset these to ensure that keyboard events work with a new renderer. |
1205 suppress_next_char_events_ = false; | 1208 suppress_next_char_events_ = false; |
1206 | 1209 |
1207 // Reset some fields in preparation for recovering from a crash. | 1210 // Reset some fields in preparation for recovering from a crash. |
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2120 } | 2123 } |
2121 | 2124 |
2122 #if defined(OS_WIN) | 2125 #if defined(OS_WIN) |
2123 gfx::NativeViewAccessible | 2126 gfx::NativeViewAccessible |
2124 RenderWidgetHostImpl::GetParentNativeViewAccessible() { | 2127 RenderWidgetHostImpl::GetParentNativeViewAccessible() { |
2125 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; | 2128 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; |
2126 } | 2129 } |
2127 #endif | 2130 #endif |
2128 | 2131 |
2129 } // namespace content | 2132 } // namespace content |
OLD | NEW |