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

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

Issue 19681003: Fix issue where window bounds were being passed with wrong coordinates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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) 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_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1746 matching lines...) Expand 10 before | Expand all | Expand 10 after
1757 1757
1758 if (view_->GetViewBounds() == last_view_screen_rect_ && 1758 if (view_->GetViewBounds() == last_view_screen_rect_ &&
1759 view_->GetBoundsInRootWindow() == last_window_screen_rect_) { 1759 view_->GetBoundsInRootWindow() == last_window_screen_rect_) {
1760 return; 1760 return;
1761 } 1761 }
1762 1762
1763 SendScreenRects(); 1763 SendScreenRects();
1764 } 1764 }
1765 1765
1766 void RenderWidgetHostImpl::OnRequestMove(const gfx::Rect& pos) { 1766 void RenderWidgetHostImpl::OnRequestMove(const gfx::Rect& pos) {
1767 // Note that we ignore the position.
1768 if (view_) { 1767 if (view_) {
1769 view_->SetBounds(pos); 1768 view_->SetBounds(pos);
1770 Send(new ViewMsg_Move_ACK(routing_id_)); 1769 Send(new ViewMsg_Move_ACK(routing_id_));
1771 } 1770 }
1772 } 1771 }
1773 1772
1774 void RenderWidgetHostImpl::OnPaintAtSizeAck(int tag, const gfx::Size& size) { 1773 void RenderWidgetHostImpl::OnPaintAtSizeAck(int tag, const gfx::Size& size) {
1775 std::pair<int, gfx::Size> details = std::make_pair(tag, size); 1774 std::pair<int, gfx::Size> details = std::make_pair(tag, size);
1776 NotificationService::current()->Notify( 1775 NotificationService::current()->Notify(
1777 NOTIFICATION_RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK, 1776 NOTIFICATION_RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK,
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
2734 int process_id = (b->first.second >> 32) & 0xffffffff; 2733 int process_id = (b->first.second >> 32) & 0xffffffff;
2735 RenderWidgetHost* rwh = 2734 RenderWidgetHost* rwh =
2736 RenderWidgetHost::FromID(process_id, routing_id); 2735 RenderWidgetHost::FromID(process_id, routing_id);
2737 if (!rwh) 2736 if (!rwh)
2738 continue; 2737 continue;
2739 RenderWidgetHostImpl::From(rwh)->FrameSwapped(latency_info); 2738 RenderWidgetHostImpl::From(rwh)->FrameSwapped(latency_info);
2740 } 2739 }
2741 } 2740 }
2742 2741
2743 } // namespace content 2742 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698