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

Issue 2878079: Fix behaviors of Add and Remove buttons. (Closed)

Created:
10 years, 4 months ago by satorux1
Modified:
9 years, 7 months ago
CC:
chromium-reviews, dhg, ben+cc_chromium.org
Visibility:
Public.

Description

Fix behaviors of Add and Remove buttons. When a languge is added, select the newly added language. When a language is removed, keep the same position if possible. Along the way, remove unnecesary code from removeSelectedLanguage(). TEST=manually BUG=chromium-os:4573 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55027

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -8 lines) Patch
M chrome/browser/resources/options/chromeos_language_list.js View 3 chunks +17 lines, -8 lines 2 comments Download

Messages

Total messages: 9 (0 generated)
satorux1
10 years, 4 months ago (2010-08-04 09:54:46 UTC) #1
mazda
lgtm
10 years, 4 months ago (2010-08-04 10:32:05 UTC) #2
arv (Not doing code reviews)
FYI http://codereview.chromium.org/2878079/diff/1/2 File chrome/browser/resources/options/chromeos_language_list.js (right): http://codereview.chromium.org/2878079/diff/1/2#newcode67 chrome/browser/resources/options/chromeos_language_list.js:67: this.selectionModel.selectedIndex = this.dataModel.length - 1; You might want ...
10 years, 4 months ago (2010-08-04 17:19:54 UTC) #3
satorux1
http://codereview.chromium.org/2878079/diff/1/2 File chrome/browser/resources/options/chromeos_language_list.js (right): http://codereview.chromium.org/2878079/diff/1/2#newcode67 chrome/browser/resources/options/chromeos_language_list.js:67: this.selectionModel.selectedIndex = this.dataModel.length - 1; On 2010/08/04 17:19:54, arv ...
10 years, 4 months ago (2010-08-05 04:12:50 UTC) #4
arv1
http://codereview.chromium.org/2884064/show On Aug 4, 2010 9:12:50 PM PDT, satorux <satorux@chromium.org> wrote: >> http://codereview.chromium.org/2878079/diff/1/2 >> File ...
10 years, 4 months ago (2010-08-05 17:01:48 UTC) #5
satorux1
On 2010/08/05 17:01:48, arv1 wrote: > http://codereview.chromium.org/2884064/show Awesome! Please check it in so I can ...
10 years, 4 months ago (2010-08-06 00:39:35 UTC) #6
arv (Not doing code reviews)
Checked in but it needs a WebKit roll. erik On Thu, Aug 5, 2010 at ...
10 years, 4 months ago (2010-08-06 00:52:39 UTC) #7
satorux1
On Fri, Aug 6, 2010 at 9:52 AM, Erik Arvidsson <arv@chromium.org> wrote: > Checked in ...
10 years, 4 months ago (2010-08-06 01:00:19 UTC) #8
arv (Not doing code reviews)
10 years, 4 months ago (2010-08-06 05:48:13 UTC) #9
Sorry, I had another code review that was depending on a webkit change
and I got confused.

The chromium CL is not yet submitted. I'll submit it tomorrow morning.

erik



On Thu, Aug 5, 2010 at 17:59, Satoru Takabayashi <satorux@chromium.org> wrote:
>
>
> On Fri, Aug 6, 2010 at 9:52 AM, Erik Arvidsson <arv@chromium.org> wrote:
>>
>> Checked in but it needs a WebKit roll.
>
> Thanks. Which WebKit change? I'm looking forward to it.
> Satoru
>
>>
>> erik
>>
>>
>>
>> On Thu, Aug 5, 2010 at 17:39,  <satorux@chromium.org> wrote:
>> > On 2010/08/05 17:01:48, arv1 wrote:
>> >>
>> >> http://codereview.chromium.org/2884064/show
>> >
>> > Awesome! Please check it in so I can use it. :)
>> >
>> >
>> >
>> >> On Aug 4, 2010 9:12:50 PM PDT, satorux <mailto:satorux@chromium.org>
>> >> wrote:
>> >> >> http://codereview.chromium.org/2878079/diff/1/2
>> >> >> File chrome/browser/resources/options/chromeos_language_list.js
>> >> >> (right):
>> >> >> http://codereview.chromium.org/2878079/diff/1/2#newcode67
>> >> >> chrome/browser/resources/options/chromeos_language_list.js:67:
>> >> >> this.selectionModel.selectedIndex = this.dataModel.length - 1;
>> >> >> On 2010/08/04 17:19:54, arv wrote:
>> >> >> You might want to set leadIndex and anchorIndex as well or keyboard
>> >> >> navigation
>> >> >> will act as the user expects.
>> >
>> >> > Thank you for pointing this out. We'll be supposedly switching to a
>> >> > single selection model in the options page, so I would not add code
>> >> > for
>> >> > leadIndex and anchorIndex here for now.
>> >
>> >
>> >
>> >
>> > http://codereview.chromium.org/2878079/show
>> >
>
>

Powered by Google App Engine
This is Rietveld 408576698