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

Issue 3041025: Implement "Add" and "Remove" buttons in Language and Input page. (Closed)

Created:
10 years, 5 months ago by satorux1
Modified:
9 years, 7 months ago
CC:
chromium-reviews, dhg, arv (Not doing code reviews), davemoore+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Implement "Add" and "Remove" buttons in Language and Input page. Along the way, remove translation for language codes in |localStrings| (ex "fr" -> "French"). Instead introduce templateData.languageList, with which we can retrieve language information. TEST=manually BUG=4573 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54869

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : resolve conflicts and do more stuff #

Total comments: 18

Patch Set 4 : address comments and added the overlay html #

Patch Set 5 : Center the cancel button #

Total comments: 4

Patch Set 6 : link-button #

Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -28 lines) Patch
M chrome/browser/chromeos/dom_ui/language_options_handler.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/dom_ui/language_options_handler.cc View 1 2 2 chunks +16 lines, -8 lines 0 comments Download
M chrome/browser/resources/options.html View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/chromeos_language_add_language_overlay.html View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/chromeos_language_add_language_overlay.js View 1 2 3 4 5 1 chunk +65 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/chromeos_language_list.js View 1 2 3 4 chunks +72 lines, -2 lines 0 comments Download
M chrome/browser/resources/options/chromeos_language_options.css View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/chromeos_language_options.js View 1 2 3 7 chunks +101 lines, -18 lines 0 comments Download
M chrome/browser/resources/options/options_page.css View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
satorux1
Erik, I've just uploaded a new patch. gclient sync resulted in lots of conflicts, due ...
10 years, 4 months ago (2010-08-02 10:30:14 UTC) #1
arv (Not doing code reviews)
http://codereview.chromium.org/3041025/diff/4001/5004 File chrome/browser/resources/options/chromeos_language_add_language_overlay.js (right): http://codereview.chromium.org/3041025/diff/4001/5004#newcode48 chrome/browser/resources/options/chromeos_language_add_language_overlay.js:48: a.href = '#'; // Add href to make it ...
10 years, 4 months ago (2010-08-02 16:46:06 UTC) #2
satorux1
Erik, Thank you the feedback. I've addressed your comments. Please take another look. http://codereview.chromium.org/3041025/diff/4001/5004 File ...
10 years, 4 months ago (2010-08-03 09:18:31 UTC) #3
arv (Not doing code reviews)
LGTM http://codereview.chromium.org/3041025/diff/15001/16007 File chrome/browser/resources/options/chromeos_language_options.css (right): http://codereview.chromium.org/3041025/diff/15001/16007#newcode74 chrome/browser/resources/options/chromeos_language_options.css:74: cursor: pointer; Do you also want color: blue? ...
10 years, 4 months ago (2010-08-03 17:11:45 UTC) #4
satorux1
http://codereview.chromium.org/3041025/diff/15001/16007 File chrome/browser/resources/options/chromeos_language_options.css (right): http://codereview.chromium.org/3041025/diff/15001/16007#newcode74 chrome/browser/resources/options/chromeos_language_options.css:74: cursor: pointer; On 2010/08/03 17:11:45, arv wrote: > Do ...
10 years, 4 months ago (2010-08-03 22:48:29 UTC) #5
arv (Not doing code reviews)
http://codereview.chromium.org/3041025/diff/15001/16007 File chrome/browser/resources/options/chromeos_language_options.css (right): http://codereview.chromium.org/3041025/diff/15001/16007#newcode74 chrome/browser/resources/options/chromeos_language_options.css:74: cursor: pointer; On 2010/08/03 22:48:29, satorux1 wrote: > On ...
10 years, 4 months ago (2010-08-03 22:57:11 UTC) #6
satorux1
10 years, 4 months ago (2010-08-03 23:04:36 UTC) #7
http://codereview.chromium.org/3041025/diff/15001/16007
File chrome/browser/resources/options/chromeos_language_options.css (right):

http://codereview.chromium.org/3041025/diff/15001/16007#newcode74
chrome/browser/resources/options/chromeos_language_options.css:74: cursor:
pointer;
On 2010/08/03 22:57:11, arv wrote:
> On 2010/08/03 22:48:29, satorux1 wrote:
> > On 2010/08/03 17:11:45, arv wrote:
> > > Do you also want color: blue?
> > 
> > Good point. I'll add it.
> > 
> > 
> > 
> > > I would actually prefer that we add a link-button class that can be reused
> by
> > > people.
> > > 
> > > .link-button {
> > 
> > I assume you meant #link-button
> 
> I meant .link-button. # is for id and ids are supposed to be unique in the
> document. Using . allows all elements with the class "link-button" to look
like
> link buttons.

My bad. I'm easily confused about # and .


> 
> > 
> > 
> > >   background-color: transparent;
> > >   border: none;
> > >   color: blue;
> > >   cursor: pointer;
> > >   text-decoration: underline;
> > > }
> > 
> > Good idea. Where would be the right place for sharing CSS? Maybe
> > options_page.css?
> 
> options_page.css seems to contain top level css already so that seems good
> enough.

Sounds good. I'll move it to options_page.css

Powered by Google App Engine
This is Rietveld 408576698