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

Issue 345050: Mac: fix Text Encoding menu/submenu (Closed)

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

Description

Mac: fix Text Encoding menu/submenu (1) Clicking on the Text Encoding menu item should display the submenu, not try to execute a nonexistent command. (2) The Text Encoding menu item shouldn't be disabled, but instead the submenu's contents (so that the submenu is always visible). See Apple's HIG: <http://developer.apple.com/mac/library/DOCUMENTATION/UserExperience/Conceptual/AppleHIGuidelines/XHIGMenus/XHIGMenus.html#//apple_ref/doc/uid/TP30000356-TPXREF122>;. Changes to MainMenu.xib: disconnected |-commandDispatch:| from the Text Encoding menu item. BUG=25957, 26593 TEST=Check that the Text Encoding submenu is always available, with its contents disabled on the NTP (for example) and enabled (and working) on a normal web page. Check that clicking (and releasing) on the Text Encoding menu item itself shows the submenu. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30836

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+674 lines, -118 lines) Patch
M chrome/app/nibs/MainMenu.xib View 30 chunks +665 lines, -118 lines 0 comments Download
M chrome/browser/cocoa/browser_window_controller.mm View 1 chunk +9 lines, -0 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
viettrungluu
11 years, 1 month ago (2009-11-03 18:23:29 UTC) #1
pink (ping after 24hrs)
LGTM
11 years, 1 month ago (2009-11-03 18:25:03 UTC) #2
TVL
http://codereview.chromium.org/345050/diff/1/3 File chrome/browser/cocoa/browser_window_controller.mm (right): http://codereview.chromium.org/345050/diff/1/3#newcode586 Line 586: EncodingMenuController encoding_controller; how expensive is constructing one of ...
11 years, 1 month ago (2009-11-03 18:26:27 UTC) #3
pink (ping after 24hrs)
From looking, it's pretty darn cheap. it's mostly just a static table, the ctor itself ...
11 years, 1 month ago (2009-11-03 18:28:58 UTC) #4
viettrungluu
Really cheap (see what pink said), so I'll take it as being good to go. ...
11 years, 1 month ago (2009-11-03 18:52:10 UTC) #5
TVL
11 years, 1 month ago (2009-11-03 18:53:06 UTC) #6
lg

Powered by Google App Engine
This is Rietveld 408576698