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

Issue 3771003: First round UI touch up of DOMUI based network menu. (Closed)

Created:
10 years, 2 months ago by xiyuan
Modified:
9 years, 7 months ago
Reviewers:
stevenjb, oshima
CC:
chromium-reviews, arv (Not doing code reviews), davemoore+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

First round UI touch up of DOMUI based network menu. - Update network UI to make it closer to mocks; - Update menu.css to use default cursor; - Allow derived menu UI pass localized strings; BUG=chromium-os:7343 TEST=none. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=62674

Patch Set 1 #

Total comments: 4

Patch Set 2 : for oshima #

Patch Set 3 : sync and try #

Unified diffs Side-by-side diffs Delta from patch set Stats (+322 lines, -44 lines) Patch
M chrome/app/generated_resources.grd View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/dom_ui/menu_ui.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/dom_ui/menu_ui.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/dom_ui/network_menu_ui.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/dom_ui/network_menu_ui.cc View 1 4 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/resources/menu.css View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/menu.html View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/menu.js View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/resources/network_menu.css View 1 1 chunk +25 lines, -0 lines 0 comments Download
chrome/browser/resources/network_menu.js View 1 4 chunks +253 lines, -41 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
xiyuan
Oshima, could you look at the menu base code changes? Steven could do the rest. ...
10 years, 2 months ago (2010-10-14 01:03:33 UTC) #1
oshima
lgtm on c++ part http://codereview.chromium.org/3771003/diff/1/5 File chrome/browser/chromeos/dom_ui/menu_ui.h (right): http://codereview.chromium.org/3771003/diff/1/5#newcode43 chrome/browser/chromeos/dom_ui/menu_ui.h:43: virtual void GetLocalizedValues(DictionaryValue* localized_strings) const ...
10 years, 2 months ago (2010-10-14 01:40:23 UTC) #2
stevenjb
On 2010/10/14 01:03:33, xiyuan wrote: > Oshima, could you look at the menu base code ...
10 years, 2 months ago (2010-10-14 20:45:04 UTC) #3
xiyuan
10 years, 2 months ago (2010-10-14 21:38:59 UTC) #4
Synced and running try jobs now.

http://codereview.chromium.org/3771003/diff/1/5
File chrome/browser/chromeos/dom_ui/menu_ui.h (right):

http://codereview.chromium.org/3771003/diff/1/5#newcode43
chrome/browser/chromeos/dom_ui/menu_ui.h:43: virtual void
GetLocalizedValues(DictionaryValue* localized_strings) const {};
On 2010/10/14 01:40:24, oshima wrote:
> AddCustomConfigValues also handles localized string.
> This seems to be a way to generate localized string in JS from template, so
can
> you come up with better name, and
> add comment.

Renamed to AddLocalizedStrings and update comment to mention this is for js
template builder and use with JS class LocalStrings.

http://codereview.chromium.org/3771003/diff/1/6
File chrome/browser/chromeos/dom_ui/network_menu_ui.cc (right):

http://codereview.chromium.org/3771003/diff/1/6#newcode98
chrome/browser/chromeos/dom_ui/network_menu_ui.cc:98:
IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_PASSWORD));
On 2010/10/14 01:40:24, oshima wrote:
> I personally like to use the same name for both languages,
> that is "IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_PASSWORD", instead of
> pass_prompt. It's very clear that it came from grd even in JS and also I can
use
> code search to find where particular resource is used. Just a comment and no
> need to change now, but I think we should discuss as this will be more
important
> as we move UI to domui.

This is a good question and I am not sure what is the right thing to do here.
From what I know, there seems to be no code style guidance on this. The short
arbitrary names are used for all other DOMUI files. It would be good that we
could come up with some agreement and fix the style. I think your suggestion is
good to avoid collisions although the IDSxxx names are a bit long.

For now, I'll just leave it like this.

Powered by Google App Engine
This is Rietveld 408576698