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

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: Created 10 years, 1 month 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 "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/l10n_util_win.h" 8 #include "app/l10n_util_win.h"
9 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
10 #include "app/win/scoped_prop.h" 10 #include "app/win/scoped_prop.h"
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 if (!scroll_rect.IsEmpty()) { 692 if (!scroll_rect.IsEmpty()) {
693 RECT clip_rect = scroll_rect.ToRECT(); 693 RECT clip_rect = scroll_rect.ToRECT();
694 ScrollWindowEx(scroll_dx, scroll_dy, NULL, &clip_rect, NULL, NULL, 694 ScrollWindowEx(scroll_dx, scroll_dy, NULL, &clip_rect, NULL, NULL,
695 SW_INVALIDATE); 695 SW_INVALIDATE);
696 } 696 }
697 697
698 if (!about_to_validate_and_paint_) 698 if (!about_to_validate_and_paint_)
699 Redraw(); 699 Redraw();
700 } 700 }
701 701
702 void RenderWidgetHostViewWin::RenderViewGone() { 702 void RenderWidgetHostViewWin::RenderViewGone(base::TerminationStatus status,
703 int error_code) {
703 // TODO(darin): keep this around, and draw sad-tab into it. 704 // TODO(darin): keep this around, and draw sad-tab into it.
704 UpdateCursorIfOverSelf(); 705 UpdateCursorIfOverSelf();
705 being_destroyed_ = true; 706 being_destroyed_ = true;
706 DestroyWindow(); 707 DestroyWindow();
707 } 708 }
708 709
709 void RenderWidgetHostViewWin::WillDestroyRenderWidget(RenderWidgetHost* rwh) { 710 void RenderWidgetHostViewWin::WillDestroyRenderWidget(RenderWidgetHost* rwh) {
710 if (rwh == render_widget_host_) 711 if (rwh == render_widget_host_)
711 render_widget_host_ = NULL; 712 render_widget_host_ = NULL;
712 } 713 }
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
1636 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( 1637 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
1637 gfx::NativeView native_view) { 1638 gfx::NativeView native_view) {
1638 if (::IsWindow(native_view)) { 1639 if (::IsWindow(native_view)) {
1639 HANDLE raw_render_host_view = ::GetProp(native_view, 1640 HANDLE raw_render_host_view = ::GetProp(native_view,
1640 kRenderWidgetHostViewKey); 1641 kRenderWidgetHostViewKey);
1641 if (raw_render_host_view) 1642 if (raw_render_host_view)
1642 return reinterpret_cast<RenderWidgetHostView*>(raw_render_host_view); 1643 return reinterpret_cast<RenderWidgetHostView*>(raw_render_host_view);
1643 } 1644 }
1644 return NULL; 1645 return NULL;
1645 } 1646 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698