OLD | NEW |
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/view_prop.h" | 10 #include "app/view_prop.h" |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 if (!scroll_rect.IsEmpty()) { | 724 if (!scroll_rect.IsEmpty()) { |
725 RECT clip_rect = scroll_rect.ToRECT(); | 725 RECT clip_rect = scroll_rect.ToRECT(); |
726 ScrollWindowEx(scroll_dx, scroll_dy, NULL, &clip_rect, NULL, NULL, | 726 ScrollWindowEx(scroll_dx, scroll_dy, NULL, &clip_rect, NULL, NULL, |
727 SW_INVALIDATE); | 727 SW_INVALIDATE); |
728 } | 728 } |
729 | 729 |
730 if (!about_to_validate_and_paint_) | 730 if (!about_to_validate_and_paint_) |
731 Redraw(); | 731 Redraw(); |
732 } | 732 } |
733 | 733 |
734 void RenderWidgetHostViewWin::RenderViewGone() { | 734 void RenderWidgetHostViewWin::RenderViewGone(base::TerminationStatus status, |
| 735 int error_code) { |
735 // TODO(darin): keep this around, and draw sad-tab into it. | 736 // TODO(darin): keep this around, and draw sad-tab into it. |
736 UpdateCursorIfOverSelf(); | 737 UpdateCursorIfOverSelf(); |
737 being_destroyed_ = true; | 738 being_destroyed_ = true; |
738 CleanupCompositorWindow(); | 739 CleanupCompositorWindow(); |
739 DestroyWindow(); | 740 DestroyWindow(); |
740 } | 741 } |
741 | 742 |
742 void RenderWidgetHostViewWin::WillWmDestroy() { | 743 void RenderWidgetHostViewWin::WillWmDestroy() { |
743 CleanupCompositorWindow(); | 744 CleanupCompositorWindow(); |
744 } | 745 } |
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1803 } | 1804 } |
1804 | 1805 |
1805 // static | 1806 // static |
1806 RenderWidgetHostView* | 1807 RenderWidgetHostView* |
1807 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( | 1808 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( |
1808 gfx::NativeView native_view) { | 1809 gfx::NativeView native_view) { |
1809 return ::IsWindow(native_view) ? | 1810 return ::IsWindow(native_view) ? |
1810 reinterpret_cast<RenderWidgetHostView*>( | 1811 reinterpret_cast<RenderWidgetHostView*>( |
1811 ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL; | 1812 ViewProp::GetValue(native_view, kRenderWidgetHostViewKey)) : NULL; |
1812 } | 1813 } |
OLD | NEW |