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

Issue 53120: Review Request: fix issue 5724, 5738 -- wrong position of system menu (Closed)

Created:
11 years, 9 months ago by xji
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

This CL fix issue 5724 - RTL: Windows context menu with Alt+Space Bar should be displayed on right side of the window. (http://crbug.com/5724) and issue 5738 - RTL: App drop-down menu should be displayed below the favicon (http://crbug.com/5738) In RTL UI, the x-axis of the system menu was computed as the MirroredXCoordinateInsideView(x-axis in LTR UI); Also, the menu was right-aligned relative to the x-axis. It fixes the system menu position in the following 3 situations: 1. press alt+space (such as in application short-cut, in chrome browser, in pop-up dialog such as option/clear browsing data), the system menu appears on the right side of the window (instead of left side, without the fix). 2. click favicon of application shortcut, the system menu appears on the right side of the window (instead of left side, without the fix). 3. right click on chrome browser tab, system menu appears at left side of the click (instead of right side of the click). Please be noted that: System menu itself is not yet mirrored. This CL only fixes its display position. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12631

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -5 lines) Patch
M chrome/browser/views/frame/opaque_browser_frame_view.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/views/window/custom_frame_view.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/views/window/window_win.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
xji
11 years, 9 months ago (2009-03-26 22:24:32 UTC) #1
Peter Kasting
Drive-by nits (LGTM otherwise) http://codereview.chromium.org/53120/diff/1001/12 File chrome/browser/views/frame/opaque_browser_frame_view.cc (right): http://codereview.chromium.org/53120/diff/1001/12#newcode463 Line 463: int x = MirroredXCoordinateInsideView(FrameBorderThickness()); ...
11 years, 9 months ago (2009-03-26 22:28:49 UTC) #2
xji
11 years, 9 months ago (2009-03-26 23:52:10 UTC) #3
Thanks for the quick review.
All done per suggestion.

On 2009/03/26 22:28:49, pkasting wrote:
> Drive-by nits (LGTM otherwise)
> 
> http://codereview.chromium.org/53120/diff/1001/12
> File chrome/browser/views/frame/opaque_browser_frame_view.cc (right):
> 
> http://codereview.chromium.org/53120/diff/1001/12#newcode463
> Line 463: int x = MirroredXCoordinateInsideView(FrameBorderThickness());
> Nit: Don't bother with a temp for this, just do it inline.
> 
> http://codereview.chromium.org/53120/diff/1001/13
> File chrome/views/window/custom_frame_view.cc (right):
> 
> http://codereview.chromium.org/53120/diff/1001/13#newcode285
> Line 285: int x = MirroredXCoordinateInsideView(FrameBorderThickness());
> Nit: Don't bother with a temp for this, just do it inline.
> 
> http://codereview.chromium.org/53120/diff/1001/14
> File chrome/views/window/window_win.cc (right):
> 
> http://codereview.chromium.org/53120/diff/1001/14#newcode418
> Line 418: UINT flag = TPM_LEFTBUTTON | TPM_RIGHTBUTTON | TPM_RETURNCMD;
> Nit: flags
> 
> http://codereview.chromium.org/53120/diff/1001/14#newcode419
> Line 419: if (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT) {
> Nit: no {}.

Powered by Google App Engine
This is Rietveld 408576698