OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_widget_host_view_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 gfx::Rect screen_rect = GetViewBounds(); | 1081 gfx::Rect screen_rect = GetViewBounds(); |
1082 gfx::Rect invalid_screen_rect(rect); | 1082 gfx::Rect invalid_screen_rect(rect); |
1083 invalid_screen_rect.Offset(screen_rect.x(), screen_rect.y()); | 1083 invalid_screen_rect.Offset(screen_rect.x(), screen_rect.y()); |
1084 HWND hwnd = root_window->GetAcceleratedWidget(); | 1084 HWND hwnd = root_window->GetAcceleratedWidget(); |
1085 PaintPluginWindowsHelper(hwnd, invalid_screen_rect); | 1085 PaintPluginWindowsHelper(hwnd, invalid_screen_rect); |
1086 } | 1086 } |
1087 #endif // defined(OS_WIN) | 1087 #endif // defined(OS_WIN) |
1088 } | 1088 } |
1089 } | 1089 } |
1090 | 1090 |
1091 void RenderWidgetHostViewAura::RenderViewGone(base::TerminationStatus status, | 1091 void RenderWidgetHostViewAura::RenderProcessGone(base::TerminationStatus status, |
1092 int error_code) { | 1092 int error_code) { |
1093 UpdateCursorIfOverSelf(); | 1093 UpdateCursorIfOverSelf(); |
1094 Destroy(); | 1094 Destroy(); |
1095 } | 1095 } |
1096 | 1096 |
1097 void RenderWidgetHostViewAura::Destroy() { | 1097 void RenderWidgetHostViewAura::Destroy() { |
1098 // Beware, this function is not called on all destruction paths. It will | 1098 // Beware, this function is not called on all destruction paths. It will |
1099 // implicitly end up calling ~RenderWidgetHostViewAura though, so all | 1099 // implicitly end up calling ~RenderWidgetHostViewAura though, so all |
1100 // destruction/cleanup code should happen there, not here. | 1100 // destruction/cleanup code should happen there, not here. |
1101 in_shutdown_ = true; | 1101 in_shutdown_ = true; |
1102 delete window_; | 1102 delete window_; |
(...skipping 1978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3081 RenderWidgetHost* widget) { | 3081 RenderWidgetHost* widget) { |
3082 return new RenderWidgetHostViewAura(widget); | 3082 return new RenderWidgetHostViewAura(widget); |
3083 } | 3083 } |
3084 | 3084 |
3085 // static | 3085 // static |
3086 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 3086 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
3087 GetScreenInfoForWindow(results, NULL); | 3087 GetScreenInfoForWindow(results, NULL); |
3088 } | 3088 } |
3089 | 3089 |
3090 } // namespace content | 3090 } // namespace content |
OLD | NEW |