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

Unified Diff: ui/views/widget/widget.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/widget.h ('k') | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index e8ab01a4404220f6a0e4cf8a567a5b03106fab1d..12dd4ca99f2cd175ac33f2c9519eb403f2427870 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -415,12 +415,12 @@ View* Widget::GetContentsView() {
return root_view_->GetContentsView();
}
-gfx::Rect Widget::GetWindowScreenBounds() const {
- return native_widget_->GetWindowScreenBounds();
+gfx::Rect Widget::GetWindowBoundsInScreen() const {
+ return native_widget_->GetWindowBoundsInScreen();
}
-gfx::Rect Widget::GetClientAreaScreenBounds() const {
- return native_widget_->GetClientAreaScreenBounds();
+gfx::Rect Widget::GetClientAreaBoundsInScreen() const {
+ return native_widget_->GetClientAreaBoundsInScreen();
}
gfx::Rect Widget::GetRestoredBounds() const {
@@ -891,8 +891,8 @@ View* Widget::GetChildViewParent() {
return GetContentsView() ? GetContentsView() : GetRootView();
}
-gfx::Rect Widget::GetWorkAreaScreenBounds() const {
- return native_widget_->GetWorkAreaScreenBounds();
+gfx::Rect Widget::GetWorkAreaBoundsInScreen() const {
+ return native_widget_->GetWorkAreaBoundsInScreen();
}
void Widget::OnOwnerClosing() {
@@ -1031,7 +1031,7 @@ bool Widget::OnNativeWidgetPaintAccelerated(const gfx::Rect& dirty_region) {
// Determine if the layer fills the client area.
gfx::Rect layer_bounds = GetRootView()->layer()->bounds();
layer_transform.TransformRect(&layer_bounds);
- gfx::Rect client_bounds = GetClientAreaScreenBounds();
+ gfx::Rect client_bounds = GetClientAreaBoundsInScreen();
// Translate bounds to origin (client area bounds are offset to account
// for buttons, etc).
client_bounds.set_origin(gfx::Point(0, 0));
« no previous file with comments | « ui/views/widget/widget.h ('k') | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698