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

Issue 2804039: First cut at the tabbed content settings page. (Closed)

Created:
10 years, 5 months ago by Evan Stade
Modified:
9 years, 6 months ago
CC:
chromium-reviews, arv (Not doing code reviews), ben+cc_chromium.org, csilv
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

First cut at the tabbed content settings page. Missing pieces: - Add the other tabs besides the first two. - The tab switching mechanism might need some work (it definitely needs to look better, and perhaps should also work with the back/forward buttons). - none of the <button>s work - I added the Content Settings page as one of the main options pages for now, but in the end it should show up when a user clicks the "Content Settings..." button in Under the Hood. There is a bit of extra code because content settings don't use prefs, so I had to sort of replicate the pref_ui code. BUG=none TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52139

Patch Set 1 #

Total comments: 50

Patch Set 2 : arv comments #

Total comments: 1

Patch Set 3 : more CSSy #

Patch Set 4 : undo whitespace change #

Total comments: 18

Patch Set 5 : more improvements from arv #

Patch Set 6 : remove id from radios #

Total comments: 5

Patch Set 7 : more arv comments #

Patch Set 8 : no change #

Patch Set 9 : . #

Patch Set 10 : no change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+457 lines, -3 lines) Patch
A chrome/browser/dom_ui/content_settings_handler.h View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/dom_ui/content_settings_handler.cc View 1 2 3 4 1 chunk +182 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/dom_ui.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/options_ui.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/options.html View 1 2 3 4 5 6 7 8 5 chunks +7 lines, -1 line 0 comments Download
A chrome/browser/resources/options/content_settings.html View 1 2 3 4 5 1 chunk +96 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/content_settings.js View 1 2 3 4 1 chunk +96 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/content_settings_page.css View 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/content_settings_ui.js View 1 2 3 4 5 6 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Evan Stade
10 years, 5 months ago (2010-07-06 02:21:06 UTC) #1
arv (Not doing code reviews)
http://codereview.chromium.org/2804039/diff/1/2 File chrome/browser/dom_ui/content_settings_handler.cc (right): http://codereview.chromium.org/2804039/diff/1/2#newcode60 chrome/browser/dom_ui/content_settings_handler.cc:60: return std::string(); You used return ""; on line 35. ...
10 years, 5 months ago (2010-07-07 17:02:44 UTC) #2
Evan Stade
Thanks for your patience. I've fixed the patch according to your comments to the best ...
10 years, 5 months ago (2010-07-07 19:35:52 UTC) #3
Evan Stade
Stuart's been helping me with the css. I'll work on it some more and get ...
10 years, 5 months ago (2010-07-08 01:27:16 UTC) #4
zel
FYI, David has css changed at http://codereview.chromium.org/2881013/show that put us visually much closer to the ...
10 years, 5 months ago (2010-07-08 01:32:13 UTC) #5
dhg
http://codereview.chromium.org/2804039/diff/9001/10005 File chrome/browser/resources/options.html (right): http://codereview.chromium.org/2804039/diff/9001/10005#newcode56 chrome/browser/resources/options.html:56: // OptionsPage.register(SystemOptions.getInstance()); Why is this commented out?
10 years, 5 months ago (2010-07-08 16:51:02 UTC) #6
arv (Not doing code reviews)
On Wed, Jul 7, 2010 at 12:35, <estade@chromium.org> wrote: > Thanks for your patience. I've ...
10 years, 5 months ago (2010-07-08 17:17:55 UTC) #7
arv (Not doing code reviews)
http://codereview.chromium.org/2804039/diff/1/2 File chrome/browser/dom_ui/content_settings_handler.cc (right): http://codereview.chromium.org/2804039/diff/1/2#newcode161 chrome/browser/dom_ui/content_settings_handler.cc:161: SplitString(checked, '-', &name_components); Can we pass an array or ...
10 years, 5 months ago (2010-07-08 17:23:34 UTC) #8
Evan Stade
http://codereview.chromium.org/2804039/diff/1/2 File chrome/browser/dom_ui/content_settings_handler.cc (right): http://codereview.chromium.org/2804039/diff/1/2#newcode137 chrome/browser/dom_ui/content_settings_handler.cc:137: // We send a list of the <input> IDs ...
10 years, 5 months ago (2010-07-08 23:01:29 UTC) #9
arv (Not doing code reviews)
A few more small things. http://codereview.chromium.org/2804039/diff/23001/24001 File chrome/browser/dom_ui/content_settings_handler.cc (right): http://codereview.chromium.org/2804039/diff/23001/24001#newcode78 chrome/browser/dom_ui/content_settings_handler.cc:78: ContentSettingsHandler::ContentSettingsHandler() { Should empty ...
10 years, 5 months ago (2010-07-09 00:19:54 UTC) #10
Evan Stade
http://codereview.chromium.org/2804039/diff/23001/24001 File chrome/browser/dom_ui/content_settings_handler.cc (right): http://codereview.chromium.org/2804039/diff/23001/24001#newcode78 chrome/browser/dom_ui/content_settings_handler.cc:78: ContentSettingsHandler::ContentSettingsHandler() { On 2010/07/09 00:19:54, arv wrote: > Should ...
10 years, 5 months ago (2010-07-09 01:31:41 UTC) #11
arv (Not doing code reviews)
LGTM with the last few issues resolved. Thanks for your patience. http://codereview.chromium.org/2804039/diff/19003/35005 File chrome/browser/resources/options.html (right): ...
10 years, 5 months ago (2010-07-09 02:20:38 UTC) #12
Evan Stade
10 years, 5 months ago (2010-07-09 19:08:57 UTC) #13
thanks for your patience and guidance!

http://codereview.chromium.org/2804039/diff/19003/35005
File chrome/browser/resources/options.html (right):

http://codereview.chromium.org/2804039/diff/19003/35005#newcode91
chrome/browser/resources/options.html:91:
cr.ui.decorate('input[value][type=radio]', ContentSettingsRadio);
On 2010/07/09 02:20:40, arv wrote:
> This might need a bit more specific CSS selector. How about
> 
> #contentSettingsPage input[type=radio]
> 
> This will match all radio inputs inside the contentSettingsPage element.

Done.

http://codereview.chromium.org/2804039/diff/19003/35009
File chrome/browser/resources/options/content_settings_ui.js (right):

http://codereview.chromium.org/2804039/diff/19003/35009#newcode21
chrome/browser/resources/options/content_settings_ui.js:21:
this.addEventListener('click',
On 2010/07/09 02:20:40, arv wrote:
> s/click/change

huh, weird, thought I changed these two things already. fixed.

Powered by Google App Engine
This is Rietveld 408576698