Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_win.cc

Issue 5172009: This adds some plumbing for propagating the reason for a renderer's death (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final review changes Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/renderer_host/render_widget_host_view_win.h" 5 #include "chrome/browser/renderer_host/render_widget_host_view_win.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/l10n_util_win.h" 10 #include "app/l10n_util_win.h"
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 if (!scroll_rect.IsEmpty()) { 716 if (!scroll_rect.IsEmpty()) {
717 RECT clip_rect = scroll_rect.ToRECT(); 717 RECT clip_rect = scroll_rect.ToRECT();
718 ScrollWindowEx(scroll_dx, scroll_dy, NULL, &clip_rect, NULL, NULL, 718 ScrollWindowEx(scroll_dx, scroll_dy, NULL, &clip_rect, NULL, NULL,
719 SW_INVALIDATE); 719 SW_INVALIDATE);
720 } 720 }
721 721
722 if (!about_to_validate_and_paint_) 722 if (!about_to_validate_and_paint_)
723 Redraw(); 723 Redraw();
724 } 724 }
725 725
726 void RenderWidgetHostViewWin::RenderViewGone() { 726 void RenderWidgetHostViewWin::RenderViewGone(base::TerminationStatus status,
727 int error_code) {
727 // TODO(darin): keep this around, and draw sad-tab into it. 728 // TODO(darin): keep this around, and draw sad-tab into it.
728 UpdateCursorIfOverSelf(); 729 UpdateCursorIfOverSelf();
729 being_destroyed_ = true; 730 being_destroyed_ = true;
730 CleanupCompositorWindow(); 731 CleanupCompositorWindow();
731 DestroyWindow(); 732 DestroyWindow();
732 } 733 }
733 734
734 void RenderWidgetHostViewWin::WillWmDestroy() { 735 void RenderWidgetHostViewWin::WillWmDestroy() {
735 CleanupCompositorWindow(); 736 CleanupCompositorWindow();
736 } 737 }
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 } 1798 }
1798 1799
1799 // static 1800 // static
1800 RenderWidgetHostView* 1801 RenderWidgetHostView*
1801 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( 1802 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
1802 gfx::NativeView native_view) { 1803 gfx::NativeView native_view) {
1803 return ::IsWindow(native_view) ? 1804 return ::IsWindow(native_view) ?
1804 reinterpret_cast<RenderWidgetHostView*>( 1805 reinterpret_cast<RenderWidgetHostView*>(
1805 ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL; 1806 ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL;
1806 } 1807 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_win.h ('k') | chrome/browser/renderer_host/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698