| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/browser/render_widget_host.h" | 5 #include "chrome/browser/render_widget_host.h" |
| 6 | 6 |
| 7 #include "base/gfx/gdi_util.h" | 7 #include "base/gfx/gdi_util.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "chrome/app/chrome_dll_resource.h" | 9 #include "chrome/app/chrome_dll_resource.h" |
| 10 #include "chrome/browser/render_process_host.h" | 10 #include "chrome/browser/render_process_host.h" |
| 11 #include "chrome/browser/render_widget_helper.h" | 11 #include "chrome/browser/render_widget_helper.h" |
| 12 #include "chrome/browser/render_widget_host_view.h" | 12 #include "chrome/browser/render_widget_host_view.h" |
| 13 #include "chrome/common/mru_cache.h" | 13 #include "chrome/common/mru_cache.h" |
| 14 #include "chrome/common/win_util.h" | 14 #include "chrome/common/win_util.h" |
| 15 #include "chrome/views/view.h" | 15 #include "chrome/views/view.h" |
| 16 #include "webkit/glue/webcursor.h" | 16 #include "webkit/glue/webcursor.h" |
| 17 #include "webkit/glue/webinputevent.h" | 17 #include "webkit/glue/webinputevent.h" |
| 18 | 18 |
| 19 using base::Time; |
| 20 using base::TimeDelta; |
| 21 using base::TimeTicks; |
| 22 |
| 19 // How long to (synchronously) wait for the renderer to respond with a | 23 // How long to (synchronously) wait for the renderer to respond with a |
| 20 // PaintRect message, when our backing-store is invalid, before giving up and | 24 // PaintRect message, when our backing-store is invalid, before giving up and |
| 21 // returning a null or incorrectly sized backing-store from GetBackingStore. | 25 // returning a null or incorrectly sized backing-store from GetBackingStore. |
| 22 // This timeout impacts the "choppiness" of our window resize perf. | 26 // This timeout impacts the "choppiness" of our window resize perf. |
| 23 static const int kPaintMsgTimeoutMS = 40; | 27 static const int kPaintMsgTimeoutMS = 40; |
| 24 | 28 |
| 25 // How long to wait before we consider a renderer hung. | 29 // How long to wait before we consider a renderer hung. |
| 26 static const int kHungRendererDelayMs = 20000; | 30 static const int kHungRendererDelayMs = 20000; |
| 27 | 31 |
| 28 /////////////////////////////////////////////////////////////////////////////// | 32 /////////////////////////////////////////////////////////////////////////////// |
| (...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 &RenderWidgetHost::CheckRendererIsUnresponsive); | 831 &RenderWidgetHost::CheckRendererIsUnresponsive); |
| 828 } | 832 } |
| 829 | 833 |
| 830 void RenderWidgetHost::RendererExited() { | 834 void RenderWidgetHost::RendererExited() { |
| 831 BackingStoreManager::RemoveBackingStore(this); | 835 BackingStoreManager::RemoveBackingStore(this); |
| 832 } | 836 } |
| 833 | 837 |
| 834 void RenderWidgetHost::SystemThemeChanged() { | 838 void RenderWidgetHost::SystemThemeChanged() { |
| 835 Send(new ViewMsg_ThemeChanged(routing_id_)); | 839 Send(new ViewMsg_ThemeChanged(routing_id_)); |
| 836 } | 840 } |
| 837 | |
| 838 | |
| OLD | NEW |