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

Issue 6151004: DOMUI Prefs: Replace search engine edit overlay with inline editing. (Closed)

Created:
9 years, 11 months ago by stuartmorgan
Modified:
9 years, 7 months ago
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

DOMUI Prefs: Replace search engine edit overlay with inline editing. Validation feedback still needs polish, but this is completely functional, so I'll leave that for a follow-up. This introduces a new shared class for editable lists; we should migrate the existing editable lists to it, expanding as necessary, but I didn't want to make this patch too unwieldly. BUG=63825, 61742 TEST=Search engines should be editable and addable inline in DOMUI prefs. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71121

Patch Set 1 #

Patch Set 2 : Whitespace fix #

Total comments: 27

Patch Set 3 : Address review comments #

Total comments: 8

Patch Set 4 : Address last comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+594 lines, -332 lines) Patch
M chrome/app/generated_resources.grd View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/options/search_engine_manager_handler.cc View 1 2 5 chunks +14 lines, -32 lines 0 comments Download
D chrome/browser/resources/options/edit_search_engine_overlay.css View 1 chunk +0 lines, -36 lines 0 comments Download
D chrome/browser/resources/options/edit_search_engine_overlay.html View 1 chunk +0 lines, -40 lines 0 comments Download
D chrome/browser/resources/options/edit_search_engine_overlay.js View 1 chunk +0 lines, -158 lines 0 comments Download
A chrome/browser/resources/options/inline_editable_list.js View 1 2 1 chunk +210 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options.html View 1 2 4 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/resources/options/options.js View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/resources/options/options_page.css View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/search_engine_manager.css View 2 chunks +55 lines, -7 lines 0 comments Download
M chrome/browser/resources/options/search_engine_manager.html View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/resources/options/search_engine_manager.js View 1 2 3 4 chunks +20 lines, -28 lines 0 comments Download
M chrome/browser/resources/options/search_engine_manager_engine_list.js View 1 2 3 chunks +279 lines, -21 lines 0 comments Download
M chrome/browser/resources/shared/js/cr/ui/list_single_selection_model.js View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
stuartmorgan
9 years, 11 months ago (2011-01-08 00:46:05 UTC) #1
Evan Stade
lgtm http://codereview.chromium.org/6151004/diff/2001/chrome/browser/resources/options/inline_editable_list.js File chrome/browser/resources/options/inline_editable_list.js (right): http://codereview.chromium.org/6151004/diff/2001/chrome/browser/resources/options/inline_editable_list.js#newcode78 chrome/browser/resources/options/inline_editable_list.js:78: remove extra line http://codereview.chromium.org/6151004/diff/2001/chrome/browser/resources/options/inline_editable_list.js#newcode96 chrome/browser/resources/options/inline_editable_list.js:96: this.currentInputIsValid()) curlies for ...
9 years, 11 months ago (2011-01-11 21:06:01 UTC) #2
arv (Not doing code reviews)
http://codereview.chromium.org/6151004/diff/2001/chrome/browser/resources/options/inline_editable_list.js File chrome/browser/resources/options/inline_editable_list.js (right): http://codereview.chromium.org/6151004/diff/2001/chrome/browser/resources/options/inline_editable_list.js#newcode54 chrome/browser/resources/options/inline_editable_list.js:54: this.addEventListener('selectedChange', function(event) { You should be able to override ...
9 years, 11 months ago (2011-01-11 21:52:44 UTC) #3
stuartmorgan
http://codereview.chromium.org/6151004/diff/2001/chrome/browser/resources/options/inline_editable_list.js File chrome/browser/resources/options/inline_editable_list.js (right): http://codereview.chromium.org/6151004/diff/2001/chrome/browser/resources/options/inline_editable_list.js#newcode54 chrome/browser/resources/options/inline_editable_list.js:54: this.addEventListener('selectedChange', function(event) { On 2011/01/11 21:52:45, arv wrote: > ...
9 years, 11 months ago (2011-01-11 23:18:41 UTC) #4
arv (Not doing code reviews)
LGTM http://codereview.chromium.org/6151004/diff/2001/chrome/browser/resources/shared/js/cr/ui/list_single_selection_model.js File chrome/browser/resources/shared/js/cr/ui/list_single_selection_model.js (left): http://codereview.chromium.org/6151004/diff/2001/chrome/browser/resources/shared/js/cr/ui/list_single_selection_model.js#oldcode143 chrome/browser/resources/shared/js/cr/ui/list_single_selection_model.js:143: indexes.sort(); On 2011/01/11 23:18:41, stuartmorgan wrote: > On ...
9 years, 11 months ago (2011-01-11 23:29:28 UTC) #5
stuartmorgan
http://codereview.chromium.org/6151004/diff/11001/chrome/browser/resources/options/inline_editable_list.js File chrome/browser/resources/options/inline_editable_list.js (right): http://codereview.chromium.org/6151004/diff/11001/chrome/browser/resources/options/inline_editable_list.js#newcode6 chrome/browser/resources/options/inline_editable_list.js:6: const DeletableItem = options.DeletableItem; On 2011/01/11 23:29:29, arv wrote: ...
9 years, 11 months ago (2011-01-12 00:26:51 UTC) #6
arv (Not doing code reviews)
9 years, 11 months ago (2011-01-12 00:38:57 UTC) #7
LGTM

