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

Unified Diff: views/window/custom_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
« no previous file with comments | « views/view_text_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/custom_frame_view.cc
===================================================================
--- views/window/custom_frame_view.cc (revision 74080)
+++ views/window/custom_frame_view.cc (working copy)
@@ -157,7 +157,7 @@
// of Fitts' Law.
if (frame_->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,19 +165,15 @@
return frame_component;
// Then see if the point is within any of the window controls.
- if (close_button_->GetBounds(APPLY_MIRRORING_TRANSFORMATION).Contains(point))
+ if (close_button_->GetMirroredBounds().Contains(point))
return HTCLOSE;
- if (restore_button_->GetBounds(APPLY_MIRRORING_TRANSFORMATION).Contains(
- point))
+ if (restore_button_->GetMirroredBounds().Contains(point))
return HTMAXBUTTON;
- if (maximize_button_->GetBounds(APPLY_MIRRORING_TRANSFORMATION).Contains(
- point))
+ if (maximize_button_->GetMirroredBounds().Contains(point))
return HTMAXBUTTON;
- if (minimize_button_->GetBounds(APPLY_MIRRORING_TRANSFORMATION).Contains(
- point))
+ if (minimize_button_->GetMirroredBounds().Contains(point))
return HTMINBUTTON;
- if (window_icon_ &&
- window_icon_->GetBounds(APPLY_MIRRORING_TRANSFORMATION).Contains(point))
+ if (window_icon_ && window_icon_->GetMirroredBounds().Contains(point))
return HTSYSMENU;
int window_component = GetHTComponentForFrame(point, FrameBorderThickness(),
@@ -414,7 +410,7 @@
return;
canvas->DrawStringInt(WideToUTF16Hack(d->GetWindowTitle()), *title_font_,
- SK_ColorWHITE, MirroredLeftPointForRect(title_bounds_),
+ SK_ColorWHITE, GetMirroredXForRect(title_bounds_),
title_bounds_.y(), title_bounds_.width(),
title_bounds_.height());
}
« no previous file with comments | « views/view_text_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698