| 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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 do_x_grab_(false), | 554 do_x_grab_(false), |
| 555 is_fullscreen_(false), | 555 is_fullscreen_(false), |
| 556 made_active_(false), | 556 made_active_(false), |
| 557 mouse_is_being_warped_to_unlocked_position_(false), | 557 mouse_is_being_warped_to_unlocked_position_(false), |
| 558 destroy_handler_id_(0), | 558 destroy_handler_id_(0), |
| 559 dragged_at_horizontal_edge_(0), | 559 dragged_at_horizontal_edge_(0), |
| 560 dragged_at_vertical_edge_(0), | 560 dragged_at_vertical_edge_(0), |
| 561 compositing_surface_(gfx::kNullPluginWindow), | 561 compositing_surface_(gfx::kNullPluginWindow), |
| 562 last_mouse_down_(NULL) { | 562 last_mouse_down_(NULL) { |
| 563 host_->SetView(this); | 563 host_->SetView(this); |
| 564 if (host_->is_hidden()) |
| 565 WasHidden(); |
| 564 } | 566 } |
| 565 | 567 |
| 566 RenderWidgetHostViewGtk::~RenderWidgetHostViewGtk() { | 568 RenderWidgetHostViewGtk::~RenderWidgetHostViewGtk() { |
| 567 UnlockMouse(); | 569 UnlockMouse(); |
| 568 set_last_mouse_down(NULL); | 570 set_last_mouse_down(NULL); |
| 569 view_.Destroy(); | 571 view_.Destroy(); |
| 570 } | 572 } |
| 571 | 573 |
| 572 bool RenderWidgetHostViewGtk::OnMessageReceived(const IPC::Message& message) { | 574 bool RenderWidgetHostViewGtk::OnMessageReceived(const IPC::Message& message) { |
| 573 bool handled = true; | 575 bool handled = true; |
| (...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1575 gfx::PluginWindowHandle id) { | 1577 gfx::PluginWindowHandle id) { |
| 1576 plugin_container_manager_.CreatePluginContainer(id); | 1578 plugin_container_manager_.CreatePluginContainer(id); |
| 1577 } | 1579 } |
| 1578 | 1580 |
| 1579 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( | 1581 void RenderWidgetHostViewGtk::OnDestroyPluginContainer( |
| 1580 gfx::PluginWindowHandle id) { | 1582 gfx::PluginWindowHandle id) { |
| 1581 plugin_container_manager_.DestroyPluginContainer(id); | 1583 plugin_container_manager_.DestroyPluginContainer(id); |
| 1582 } | 1584 } |
| 1583 | 1585 |
| 1584 } // namespace content | 1586 } // namespace content |
| OLD | NEW |