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

Issue 10916149: (NOT FOR FINAL REVIEW)Refactor butter_bar.js for wallpaper manager and file manager to use. (Closed)

Created:
8 years, 3 months ago by bshe
Modified:
8 years, 3 months ago
Reviewers:
Oleg Eterevsky
CC:
chromium-reviews, rginda+watch_chromium.org, arv (Not doing code reviews), stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, oshima+watch_chromium.org
Visibility:
Public.

Description

Refactor butter_bar.js for wallpaper manager and file manager to use. Wallpaper manager also wants to use the same butter bar as file manager. Factor out butter_bar.js from file manager to shared/js/chromeos/butter_bar.js BUG=None

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -489 lines) Patch
M chrome/browser/resources/file_manager/css/file_manager.css View 1 2 2 chunks +1 line, -101 lines 0 comments Download
D chrome/browser/resources/file_manager/images/files/ui/2x/close_bar.png View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/browser/resources/file_manager/images/files/ui/close_bar.png View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/browser/resources/file_manager/js/butter_bar.js View 1 chunk +0 lines, -280 lines 0 comments Download
M chrome/browser/resources/file_manager/js/file_manager.js View 1 chunk +2 lines, -1 line 0 comments Download
A chrome/browser/resources/file_manager/js/file_manager_butter_bar.js View 1 chunk +120 lines, -0 lines 0 comments Download
M chrome/browser/resources/file_manager/js/main_scripts.js View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/file_manager/main.html View 1 2 2 chunks +4 lines, -1 line 0 comments Download
A chrome/browser/resources/shared/css/chromeos/butter_bar.css View 1 2 1 chunk +103 lines, -0 lines 0 comments Download
A + chrome/browser/resources/shared/images/2x/close_bar.png View 1 2 Binary file 0 comments Download
A + chrome/browser/resources/shared/images/close_bar.png View 1 2 Binary file 0 comments Download
A + chrome/browser/resources/shared/js/chromeos/butter_bar.js View 1 3 chunks +5 lines, -107 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
bshe
Hi Oleg. From git log, it seems you factored butter_bar.js out from file_manager.js. Now it ...
8 years, 3 months ago (2012-09-06 18:00:07 UTC) #1
Oleg Eterevsky
I like you CL. It looks like a clear separation into UI and copy progress ...
8 years, 3 months ago (2012-09-07 08:43:50 UTC) #2
Vladislav Kaznacheev
I do not feel that ButterBar class qualifies for the shared status. My reasons: 1. ...
8 years, 3 months ago (2012-09-07 12:41:54 UTC) #3
bshe
8 years, 3 months ago (2012-09-07 14:03:33 UTC) #4
Thanks for comments and suggestions.

I am hoping to land butter bar for wallpaper manager in M23. But it looks
controversial to abstract that class now as Vladislav argued.

So for M23, I would go whatever easiest(copy these lines to wallpaper manager)
considering the time remaining. And leave a TODO and get back to it once butter
bar is finalized. 

On 2012/09/07 12:41:54, Vladislav Kaznacheev wrote:
> I do not feel that ButterBar class qualifies for the shared status. My
reasons:
> 
> 1. It is small (178 lines)
> 2. It is not "magical" enough to convince me to use it instead of rolling my
own
> (unlike cr.ui.List/DataModel/SelectionModel combo which solves a complex
problem
> so well that I am willing to live with its quirks)
> 3. It does what it does in a fairly peculiar way. What are the chances that
> there will be another client who wants exactly this feature set?
> 4. It is not stable enough. The FileManager team has a short-term plan to
> rewrite it to make it reusable in the Photo Editor. I would not like us to be
> constrained with (artifically) fixed API that Wallpaper manager depends on.
> 
> I suggest that you copy these 178 lines to your codebase for now. Lets get
back
> to this in a month or so when we know what we want from our butter bar and see
> if there is enough grounds for sharing the code.
> 
> 
> 
> 
> 
> On 2012/09/07 08:43:50, Oleg wrote:
> > I like you CL. It looks like a clear separation into UI and copy progress
> logic.
> > Will you try to move CSS to shared resources too? It's in
> > file_manager/css/file_manager.css.
> > 
> > When you do you plan to land these changes? Do you want to make them in M23?
> > 
> >
>
http://codereview.chromium.org/10916149/diff/2001/chrome/browser/resources/fi...
> > File chrome/browser/resources/file_manager/js/file_manager_butter_bar.js
> > (right):
> > 
> >
>
http://codereview.chromium.org/10916149/diff/2001/chrome/browser/resources/fi...
> > chrome/browser/resources/file_manager/js/file_manager_butter_bar.js:20:
> > FileManagerButterBar.prototype = {
> > In FileManager we use a different style for class declarations, with each
> method
> > in a separate assignment. This way we get warnings about errors in jsdoc.

Powered by Google App Engine
This is Rietveld 408576698