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

Issue 2794001: Notification balloons don't want the WS_EX_LAYOUTRTL style flag, since the di... (Closed)

Created:
10 years, 6 months ago by John Gregg
Modified:
9 years ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, davemoore+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Notification balloons don't want the WS_EX_LAYOUTRTL style flag, since the directionality of the content is specified already inside the HTML. BUG=46170 TEST=create a notification while using an RTL language for Chrome UI. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49723

Patch Set 1 #

Total comments: 5

Patch Set 2 : new naming, comment #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -12 lines) Patch
M chrome/browser/chromeos/text_input/candidate_window.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/views/extensions/extension_popup.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/views/notifications/balloon_view.cc View 1 2 chunks +7 lines, -3 lines 1 comment Download
M chrome/browser/views/status_bubble_views.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/views/theme_install_bubble_view.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M views/examples/widget_example.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M views/widget/widget.h View 1 1 chunk +11 lines, -1 line 2 comments Download
M views/widget/widget_gtk.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M views/widget/widget_win.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
John Gregg
Patch is adding a new flag to Widget::CreatePopupWidget to control whether the RTL window style ...
10 years, 6 months ago (2010-06-10 00:14:25 UTC) #1
jeremy
Idan, xji: Can you comment whether this is the right fix? http://codereview.chromium.org/2794001/diff/1/8 File views/widget/widget.h (right): ...
10 years, 6 months ago (2010-06-10 11:17:04 UTC) #2
John Gregg
I will certainly add a comment. The reason I called it "Allow" is because passing ...
10 years, 6 months ago (2010-06-10 16:23:18 UTC) #3
xji
I tried a notification. Besides the incorrectly mirrored HTML contents, the Options/Dismiss buttons do not ...
10 years, 6 months ago (2010-06-10 18:14:21 UTC) #4
John Gregg
What I saw is that the options/dismiss buttons are in the correct place, but the ...
10 years, 6 months ago (2010-06-10 18:23:18 UTC) #5
John Gregg
New patch poster. I changed the naming for the enums to be enum MirroringParam { ...
10 years, 6 months ago (2010-06-10 19:04:22 UTC) #6
xji
lgtm for html content part, after address the comments.
10 years, 6 months ago (2010-06-10 19:04:37 UTC) #7
xji
lgtm. But beng might be a better person to consult. http://codereview.chromium.org/2794001/diff/15001/16003 File chrome/browser/views/notifications/balloon_view.cc (right): http://codereview.chromium.org/2794001/diff/15001/16003#newcode301 ...
10 years, 6 months ago (2010-06-10 19:14:19 UTC) #8
jeremy
I'd really like to hear Idan's opinion on this patch. I agree with xji's comments ...
10 years, 6 months ago (2010-06-10 20:58:58 UTC) #9
John Gregg
On 2010/06/10 20:58:58, jeremy wrote: > I'd really like to hear Idan's opinion on this ...
10 years, 6 months ago (2010-06-10 21:09:54 UTC) #10
John Gregg
> After the patch, the notifications look like this: > english chrome: http://www/%7Ejohnnyg/wrench_notifications_win.png > arabic ...
10 years, 6 months ago (2010-06-10 21:11:08 UTC) #11
jeremy
Screenshots LGTM, thanks. On Fri, Jun 11, 2010 at 12:11 AM, <johnnyg@chromium.org> wrote: > After ...
10 years, 6 months ago (2010-06-10 21:20:34 UTC) #12
John Gregg
So are we good on the code, or still want to hear from Idan/Ben? On ...
10 years, 6 months ago (2010-06-11 21:13:03 UTC) #13
jeremy
I'm ok landing this now, we can revisit if Idan has an issue. Can you ...
10 years, 6 months ago (2010-06-11 22:24:38 UTC) #14
idana
10 years, 6 months ago (2010-06-16 13:46:16 UTC) #15
John,

Nice working with you again ;-)

Apologies for not reviewing this earlier. The patch looks good overall. The only
thing I am worried about is the position of the notification window when the OS
UI is RTL. In the Hebrew/Arabic version of Windows (at least Windows XP IIRC),
the start menu is on the bottom right and therefore the notification window's
position should be mirrored too. I am not sure whether or not the code currently
handles this correctly.

http://codereview.chromium.org/2794001/diff/15001/16007
File views/widget/widget.h (right):

http://codereview.chromium.org/2794001/diff/15001/16007#newcode80
views/widget/widget.h:80: MirroringParam mirror_in_rtl);
Since almost all the call sites use MirrorOriginInRTL (the default behavior), it
makes more sense to overload CreatePopupWidget such that only BalloonView uses
the version which takes the mirroring config.

Powered by Google App Engine
This is Rietveld 408576698