Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2143)

Issue 318100043: Edit function for bookmarks. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years, 4 months ago by jiaxi
Modified:
7 years, 3 months ago
CC:
calamity+md_bookmarks_chromium.org, tsergeant+md_bookmarks_chromium.org
Visibility:
Public.

Description

Edit function for bookmarks. This cl enables the edit bookmarks function in the dropdown menu. BUG=

Patch Set 1 #

Patch Set 2 : custom string and format fix #

Total comments: 37

Patch Set 3 : a bunch of renaming #

Patch Set 4 : merge fix #

Total comments: 8

Patch Set 5 : merge #

Total comments: 8

Patch Set 6 : tiny fix #

Patch Set 7 : renaming and string fixing #

Patch Set 8 : String fix and test #

Patch Set 9 : added a new test #

Patch Set 10 : css fix #

Patch Set 11 : section #

Patch Set 12 : merge #

Total comments: 11

Patch Set 13 : ignore me, merge usage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -69 lines) Patch
M chrome/browser/resources/md_bookmarks/list.html View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +29 lines, -4 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/list.js View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/resources/md_bookmarks/shared_style.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/shared_vars.html View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/store.js View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +86 lines, -62 lines 0 comments Download
M chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/test/data/webui/md_bookmarks/md_bookmarks_browsertest.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/data/webui/md_bookmarks/store_test.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +18 lines, -0 lines 0 comments Download
M components/bookmark_component_strings.grdp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17
jiaxi
7 years, 4 months ago (2016-12-16 03:45:54 UTC) #1
jiaxi
https://codereview.appspot.com/318100043/diff/20001/chrome/browser/resources/md_bookmarks/list.html File chrome/browser/resources/md_bookmarks/list.html (right): https://codereview.appspot.com/318100043/diff/20001/chrome/browser/resources/md_bookmarks/list.html#newcode62 chrome/browser/resources/md_bookmarks/list.html:62: </dialog> The close button on the top right corner ...
7 years, 4 months ago (2016-12-16 03:48:11 UTC) #2
angelayang
Just a rename of the listener in the store. https://codereview.appspot.com/318100043/diff/20001/chrome/browser/resources/md_bookmarks/store.js File chrome/browser/resources/md_bookmarks/store.js (right): https://codereview.appspot.com/318100043/diff/20001/chrome/browser/resources/md_bookmarks/store.js#newcode95 chrome/browser/resources/md_bookmarks/store.js:95: ...
7 years, 4 months ago (2016-12-16 04:00:09 UTC) #3
angelayang
On 2016/12/16 04:00:09, angelayang wrote: > Just a rename of the listener in the store. ...
7 years, 4 months ago (2016-12-16 04:00:22 UTC) #4
jiaxi
ฅ(•ㅅ•❀)ฅ https://codereview.appspot.com/318100043/diff/20001/chrome/browser/resources/md_bookmarks/store.js File chrome/browser/resources/md_bookmarks/store.js (right): https://codereview.appspot.com/318100043/diff/20001/chrome/browser/resources/md_bookmarks/store.js#newcode95 chrome/browser/resources/md_bookmarks/store.js:95: handleBookmarkChanged_: function(id, changeInfo) { On 2016/12/16 04:00:09, angelayang ...
7 years, 4 months ago (2016-12-16 04:02:54 UTC) #5
calamity
Round 1. TGIF time. https://codereview.appspot.com/318100043/diff/20001/chrome/app/bookmarks_strings.grdp File chrome/app/bookmarks_strings.grdp (right): https://codereview.appspot.com/318100043/diff/20001/chrome/app/bookmarks_strings.grdp#newcode329 chrome/app/bookmarks_strings.grdp:329: </message> Just use IDS_CANCEL for ...
7 years, 4 months ago (2016-12-16 05:20:25 UTC) #6
jiaxi
https://codereview.appspot.com/318100043/diff/20001/chrome/app/bookmarks_strings.grdp File chrome/app/bookmarks_strings.grdp (right): https://codereview.appspot.com/318100043/diff/20001/chrome/app/bookmarks_strings.grdp#newcode329 chrome/app/bookmarks_strings.grdp:329: </message> On 2016/12/16 05:20:24, calamity wrote: > Just use ...
7 years, 4 months ago (2016-12-19 23:52:01 UTC) #7
jiaxi
https://codereview.appspot.com/318100043/diff/20001/chrome/app/bookmarks_strings.grdp File chrome/app/bookmarks_strings.grdp (right): https://codereview.appspot.com/318100043/diff/20001/chrome/app/bookmarks_strings.grdp#newcode368 chrome/app/bookmarks_strings.grdp:368: </message> On 2016/12/19 23:52:00, jiaxi wrote: > Should we ...
7 years, 4 months ago (2016-12-20 03:05:04 UTC) #8
calamity
https://codereview.appspot.com/318100043/diff/60001/chrome/browser/resources/md_bookmarks/list.html File chrome/browser/resources/md_bookmarks/list.html (right): https://codereview.appspot.com/318100043/diff/60001/chrome/browser/resources/md_bookmarks/list.html#newcode30 chrome/browser/resources/md_bookmarks/list.html:30: } Sorry, I wasn't clear. If you add <link ...
7 years, 4 months ago (2016-12-20 03:54:54 UTC) #9
jiaxi
I've also added a test to this one https://codereview.appspot.com/318100043/diff/80001/chrome/app/bookmarks_strings.grdp File chrome/app/bookmarks_strings.grdp (right): https://codereview.appspot.com/318100043/diff/80001/chrome/app/bookmarks_strings.grdp#newcode330 chrome/app/bookmarks_strings.grdp:330: <message ...
7 years, 4 months ago (2016-12-20 07:06:54 UTC) #10
tsergeant
There are a bunch of comments still in patchset 4 that it looks like you've ...
7 years, 4 months ago (2016-12-20 23:02:13 UTC) #11
jiaxi
On 2016/12/20 23:02:13, tsergeant wrote: > There are a bunch of comments still in patchset ...
7 years, 4 months ago (2016-12-20 23:51:47 UTC) #12
jiaxi
https://codereview.appspot.com/318100043/diff/60001/chrome/browser/resources/md_bookmarks/list.html File chrome/browser/resources/md_bookmarks/list.html (right): https://codereview.appspot.com/318100043/diff/60001/chrome/browser/resources/md_bookmarks/list.html#newcode30 chrome/browser/resources/md_bookmarks/list.html:30: } On 2016/12/20 03:54:53, calamity wrote: > Sorry, I ...
7 years, 4 months ago (2016-12-20 23:51:55 UTC) #13
jiaxi
The merge is done for this CL as well :) https://codereview.appspot.com/318100043/diff/220001/chrome/browser/resources/md_bookmarks/store.js File chrome/browser/resources/md_bookmarks/store.js (right): https://codereview.appspot.com/318100043/diff/220001/chrome/browser/resources/md_bookmarks/store.js#newcode125 ...
7 years, 4 months ago (2016-12-22 04:55:09 UTC) #14
calamity
https://codereview.appspot.com/318100043/diff/220001/chrome/browser/resources/md_bookmarks/list.html File chrome/browser/resources/md_bookmarks/list.html (right): https://codereview.appspot.com/318100043/diff/220001/chrome/browser/resources/md_bookmarks/list.html#newcode27 chrome/browser/resources/md_bookmarks/list.html:27: </style> Undo. https://codereview.appspot.com/318100043/diff/220001/chrome/browser/resources/md_bookmarks/list.js File chrome/browser/resources/md_bookmarks/list.js (right): https://codereview.appspot.com/318100043/diff/220001/chrome/browser/resources/md_bookmarks/list.js#newcode61 chrome/browser/resources/md_bookmarks/list.js:61: function() ...
7 years, 3 months ago (2017-01-03 05:30:48 UTC) #15
tsergeant
https://codereview.appspot.com/318100043/diff/20001/chrome/browser/resources/md_bookmarks/shared_style.html File chrome/browser/resources/md_bookmarks/shared_style.html (right): https://codereview.appspot.com/318100043/diff/20001/chrome/browser/resources/md_bookmarks/shared_style.html#newcode54 chrome/browser/resources/md_bookmarks/shared_style.html:54: } On 2016/12/19 23:52:00, jiaxi wrote: > On 2016/12/16 ...
7 years, 3 months ago (2017-01-04 04:20:20 UTC) #16
tsergeant
7 years, 3 months ago (2017-01-04 05:00:04 UTC) #17
https://codereview.appspot.com/318100043/diff/20001/chrome/browser/resources/...
File chrome/browser/resources/md_bookmarks/shared_style.html (right):

