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

Issue 8637001: [NTP4] Auto-deletion of empty apps panes. (Closed)

Created:
9 years, 1 month ago by Dan Beam
Modified:
4 years ago
Reviewers:
CC:
chromium-reviews, estade+watch_chromium.org, arv (Not doing code reviews)
Visibility:
Public.

Description

[NTP4] Auto-deletion of empty apps panes. R=estade@chromium.org BUG=97762 TEST=NTP4 should continue functioning as before but delete empty apps pages when the last app is moved/removed/uninstalled from a page.

Patch Set 1 #

Patch Set 2 : removing debugging stuff #

Patch Set 3 : fixing no-op transitions / callback handling / webkitTransitionEnd issues #

Patch Set 4 : adding some logic to remove empty pages when loading from prefs #

Patch Set 5 : removing CSS s -> ms style changes #

Patch Set 6 : fixed segfault when using new profile #

Patch Set 7 : idle page working except for first/mid page removes & dropping on navdots? #

Patch Set 8 : idle working except for first page remove? #

Patch Set 9 : treating keys as indices #

Patch Set 10 : should be working now #

Patch Set 11 : rebasing rbyers and csilv's changes #

Total comments: 17

Patch Set 12 : un-alphabetizing for estade so diff is easier to read #

Total comments: 2

Patch Set 13 : adding back erroneously removed ; #

Total comments: 6

Patch Set 14 : csilv's review comments #

Patch Set 15 : more code review changes #

Patch Set 16 : fixing cancel uninstall prompt bug #

Patch Set 17 : blank nav dot but everything else seems to work #

Patch Set 18 : rebasing extension service changes #

Patch Set 19 : working again #

Patch Set 20 : more fixes and typos from reviewing myself #

Total comments: 41

Patch Set 21 : estade's review comments + large refactor, still has debug code in it #

Patch Set 22 : removing bits for refactor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+996 lines, -330 lines) Patch
M chrome/browser/resources/ntp4/apps_page.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 7 chunks +46 lines, -29 lines 0 comments Download
M chrome/browser/resources/ntp4/nav_dot.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/ntp4/page_list_view.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 10 chunks +374 lines, -151 lines 0 comments Download
M chrome/browser/resources/ntp4/tile_page.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 6 chunks +82 lines, -27 lines 0 comments Download
M chrome/browser/resources/shared/js/cr/ui/card_slider.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 7 chunks +148 lines, -14 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 7 chunks +26 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 18 chunks +304 lines, -99 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
Dan Beam
btw guys, this is really close, remaining functional issues are: uninstall last from last page ...
9 years ago (2011-11-30 20:45:41 UTC) #1
Dan Beam
9 years ago (2011-12-01 02:08:25 UTC) #2
Dan Beam
By the way, if you're trying to actually apply this patch yourself with git cl ...
9 years ago (2011-12-01 05:37:45 UTC) #3
Evan Stade
http://codereview.chromium.org/8637001/diff/35001/chrome/browser/resources/ntp4/apps_page.js File chrome/browser/resources/ntp4/apps_page.js (right): http://codereview.chromium.org/8637001/diff/35001/chrome/browser/resources/ntp4/apps_page.js#newcode27 chrome/browser/resources/ntp4/apps_page.js:27: } vat is thees http://codereview.chromium.org/8637001/diff/35001/chrome/browser/resources/ntp4/page_list_view.js File chrome/browser/resources/ntp4/page_list_view.js (right): http://codereview.chromium.org/8637001/diff/35001/chrome/browser/resources/ntp4/page_list_view.js#newcode282 ...
9 years ago (2011-12-02 00:53:24 UTC) #4
Dan Beam
http://codereview.chromium.org/8637001/diff/35001/chrome/browser/resources/ntp4/apps_page.js File chrome/browser/resources/ntp4/apps_page.js (right): http://codereview.chromium.org/8637001/diff/35001/chrome/browser/resources/ntp4/apps_page.js#newcode27 chrome/browser/resources/ntp4/apps_page.js:27: } On 2011/12/02 00:53:24, Evan Stade wrote: > vat ...
9 years ago (2011-12-02 01:25:11 UTC) #5
csilv
http://codereview.chromium.org/8637001/diff/40001/chrome/browser/resources/shared/js/cr/ui/card_slider.js File chrome/browser/resources/shared/js/cr/ui/card_slider.js (right): http://codereview.chromium.org/8637001/diff/40001/chrome/browser/resources/shared/js/cr/ui/card_slider.js#newcode378 chrome/browser/resources/shared/js/cr/ui/card_slider.js:378: * @return {boolean} Whether or not a transformation was ...
9 years ago (2011-12-02 01:57:02 UTC) #6
Evan Stade
http://codereview.chromium.org/8637001/diff/35001/chrome/browser/resources/ntp4/tile_page.js File chrome/browser/resources/ntp4/tile_page.js (right): http://codereview.chromium.org/8637001/diff/35001/chrome/browser/resources/ntp4/tile_page.js#newcode307 chrome/browser/resources/ntp4/tile_page.js:307: if (owningPage instanceof ntp4.AppsPage && !opt_dontDelete) On 2011/12/02 01:25:11, ...
9 years ago (2011-12-02 02:39:48 UTC) #7
Dan Beam
http://codereview.chromium.org/8637001/diff/35001/chrome/browser/resources/shared/js/cr/ui/card_slider.js File chrome/browser/resources/shared/js/cr/ui/card_slider.js (right): http://codereview.chromium.org/8637001/diff/35001/chrome/browser/resources/shared/js/cr/ui/card_slider.js#newcode326 chrome/browser/resources/shared/js/cr/ui/card_slider.js:326: if (typeof opt_callback == 'function') { On 2011/12/02 02:39:49, ...
9 years ago (2011-12-05 18:05:09 UTC) #8
Dan Beam
http://codereview.chromium.org/8637001/diff/35001/chrome/browser/resources/ntp4/tile_page.js File chrome/browser/resources/ntp4/tile_page.js (right): http://codereview.chromium.org/8637001/diff/35001/chrome/browser/resources/ntp4/tile_page.js#newcode307 chrome/browser/resources/ntp4/tile_page.js:307: if (owningPage instanceof ntp4.AppsPage && !opt_dontDelete) On 2011/12/02 02:39:49, ...
9 years ago (2011-12-05 18:07:12 UTC) #9
Dan Beam
more relevant changes, stuff just isn't working again :|
9 years ago (2011-12-05 20:08:09 UTC) #10
Dan Beam
ptal, got things working again (passes all my tests) http://codereview.chromium.org/8637001/diff/35001/chrome/browser/resources/shared/js/cr/ui/card_slider.js File chrome/browser/resources/shared/js/cr/ui/card_slider.js (right): http://codereview.chromium.org/8637001/diff/35001/chrome/browser/resources/shared/js/cr/ui/card_slider.js#newcode326 chrome/browser/resources/shared/js/cr/ui/card_slider.js:326: ...
9 years ago (2011-12-08 00:21:06 UTC) #11
Evan Stade
http://codereview.chromium.org/8637001/diff/65001/chrome/browser/resources/ntp4/apps_page.js File chrome/browser/resources/ntp4/apps_page.js (left): http://codereview.chromium.org/8637001/diff/65001/chrome/browser/resources/ntp4/apps_page.js#oldcode763 chrome/browser/resources/ntp4/apps_page.js:763: * TODO(estade): pass along an index. just remove the ...
9 years ago (2011-12-08 02:34:54 UTC) #12
Dan Beam
http://codereview.chromium.org/8637001/diff/65001/chrome/browser/resources/ntp4/apps_page.js File chrome/browser/resources/ntp4/apps_page.js (left): http://codereview.chromium.org/8637001/diff/65001/chrome/browser/resources/ntp4/apps_page.js#oldcode763 chrome/browser/resources/ntp4/apps_page.js:763: * TODO(estade): pass along an index. On 2011/12/08 02:34:56, ...
9 years ago (2011-12-08 02:40:54 UTC) #13
Dan Beam
http://codereview.chromium.org/8637001/diff/65001/chrome/browser/resources/ntp4/apps_page.js File chrome/browser/resources/ntp4/apps_page.js (left): http://codereview.chromium.org/8637001/diff/65001/chrome/browser/resources/ntp4/apps_page.js#oldcode778 chrome/browser/resources/ntp4/apps_page.js:778: chrome.send('setPageIndex', [draggedTile.firstChild.appId, pageIndex]); On 2011/12/08 02:34:56, Evan Stade wrote: ...
9 years ago (2011-12-08 04:46:18 UTC) #14
Dan Beam
http://codereview.chromium.org/8637001/diff/65001/chrome/browser/resources/ntp4/page_list_view.js File chrome/browser/resources/ntp4/page_list_view.js (right): http://codereview.chromium.org/8637001/diff/65001/chrome/browser/resources/ntp4/page_list_view.js#newcode791 chrome/browser/resources/ntp4/page_list_view.js:791: this.shownPageIndex -= 1; On 2011/12/08 04:46:18, Dan Beam wrote: ...
9 years ago (2011-12-08 07:27:52 UTC) #15
Dan Beam
9 years ago (2011-12-13 07:57:11 UTC) #16
estade/csilv: I'm assuming I should continue with this CL and just rebase in
csharp's index -> ordinal changes, yeah?  It's not too hard to read yet, right?

Powered by Google App Engine
This is Rietveld 408576698