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

Unified Diff: chrome/browser/ui/views/frame/app_panel_browser_frame_view.cc

Issue 6334152: Clean up RTL methods.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
Index: chrome/browser/ui/views/frame/app_panel_browser_frame_view.cc
===================================================================
--- chrome/browser/ui/views/frame/app_panel_browser_frame_view.cc (revision 74080)
+++ chrome/browser/ui/views/frame/app_panel_browser_frame_view.cc (working copy)
@@ -156,7 +156,7 @@
// of Fitts' Law.
if (frame_->GetWindow()->IsMaximized())
sysmenu_rect.SetRect(0, 0, sysmenu_rect.right(), sysmenu_rect.bottom());
- sysmenu_rect.set_x(MirroredLeftPointForRect(sysmenu_rect));
+ sysmenu_rect.set_x(GetMirroredXForRect(sysmenu_rect));
if (sysmenu_rect.Contains(point))
return (frame_component == HTCLIENT) ? HTCLIENT : HTSYSMENU;
@@ -165,7 +165,7 @@
// Then see if the point is within any of the window controls.
if (close_button_->IsVisible() &&
- close_button_->GetBounds(APPLY_MIRRORING_TRANSFORMATION).Contains(point))
+ close_button_->GetMirroredBounds().Contains(point))
return HTCLOSE;
int window_component = GetHTComponentForFrame(point,
@@ -404,7 +404,7 @@
// The window icon is painted by the TabIconView.
views::WindowDelegate* d = frame_->GetWindow()->GetDelegate();
canvas->DrawStringInt(d->GetWindowTitle(), BrowserFrame::GetTitleFont(),
- SK_ColorBLACK, MirroredLeftPointForRect(title_bounds_), title_bounds_.y(),
+ SK_ColorBLACK, GetMirroredXForRect(title_bounds_), title_bounds_.y(),
title_bounds_.width(), title_bounds_.height());
}

Powered by Google App Engine
This is Rietveld 408576698