| 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 <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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |