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

Issue 3455007: Make it possible to hide "most visited" on nnnnnnntp (Closed)

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

Description

Make it possible to hide "most visited" on nnnnnnntp This implements http://folder/glen/chrome/spec/101_ntp/8_wish&sidebar mocks 2, 5, 6 It's a bit lame to use a bit in the "sections" bitmask to serialize the "should show?" information, but the damage here was done when someone decided to that "THUBMS bit missing" should mean "show a list instead" (instead of adding another bit for that). BUG=55148 TEST=Hover "Most Visited" bar. Close button should appear. Clicking it should hide "Most Visited" area and add a button at the window edge. That button should have a menu that makes it possible to make the "Most Visited" area visible again. Also do this while multiple NTPs are open; the changes made in the front NTP should be synced to the background NTPs. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=61095 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=61259

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : show close button on hover, make menu look correctly #

Patch Set 5 : hiding works #

Patch Set 6 : hiding #

Patch Set 7 : mostly works #

Patch Set 8 : done #

Patch Set 9 : '' #

Total comments: 15

Patch Set 10 : comments #

Total comments: 9

Patch Set 11 : once more, with feeling #

Patch Set 12 : serialized #

Patch Set 13 : rebase #

Total comments: 41

Patch Set 14 : comments #

Patch Set 15 : rebase #

Patch Set 16 : fix revert reasons #

Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -20 lines) Patch
M chrome/browser/dom_ui/shown_sections_handler.h View 7 8 9 10 12 13 1 chunk +10 lines, -2 lines 0 comments Download
M chrome/browser/dom_ui/shown_sections_handler.cc View 7 8 9 10 12 13 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/new_new_tab.css View 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +64 lines, -2 lines 0 comments Download
M chrome/browser/resources/new_new_tab.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +56 lines, -2 lines 0 comments Download
M chrome/browser/resources/new_new_tab.js View 2 3 4 5 6 7 8 9 10 11 12 13 14 15 10 chunks +142 lines, -7 lines 0 comments Download
M chrome/browser/resources/new_tab_theme.css View 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/resources/ntp/apps.js View 11 12 13 14 15 5 chunks +21 lines, -2 lines 0 comments Download
M chrome/browser/resources/ntp/most_visited.js View 3 4 5 6 7 8 9 10 11 12 13 3 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
Nico
According to Glen, it'd be aweeeesome if this makes m7. I'm not the ninjaest js ...
10 years, 3 months ago (2010-09-20 03:47:57 UTC) #1
Glen Murphy
+ Aaron On Sun, Sep 19, 2010 at 8:47 PM, <thakis@chromium.org> wrote: > Reviewers: Miranda ...
10 years, 3 months ago (2010-09-20 04:07:30 UTC) #2
Miranda Callahan
LGTM after my minor comments, but you should wait for the ok from a js ...
10 years, 3 months ago (2010-09-20 04:12:53 UTC) #3
Aaron Boodman
I know it's a pita, but please try to remember to post screen shots and/or ...
10 years, 3 months ago (2010-09-20 04:20:47 UTC) #4
Aaron Boodman
I know it's a pita, but please try to remember to post screen shots and/or ...
10 years, 3 months ago (2010-09-20 04:20:47 UTC) #5
Nico
aa: Here are four screenshots that describe comprehensively describe the patch: http://imgur.com/AVf2yl&OdZKw&hssIE&4Kgvo (Hovering a section ...
10 years, 3 months ago (2010-09-20 04:53:20 UTC) #6
Aaron Boodman
On 2010/09/20 04:53:20, Nico wrote: > aa: Here are four screenshots that describe comprehensively describe ...
10 years, 3 months ago (2010-09-20 05:45:40 UTC) #7
Aaron Boodman
Big-picture comment: It seems weird to me that this only works for MV, not apps. ...
10 years, 3 months ago (2010-09-20 06:09:53 UTC) #8
arv (Not doing code reviews)
I agree with Aaron, it is strange that we only allow this for the MV ...
10 years, 3 months ago (2010-09-20 18:59:12 UTC) #9
Nico
Thanks for the comments. Looks like I won't have time to clean this up and ...
10 years, 3 months ago (2010-09-20 21:56:24 UTC) #10
Nico
Rewrote it to support closing all three sections. The code that stores this in the ...
10 years, 2 months ago (2010-09-30 04:54:06 UTC) #11
Nico
Now with serialization support. If you missed it, there are some privacy concerns about launching ...
10 years, 2 months ago (2010-09-30 06:14:11 UTC) #12
Aaron Boodman
lgtm, thanks for doing this -- arv should take a look too. http://codereview.chromium.org/3455007/diff/45001/46001 File chrome/browser/dom_ui/shown_sections_handler.cc ...
10 years, 2 months ago (2010-09-30 15:20:40 UTC) #13
Aaron Boodman
http://codereview.chromium.org/3455007/diff/45001/46002 File chrome/browser/dom_ui/shown_sections_handler.h (right): http://codereview.chromium.org/3455007/diff/45001/46002#newcode30 chrome/browser/dom_ui/shown_sections_handler.h:30: NO_APPS = 0x400000, Maybe it's just me, but I ...
10 years, 2 months ago (2010-09-30 15:21:32 UTC) #14
arv (Not doing code reviews)
LGTM overall. A bunch of style nits and a few minor optimizations and cleanups wanted. ...
10 years, 2 months ago (2010-09-30 16:03:38 UTC) #15
Nico
all done, submitting http://codereview.chromium.org/3455007/diff/45001/46001 File chrome/browser/dom_ui/shown_sections_handler.cc (right): http://codereview.chromium.org/3455007/diff/45001/46001#newcode24 chrome/browser/dom_ui/shown_sections_handler.cc:24: void NotifySectionDisabled(int new_mode, int old_mode, Profile ...
10 years, 2 months ago (2010-09-30 19:28:17 UTC) #16
Nico
I fixed the issues that got this reverted. The diff is very small, see bug. ...
10 years, 2 months ago (2010-10-01 21:36:53 UTC) #17
Aaron Boodman
On 2010/10/01 21:36:53, Nico wrote: > I fixed the issues that got this reverted. The ...
10 years, 2 months ago (2010-10-01 21:47:54 UTC) #18
Aaron Boodman
Can you make it so that the apps section opens when you install an app ...
10 years, 2 months ago (2010-10-01 22:08:52 UTC) #19
Nico
10 years, 2 months ago (2010-10-03 03:21:30 UTC) #20
On Fri, Oct 1, 2010 at 3:08 PM,  <aa@chromium.org> wrote:
> Can you make it so that the apps section opens when you install an app and
> it is
> hidden? It is kind of weird that the NTP opens and nothing happens.

Sent you a different CL for that.

> Also, I think the menus should be moved up about 2px when they are open, if
> possible.

I'm using the stock menu code, so there isn't much I can do about this.

> LGTM other than that.

Thanks, landed.

>
> http://codereview.chromium.org/3455007/show
>

Powered by Google App Engine
This is Rietveld 408576698