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

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

Issue 10795013: Rename bounds accessors to be intuitive and consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 <utility> 7 #include <utility>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after
1622 } 1622 }
1623 1623
1624 #if defined(OS_POSIX) || defined(USE_AURA) 1624 #if defined(OS_POSIX) || defined(USE_AURA)
1625 void RenderWidgetHostImpl::OnMsgGetWindowRect(gfx::NativeViewId window_id, 1625 void RenderWidgetHostImpl::OnMsgGetWindowRect(gfx::NativeViewId window_id,
1626 gfx::Rect* results) { 1626 gfx::Rect* results) {
1627 if (view_) 1627 if (view_)
1628 *results = view_->GetViewBounds(); 1628 *results = view_->GetViewBounds();
1629 } 1629 }
1630 1630
1631 void RenderWidgetHostImpl::OnMsgGetRootWindowRect(gfx::NativeViewId window_id, 1631 void RenderWidgetHostImpl::OnMsgGetRootWindowRect(gfx::NativeViewId window_id,
1632 gfx::Rect* results) { 1632 gfx::Rect* results) {
1633 if (view_) 1633 if (view_)
1634 *results = view_->GetRootWindowBounds(); 1634 *results = view_->GetBoundsInRootWindow();
1635 } 1635 }
1636 #endif 1636 #endif
1637 1637
1638 bool RenderWidgetHostImpl::PaintBackingStoreRect( 1638 bool RenderWidgetHostImpl::PaintBackingStoreRect(
1639 TransportDIB::Id bitmap, 1639 TransportDIB::Id bitmap,
1640 const gfx::Rect& bitmap_rect, 1640 const gfx::Rect& bitmap_rect,
1641 const std::vector<gfx::Rect>& copy_rects, 1641 const std::vector<gfx::Rect>& copy_rects,
1642 const gfx::Size& view_size, 1642 const gfx::Size& view_size,
1643 float scale_factor, 1643 float scale_factor,
1644 const base::Closure& completion_callback) { 1644 const base::Closure& completion_callback) {
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 // indicate that no callback is in progress (i.e. without this line 1908 // indicate that no callback is in progress (i.e. without this line
1909 // DelayedAutoResized will not get called again). 1909 // DelayedAutoResized will not get called again).
1910 new_auto_size_.SetSize(0, 0); 1910 new_auto_size_.SetSize(0, 0);
1911 if (!should_auto_resize_) 1911 if (!should_auto_resize_)
1912 return; 1912 return;
1913 1913
1914 OnRenderAutoResized(new_size); 1914 OnRenderAutoResized(new_size);
1915 } 1915 }
1916 1916
1917 } // namespace content 1917 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/ui/window_sizer/window_sizer_ash.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698