erik



On Tue, Jan 11, 2011 at 16:26,  <stuartmorgan@chromium.org> wrote:
>
>
http://codereview.chromium.org/6151004/diff/11001/chrome/browser/resources/op...
> File chrome/browser/resources/options/inline_editable_list.js (right):
>
>
http://codereview.chromium.org/6151004/diff/11001/chrome/browser/resources/op...
> chrome/browser/resources/options/inline_editable_list.js:6: const
> DeletableItem = options.DeletableItem;
> On 2011/01/11 23:29:29, arv wrote:
>>
>> It would be good if we could move these to cr.ui in a follow up CL.
>
> Sure; added to my TODO list.
>
>
http://codereview.chromium.org/6151004/diff/11001/chrome/browser/resources/op...
> File chrome/browser/resources/options/search_engine_manager.js (right):
>
>
http://codereview.chromium.org/6151004/diff/11001/chrome/browser/resources/op...
> chrome/browser/resources/options/search_engine_manager.js:40: // This is
> a temporary hack to allow the "Make Default" button to
> On 2011/01/11 23:29:29, arv wrote:
>>
>> Why are we removing the selection again?
>
> In the DOMUI pref list model, selection == edit. The options for
> inline-editable lists are:
> 1) Leave the row in edit mode when the list is no longer focused; this
> feels really weird
> 2) Make edit require both selection and list focus.
> 3) Remove selection when unfocusing a list.
>
> Evan implemented 3 in exceptions, and I was being consistent with that.
> Once we everything is implemented with the new base class it will be
> easy enough to switch to 2 if we decide that's better.
>
> (As we've added more of the new mock behaviors to the lists more
> interaction edge cases are showing up that weren't obvious for the
> mocks, so my plan is to move forward getting all the capabilities
> implemented and then we can test everything together and discuss with
> the UX folks as necessary.)
>
>
http://codereview.chromium.org/6151004/diff/11001/chrome/browser/resources/op...
> chrome/browser/resources/options/search_engine_manager.js:63:
> placeholder['modelIndex'] = '-1';
> On 2011/01/11 23:29:29, arv wrote:
>>
>> Should this be a number instead of a string?
>
> modelIndex only really used as a chrome.send argument, so leaving it as
> a string simplifies everything.
>
>
http://codereview.chromium.org/6151004/diff/11001/chrome/browser/resources/op...
> chrome/browser/resources/options/search_engine_manager.js:63:
> placeholder['modelIndex'] = '-1';
> On 2011/01/11 23:29:29, arv wrote:
>>
>> var placeHolder = {
>>   'modelIndex': -1
>> };
>
>> or just
>
>> model.push({
>>   'modelIndex': -1
>> });
>
> Done.
>
> http://codereview.chromium.org/6151004/
>

Powered by Google App Engine
This is Rietveld 408576698