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

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

Issue 23304003: Revert 218338 "Resubmit issue to fix issue where window bounds w..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | trunk/src/content/browser/renderer_host/render_widget_host_view_aura.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 1416
1417 if (view_->GetViewBounds() == last_view_screen_rect_ && 1417 if (view_->GetViewBounds() == last_view_screen_rect_ &&
1418 view_->GetBoundsInRootWindow() == last_window_screen_rect_) { 1418 view_->GetBoundsInRootWindow() == last_window_screen_rect_) {
1419 return; 1419 return;
1420 } 1420 }
1421 1421
1422 SendScreenRects(); 1422 SendScreenRects();
1423 } 1423 }
1424 1424
1425 void RenderWidgetHostImpl::OnRequestMove(const gfx::Rect& pos) { 1425 void RenderWidgetHostImpl::OnRequestMove(const gfx::Rect& pos) {
1426 // Note that we ignore the position.
1426 if (view_) { 1427 if (view_) {
1427 view_->SetBounds(pos); 1428 view_->SetBounds(pos);
1428 Send(new ViewMsg_Move_ACK(routing_id_)); 1429 Send(new ViewMsg_Move_ACK(routing_id_));
1429 } 1430 }
1430 } 1431 }
1431 1432
1432 void RenderWidgetHostImpl::OnPaintAtSizeAck(int tag, const gfx::Size& size) { 1433 void RenderWidgetHostImpl::OnPaintAtSizeAck(int tag, const gfx::Size& size) {
1433 std::pair<int, gfx::Size> details = std::make_pair(tag, size); 1434 std::pair<int, gfx::Size> details = std::make_pair(tag, size);
1434 NotificationService::current()->Notify( 1435 NotificationService::current()->Notify(
1435 NOTIFICATION_RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK, 1436 NOTIFICATION_RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK,
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after
2477 int process_id = (b->first.second >> 32) & 0xffffffff; 2478 int process_id = (b->first.second >> 32) & 0xffffffff;
2478 RenderWidgetHost* rwh = 2479 RenderWidgetHost* rwh =
2479 RenderWidgetHost::FromID(process_id, routing_id); 2480 RenderWidgetHost::FromID(process_id, routing_id);
2480 if (!rwh) 2481 if (!rwh)
2481 continue; 2482 continue;
2482 RenderWidgetHostImpl::From(rwh)->FrameSwapped(latency_info); 2483 RenderWidgetHostImpl::From(rwh)->FrameSwapped(latency_info);
2483 } 2484 }
2484 } 2485 }
2485 2486
2486 } // namespace content 2487 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | trunk/src/content/browser/renderer_host/render_widget_host_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698