https://codereview.appspot.com/318100043/diff/20001/chrome/browser/resources/...
chrome/browser/resources/md_bookmarks/shared_style.html:54: }
On 2017/01/04 04:20:19, tsergeant wrote:
> On 2016/12/19 23:52:00, jiaxi wrote:
> > On 2016/12/16 05:20:24, calamity wrote:
> > > These are crazy funky paddings. Try vertical-align instead. Are these
> paddings
> > > actually necessary at all for the right measurements? Settings doesn't
> specify
> > > it in its shared css at all.
> > 
> > vertical-align doesn't give the right padding (it should be 8.5px 16px, v-a
> > gives 9.1px 7.41px) In setting's spec[1], the dialog's button doesn't have
> > specified padding. But in bookmark's spec it does for some reason...?
> > 
> >
>
[1]https://folio.googleplex.com/chrome-ux-specs-and-sources/Chrome%20Inner%20Pages/03-Settings/specs#%2FSPEC-settings_dialogs.png%3Fz=width
> 
> In this case, it's more important for us to be consistent with other webui
than
> to match the exact pixel values from the spec.
> 
> This is because the cr-dialog and action-button styles are shared in many
> different places. Even if the styles of cr-dialog don't match the spec (and
they
> don't!), it's okay because:
> 
> * Everywhere is consistent in being wrong
> * When someone comes along to fix it, they can fix everyone at once, without
> worrying about whether the bookmarks page will still look right because it
went
> and did something different.
> 
> (Also: There are some specs for the action buttons on the 'buttons' page of
the
> settings spec)

To be clear: Get rid of the custom padding, leave the height and margin lines.
This matches what settings does.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b