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

Issue 15809008: Make resizing in Files.app more responsive. (Closed)

Created:
7 years, 6 months ago by mtomasz
Modified:
7 years, 6 months ago
Reviewers:
hirono
CC:
chromium-reviews, rginda+watch_chromium.org, arv+watch_chromium.org
Visibility:
Public.

Description

Make resizing in Files.app more responsive. Before, the resizing of the file list and the grid list was delayed to avoid making the UI janky. That delay caused flickering of the screen when showing the Save-as dialog as well as when maximizing/restoring the window. This patch solves this problem by calling immediately resizing the file list and grid view, but delaying any consecutive resizes. TEST=Maximize, minimize, check the Save-as dialog. BUG=245042 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203910

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments. #

Patch Set 3 : Fixed. #

Total comments: 6

Patch Set 4 : Addressed comments. #

Total comments: 4

Patch Set 5 : Addressed comments. #

Total comments: 2

Patch Set 6 : Fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -26 lines) Patch
M chrome/browser/resources/file_manager/js/async_util.js View 1 2 3 4 5 1 chunk +76 lines, -0 lines 0 comments Download
M chrome/browser/resources/file_manager/js/file_grid.js View 1 2 3 4 2 chunks +16 lines, -12 lines 0 comments Download
M chrome/browser/resources/file_manager/js/file_manager.js View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/resources/file_manager/js/file_table.js View 1 2 3 4 2 chunks +16 lines, -12 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
mtomasz
@hirono: PTAL. Thanks.
7 years, 6 months ago (2013-05-31 10:56:42 UTC) #1
hirono
Thank you! https://codereview.chromium.org/15809008/diff/1/chrome/browser/resources/file_manager/js/file_grid.js File chrome/browser/resources/file_manager/js/file_grid.js (right): https://codereview.chromium.org/15809008/diff/1/chrome/browser/resources/file_manager/js/file_grid.js#newcode77 chrome/browser/resources/file_manager/js/file_grid.js:77: resize(); After this resizing, the timer is ...
7 years, 6 months ago (2013-05-31 11:11:21 UTC) #2
mtomasz
7 years, 6 months ago (2013-06-03 01:01:13 UTC) #3
mtomasz
https://codereview.chromium.org/15809008/diff/1/chrome/browser/resources/file_manager/js/file_grid.js File chrome/browser/resources/file_manager/js/file_grid.js (right): https://codereview.chromium.org/15809008/diff/1/chrome/browser/resources/file_manager/js/file_grid.js#newcode77 chrome/browser/resources/file_manager/js/file_grid.js:77: resize(); On 2013/05/31 11:11:21, hirono wrote: > After this ...
7 years, 6 months ago (2013-06-03 01:01:38 UTC) #4
hirono
https://codereview.chromium.org/15809008/diff/2002/chrome/browser/resources/file_manager/js/file_grid.js File chrome/browser/resources/file_manager/js/file_grid.js (right): https://codereview.chromium.org/15809008/diff/2002/chrome/browser/resources/file_manager/js/file_grid.js#newcode76 chrome/browser/resources/file_manager/js/file_grid.js:76: this.redraw(); This second redraw is needed? https://codereview.chromium.org/15809008/diff/2002/chrome/browser/resources/file_manager/js/file_grid.js#newcode87 chrome/browser/resources/file_manager/js/file_grid.js:87: this.suppressResizeTimer_ ...
7 years, 6 months ago (2013-06-03 01:59:08 UTC) #5
mtomasz
https://codereview.chromium.org/15809008/diff/2002/chrome/browser/resources/file_manager/js/file_grid.js File chrome/browser/resources/file_manager/js/file_grid.js (right): https://codereview.chromium.org/15809008/diff/2002/chrome/browser/resources/file_manager/js/file_grid.js#newcode76 chrome/browser/resources/file_manager/js/file_grid.js:76: this.redraw(); On 2013/06/03 01:59:08, hirono wrote: > This second ...
7 years, 6 months ago (2013-06-03 02:11:02 UTC) #6
hirono
https://codereview.chromium.org/15809008/diff/2002/chrome/browser/resources/file_manager/js/file_grid.js File chrome/browser/resources/file_manager/js/file_grid.js (right): https://codereview.chromium.org/15809008/diff/2002/chrome/browser/resources/file_manager/js/file_grid.js#newcode87 chrome/browser/resources/file_manager/js/file_grid.js:87: this.suppressResizeTimer_ = setTimeout(function() { On 2013/06/03 02:11:02, mtomasz wrote: ...
7 years, 6 months ago (2013-06-03 03:12:20 UTC) #7
mtomasz
https://codereview.chromium.org/15809008/diff/2002/chrome/browser/resources/file_manager/js/file_grid.js File chrome/browser/resources/file_manager/js/file_grid.js (right): https://codereview.chromium.org/15809008/diff/2002/chrome/browser/resources/file_manager/js/file_grid.js#newcode87 chrome/browser/resources/file_manager/js/file_grid.js:87: this.suppressResizeTimer_ = setTimeout(function() { On 2013/06/03 03:12:20, hirono wrote: ...
7 years, 6 months ago (2013-06-03 07:11:04 UTC) #8
mtomasz
https://codereview.chromium.org/15809008/diff/17001/chrome/browser/resources/file_manager/js/file_table.js File chrome/browser/resources/file_manager/js/file_table.js (right): https://codereview.chromium.org/15809008/diff/17001/chrome/browser/resources/file_manager/js/file_table.js#newcode702 chrome/browser/resources/file_manager/js/file_table.js:702: this.lastResizedTimer_ = Date.now(); This should be lastResizedTime.
7 years, 6 months ago (2013-06-03 07:12:11 UTC) #9
hirono
Thank you very much for addressing this. After comparing grid_table.js with table_list.js, I'm no longer ...
7 years, 6 months ago (2013-06-03 07:46:00 UTC) #10
mtomasz
https://codereview.chromium.org/15809008/diff/17001/chrome/browser/resources/file_manager/js/file_table.js File chrome/browser/resources/file_manager/js/file_table.js (right): https://codereview.chromium.org/15809008/diff/17001/chrome/browser/resources/file_manager/js/file_table.js#newcode690 chrome/browser/resources/file_manager/js/file_table.js:690: FileTable.RELAYOUT_DELAY - 1); On 2013/06/03 07:46:00, hirono wrote: > ...
7 years, 6 months ago (2013-06-03 08:32:03 UTC) #11
hirono
On 2013/06/03 08:32:03, mtomasz wrote: > https://codereview.chromium.org/15809008/diff/17001/chrome/browser/resources/file_manager/js/file_table.js > File chrome/browser/resources/file_manager/js/file_table.js (right): > > https://codereview.chromium.org/15809008/diff/17001/chrome/browser/resources/file_manager/js/file_table.js#newcode690 > ...
7 years, 6 months ago (2013-06-03 09:46:33 UTC) #12
hirono
lgtm with nit. https://codereview.chromium.org/15809008/diff/25001/chrome/browser/resources/file_manager/js/async_util.js File chrome/browser/resources/file_manager/js/async_util.js (right): https://codereview.chromium.org/15809008/diff/25001/chrome/browser/resources/file_manager/js/async_util.js#newcode184 chrome/browser/resources/file_manager/js/async_util.js:184: if (this.lastRunTime_ && Date.now() - this.lastRunTime_ ...
7 years, 6 months ago (2013-06-03 09:47:55 UTC) #13
mtomasz
https://codereview.chromium.org/15809008/diff/25001/chrome/browser/resources/file_manager/js/async_util.js File chrome/browser/resources/file_manager/js/async_util.js (right): https://codereview.chromium.org/15809008/diff/25001/chrome/browser/resources/file_manager/js/async_util.js#newcode184 chrome/browser/resources/file_manager/js/async_util.js:184: if (this.lastRunTime_ && Date.now() - this.lastRunTime_ < this.delay_) { ...
7 years, 6 months ago (2013-06-04 00:47:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/15809008/32001
7 years, 6 months ago (2013-06-04 00:48:55 UTC) #15
commit-bot: I haz the power
Change committed as 203910
7 years, 6 months ago (2013-06-04 08:39:15 UTC) #16
Isaac (away)
I believe this CL has caused browser_tests OpenSpecialTypes/FileManagerBrowserSimpleTest test suite to become flay on chromiumos. ...
7 years, 6 months ago (2013-06-10 01:12:28 UTC) #17
Isaac (away)
7 years, 6 months ago (2013-06-10 01:29:54 UTC) #18
Message was sent while issue was closed.
Filed: crbug.com/247997

Powered by Google App Engine
This is Rietveld 408576698