| 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_gtk.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" |
| 6 | 6 |
| 7 #include <cairo/cairo.h> | 7 #include <cairo/cairo.h> |
| 8 #include <gdk/gdk.h> | 8 #include <gdk/gdk.h> |
| 9 #include <gdk/gdkkeysyms.h> | 9 #include <gdk/gdkkeysyms.h> |
| 10 #include <gdk/gdkx.h> | 10 #include <gdk/gdkx.h> |
| (...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 if (rect.IsEmpty()) | 875 if (rect.IsEmpty()) |
| 876 continue; | 876 continue; |
| 877 | 877 |
| 878 if (about_to_validate_and_paint_) | 878 if (about_to_validate_and_paint_) |
| 879 invalid_rect_.Union(rect); | 879 invalid_rect_.Union(rect); |
| 880 else | 880 else |
| 881 Paint(rect); | 881 Paint(rect); |
| 882 } | 882 } |
| 883 } | 883 } |
| 884 | 884 |
| 885 void RenderWidgetHostViewGtk::RenderViewGone(base::TerminationStatus status, | 885 void RenderWidgetHostViewGtk::RenderProcessGone(base::TerminationStatus status, |
| 886 int error_code) { | 886 int error_code) { |
| 887 Destroy(); | 887 Destroy(); |
| 888 plugin_container_manager_.set_host_widget(NULL); | 888 plugin_container_manager_.set_host_widget(NULL); |
| 889 } | 889 } |
| 890 | 890 |
| 891 void RenderWidgetHostViewGtk::Destroy() { | 891 void RenderWidgetHostViewGtk::Destroy() { |
| 892 if (compositing_surface_ != gfx::kNullPluginWindow) { | 892 if (compositing_surface_ != gfx::kNullPluginWindow) { |
| 893 GtkNativeViewManager* manager = GtkNativeViewManager::GetInstance(); | 893 GtkNativeViewManager* manager = GtkNativeViewManager::GetInstance(); |
| 894 manager->ReleasePermanentXID(compositing_surface_); | 894 manager->ReleasePermanentXID(compositing_surface_); |
| 895 } | 895 } |
| 896 | 896 |
| (...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1578 gfx::PluginWindowHandle id) { | 1578 gfx::PluginWindowHandle id) { |
| 1579 plugin_container_manager_.CreatePluginContainer(id); | 1579 plugin_container_manager_.CreatePluginContainer(id); |
| 1580 } | 1580 } |
| 1581 | 1581 |
| 1582 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( | 1582 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( |
| 1583 gfx::PluginWindowHandle id) { | 1583 gfx::PluginWindowHandle id) { |
| 1584 plugin_container_manager_.DestroyPluginContainer(id); | 1584 plugin_container_manager_.DestroyPluginContainer(id); |
| 1585 } | 1585 } |
| 1586 | 1586 |
| 1587 } // namespace content | 1587 } // namespace content |
| OLD | NEW |