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

Unified Diff: chrome/browser/ui/views/frame/opaque_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/opaque_browser_frame_view.cc
===================================================================
--- chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (revision 74080)
+++ chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (working copy)
@@ -291,7 +291,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;
@@ -300,19 +300,16 @@
// 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;
if (restore_button_->IsVisible() &&
- restore_button_->GetBounds(APPLY_MIRRORING_TRANSFORMATION).Contains(
- point))
+ restore_button_->GetMirroredBounds().Contains(point))
return HTMAXBUTTON;
if (maximize_button_->IsVisible() &&
- maximize_button_->GetBounds(APPLY_MIRRORING_TRANSFORMATION).Contains(
- point))
+ maximize_button_->GetMirroredBounds().Contains(point))
return HTMAXBUTTON;
if (minimize_button_->IsVisible() &&
- minimize_button_->GetBounds(APPLY_MIRRORING_TRANSFORMATION).Contains(
- point))
+ minimize_button_->GetMirroredBounds().Contains(point))
return HTMINBUTTON;
views::WindowDelegate* delegate = frame_->GetWindow()->GetDelegate();
@@ -714,7 +711,7 @@
if (delegate->ShouldShowWindowTitle()) {
canvas->DrawStringInt(WideToUTF16Hack(delegate->GetWindowTitle()),
BrowserFrame::GetTitleFont(),
- SK_ColorWHITE, MirroredLeftPointForRect(title_bounds_),
+ SK_ColorWHITE, GetMirroredXForRect(title_bounds_),
title_bounds_.y(), title_bounds_.width(), title_bounds_.height());
/* TODO(pkasting): If this window is active, we should also draw a drop
* shadow on the title. This is tricky, because we don't want to hardcode a
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view_layout.cc ('k') | chrome/browser/ui/views/location_bar/keyword_hint_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698