Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1267)

Side by Side Diff: content/browser/renderer_host/render_widget_host.cc

Issue 6024008: Consider the popup window position when the window shows upward. This patch depends on WebKit patch. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix CPoint to POINT. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "content/browser/renderer_host/render_widget_host.h" 5 #include "content/browser/renderer_host/render_widget_host.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 Destroy(); 793 Destroy();
794 } 794 }
795 795
796 void RenderWidgetHost::OnMsgClose() { 796 void RenderWidgetHost::OnMsgClose() {
797 Shutdown(); 797 Shutdown();
798 } 798 }
799 799
800 void RenderWidgetHost::OnMsgRequestMove(const gfx::Rect& pos) { 800 void RenderWidgetHost::OnMsgRequestMove(const gfx::Rect& pos) {
801 // Note that we ignore the position. 801 // Note that we ignore the position.
802 if (view_) { 802 if (view_) {
803 view_->SetSize(pos.size()); 803 view_->SetBounds(pos);
804 Send(new ViewMsg_Move_ACK(routing_id_)); 804 Send(new ViewMsg_Move_ACK(routing_id_));
805 } 805 }
806 } 806 }
807 807
808 void RenderWidgetHost::OnMsgPaintAtSizeAck(int tag, const gfx::Size& size) { 808 void RenderWidgetHost::OnMsgPaintAtSizeAck(int tag, const gfx::Size& size) {
809 PaintAtSizeAckDetails details = {tag, size}; 809 PaintAtSizeAckDetails details = {tag, size};
810 gfx::Size size_details = size; 810 gfx::Size size_details = size;
811 NotificationService::current()->Notify( 811 NotificationService::current()->Notify(
812 NotificationType::RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK, 812 NotificationType::RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK,
813 Source<RenderWidgetHost>(this), 813 Source<RenderWidgetHost>(this),
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 #endif 1283 #endif
1284 } 1284 }
1285 1285
1286 deferred_plugin_handles_.clear(); 1286 deferred_plugin_handles_.clear();
1287 } 1287 }
1288 1288
1289 void RenderWidgetHost::StartUserGesture() { 1289 void RenderWidgetHost::StartUserGesture() {
1290 OnUserGesture(); 1290 OnUserGesture();
1291 } 1291 }
1292 1292
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_win.cc ('k') | content/browser/renderer_host/render_widget_host_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698