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.h" | 5 #include "chrome/browser/renderer_host/render_widget_host.h" |
6 | 6 |
7 #include "app/keyboard_codes.h" | 7 #include "app/keyboard_codes.h" |
8 #include "base/auto_reset.h" | 8 #include "base/auto_reset.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 } | 776 } |
777 | 777 |
778 void RenderWidgetHost::OnMsgClose() { | 778 void RenderWidgetHost::OnMsgClose() { |
779 Shutdown(); | 779 Shutdown(); |
780 } | 780 } |
781 | 781 |
782 void RenderWidgetHost::OnMsgRequestMove(const gfx::Rect& pos) { | 782 void RenderWidgetHost::OnMsgRequestMove(const gfx::Rect& pos) { |
783 // Note that we ignore the position. | 783 // Note that we ignore the position. |
784 if (view_) { | 784 if (view_) { |
785 view_->SetSize(pos.size()); | 785 view_->SetSize(pos.size()); |
| 786 view_->SetMove(pos.origin()); |
786 Send(new ViewMsg_Move_ACK(routing_id_)); | 787 Send(new ViewMsg_Move_ACK(routing_id_)); |
787 } | 788 } |
788 } | 789 } |
789 | 790 |
790 void RenderWidgetHost::OnMsgPaintAtSizeAck(int tag, const gfx::Size& size) { | 791 void RenderWidgetHost::OnMsgPaintAtSizeAck(int tag, const gfx::Size& size) { |
791 if (painting_observer_) { | 792 if (painting_observer_) { |
792 painting_observer_->WidgetDidReceivePaintAtSizeAck(this, tag, size); | 793 painting_observer_->WidgetDidReceivePaintAtSizeAck(this, tag, size); |
793 } | 794 } |
794 } | 795 } |
795 | 796 |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1231 return; | 1232 return; |
1232 | 1233 |
1233 for (int i = 0; i < static_cast<int>(deferred_plugin_handles_.size()); i++) { | 1234 for (int i = 0; i < static_cast<int>(deferred_plugin_handles_.size()); i++) { |
1234 #if defined(TOOLKIT_USES_GTK) | 1235 #if defined(TOOLKIT_USES_GTK) |
1235 view_->CreatePluginContainer(deferred_plugin_handles_[i]); | 1236 view_->CreatePluginContainer(deferred_plugin_handles_[i]); |
1236 #endif | 1237 #endif |
1237 } | 1238 } |
1238 | 1239 |
1239 deferred_plugin_handles_.clear(); | 1240 deferred_plugin_handles_.clear(); |
1240 } | 1241 } |
OLD | NEW |