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

Issue 5699004: [tabbed options] more work on content settings exceptions lists (Closed)

Created:
10 years ago by Evan Stade
Modified:
9 years, 6 months ago
CC:
chromium-reviews, ben+cc_chromium.org, arv (Not doing code reviews)
Visibility:
Public.

Description

[tabbed options] more work on content settings exceptions lists - tie "edit" mode to "selected" -- selecting enters into edit mode -- blurring exits edit mode and deselects - fix up layout within rows (faux columns) - add a special "add new exception" row (this should be at the bottom of the table, but it's currently at the top) - change behavior when the user attempts to commit an invalid exception. Instead of trying to regrab focus, just revert the row to its previous state. TODO: list should be sized dynamically, i.e. no scrollbar. TODO: list should be in sub-sub dialog TODO: rows should have delete X BUG=64153 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69332

Patch Set 1 #

Patch Set 2 : fix maybeSetPatternValid #

Total comments: 6

Patch Set 3 : subclass #

Total comments: 7

Patch Set 4 : this.items #

Total comments: 1

Patch Set 5 : fix and use list.items #

Patch Set 6 : . #

Total comments: 5

Patch Set 7 : manual filter #

Total comments: 2

Patch Set 8 : use array.filter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -131 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/options/content_settings_handler.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/content_settings.js View 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/resources/options/content_settings_exceptions_area.css View 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/resources/options/content_settings_exceptions_area.js View 1 2 3 4 5 6 7 13 chunks +198 lines, -118 lines 0 comments Download
M chrome/browser/resources/options/options_page.css View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/shared/js/cr/ui/list.js View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Evan Stade
10 years ago (2010-12-10 03:33:06 UTC) #1
stuartmorgan
http://codereview.chromium.org/5699004/diff/2001/chrome/browser/resources/options/content_settings.html File chrome/browser/resources/options/content_settings.html (right): http://codereview.chromium.org/5699004/diff/2001/chrome/browser/resources/options/content_settings.html#newcode33 chrome/browser/resources/options/content_settings.html:33: <list mode="normal" id="evan"></list> I'm guessing this isn't supposed to ...
10 years ago (2010-12-13 17:49:51 UTC) #2
arv (Not doing code reviews)
http://codereview.chromium.org/5699004/diff/2001/chrome/browser/resources/options/options_page.css File chrome/browser/resources/options/options_page.css (right): http://codereview.chromium.org/5699004/diff/2001/chrome/browser/resources/options/options_page.css#newcode326 chrome/browser/resources/options/options_page.css:326: display: none !important; On 2010/12/13 17:49:51, stuartmorgan wrote: > ...
10 years ago (2010-12-13 19:58:34 UTC) #3
Evan Stade
http://codereview.chromium.org/5699004/diff/2001/chrome/browser/resources/options/content_settings.html File chrome/browser/resources/options/content_settings.html (right): http://codereview.chromium.org/5699004/diff/2001/chrome/browser/resources/options/content_settings.html#newcode33 chrome/browser/resources/options/content_settings.html:33: <list mode="normal" id="evan"></list> On 2010/12/13 17:49:51, stuartmorgan wrote: > ...
10 years ago (2010-12-13 20:00:19 UTC) #4
Evan Stade
updated.
10 years ago (2010-12-14 21:56:57 UTC) #5
arv (Not doing code reviews)
http://codereview.chromium.org/5699004/diff/11002/chrome/browser/resources/options/content_settings_exceptions_area.css File chrome/browser/resources/options/content_settings_exceptions_area.css (right): http://codereview.chromium.org/5699004/diff/11002/chrome/browser/resources/options/content_settings_exceptions_area.css#newcode15 chrome/browser/resources/options/content_settings_exceptions_area.css:15: margin-right: 20px; -webkit-margin-end? http://codereview.chromium.org/5699004/diff/11002/chrome/browser/resources/options/content_settings_exceptions_area.js File chrome/browser/resources/options/content_settings_exceptions_area.js (right): http://codereview.chromium.org/5699004/diff/11002/chrome/browser/resources/options/content_settings_exceptions_area.js#newcode463 chrome/browser/resources/options/content_settings_exceptions_area.js:463: ...
10 years ago (2010-12-14 22:42:37 UTC) #6
Evan Stade
http://codereview.chromium.org/5699004/diff/11002/chrome/browser/resources/options/content_settings_exceptions_area.js File chrome/browser/resources/options/content_settings_exceptions_area.js (right): http://codereview.chromium.org/5699004/diff/11002/chrome/browser/resources/options/content_settings_exceptions_area.js#newcode463 chrome/browser/resources/options/content_settings_exceptions_area.js:463: for (var i = this.firstIndex_; i < this.lastIndex_; i++) ...
10 years ago (2010-12-14 23:16:02 UTC) #7
Evan Stade
http://codereview.chromium.org/5699004/diff/11002/chrome/browser/resources/options/content_settings_exceptions_area.js File chrome/browser/resources/options/content_settings_exceptions_area.js (right): http://codereview.chromium.org/5699004/diff/11002/chrome/browser/resources/options/content_settings_exceptions_area.js#newcode463 chrome/browser/resources/options/content_settings_exceptions_area.js:463: for (var i = this.firstIndex_; i < this.lastIndex_; i++) ...
10 years ago (2010-12-14 23:23:03 UTC) #8
arv (Not doing code reviews)
LGTM http://codereview.chromium.org/5699004/diff/11002/chrome/browser/resources/options/content_settings_exceptions_area.js File chrome/browser/resources/options/content_settings_exceptions_area.js (right): http://codereview.chromium.org/5699004/diff/11002/chrome/browser/resources/options/content_settings_exceptions_area.js#newcode463 chrome/browser/resources/options/content_settings_exceptions_area.js:463: for (var i = this.firstIndex_; i < this.lastIndex_; ...
10 years ago (2010-12-14 23:50:59 UTC) #9
Evan Stade
my old code actually didn't always work, because the list item doesn't exist if it's ...
10 years ago (2010-12-15 01:45:09 UTC) #10
Evan Stade
oh wait, it checked for null. OK, I can't remember why I changed it, but ...
10 years ago (2010-12-15 01:49:48 UTC) #11
arv (Not doing code reviews)
http://codereview.chromium.org/5699004/diff/28001/chrome/browser/resources/options/content_settings_exceptions_area.js File chrome/browser/resources/options/content_settings_exceptions_area.js (right): http://codereview.chromium.org/5699004/diff/28001/chrome/browser/resources/options/content_settings_exceptions_area.js#newcode409 chrome/browser/resources/options/content_settings_exceptions_area.js:409: // delay this a bit until we know if ...
10 years ago (2010-12-15 02:47:27 UTC) #12
Evan Stade
updated. Let me also take this opportunity to register my disappointment that there's apparently no ...
10 years ago (2010-12-15 04:12:38 UTC) #13
arv (Not doing code reviews)
http://codereview.chromium.org/5699004/diff/33001/chrome/browser/resources/shared/js/cr/ui/list.js File chrome/browser/resources/shared/js/cr/ui/list.js (right): http://codereview.chromium.org/5699004/diff/33001/chrome/browser/resources/shared/js/cr/ui/list.js#newcode235 chrome/browser/resources/shared/js/cr/ui/list.js:235: if (classList && !classList.contains('spacer')) classList should never be falsey ...
10 years ago (2010-12-15 04:15:28 UTC) #14
Evan Stade
k, thanks for the pointer to Array's filter. updated once again.
10 years ago (2010-12-15 04:45:43 UTC) #15
arv (Not doing code reviews)
LGTM
10 years ago (2010-12-15 06:11:27 UTC) #16
stuartmorgan
10 years ago (2010-12-15 17:27:15 UTC) #17
LGTM

Powered by Google App Engine
This is Rietveld 408576698