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

Issue 806633003: Implement basic toolbar with Material Design and loading progress. (Closed)

Created:
5 years, 11 months ago by Alexandre Carlton
Modified:
5 years, 11 months ago
CC:
raymes, Sam McNally
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement basic toolbar with Material Design and loading progress. Currently the toolbar only offers Save and Print functionality, but in other CLs Bookmarks, Zoom and Goto Page features will be implemented. BUG=110020 Committed: https://crrev.com/c514ed05c61d422829594f3919041d0729fe6d7a Cr-Commit-Position: refs/heads/master@{#312311}

Patch Set 1 #

Patch Set 2 : Remove irrelevant alterations #

Patch Set 3 : Re-insert blank line #

Patch Set 4 : Convert toolbar to paper #

Patch Set 5 : Remove webcomponents from grdp #

Patch Set 6 : Add Material UI switch #

Patch Set 7 : Rebase pdf-flag again #

Patch Set 8 : Push document down and add shadow #

Patch Set 9 : Remove unused Polymer elements #

Patch Set 10 : Strip out unnecessary components #

Total comments: 22

Patch Set 11 : Implement Raymes' suggestions #

Patch Set 12 : Remove roboto from shared_resources_data_source.cc #

Patch Set 13 : Tidy up #

Total comments: 2

Patch Set 14 : Implement Raymes' suggestions #

Patch Set 15 : Remove commented out code #

Total comments: 6

Patch Set 16 : Implement Raymes' suggestions #

Total comments: 4

Patch Set 17 : Re-insert Sam's print preview workaround #

Total comments: 9

Patch Set 18 : Implement Raymes' and Sam's suggestions #

Patch Set 19 : Tidying #

Total comments: 11

Patch Set 20 : Remove unnecessary spans #

Patch Set 21 : Re-add buttons in index.html #

Patch Set 22 : Minor cleanup #

Patch Set 23 : Remove unneeded paper-menu-button dependency in grdp file #

Patch Set 24 : Remove unneeded elements after rebase #

Patch Set 25 : Fix typo in grdp #

Patch Set 26 : Rebase master (changed setTranslatedStrings) #

Patch Set 27 : Remove core-icon-button as dependency #

Patch Set 28 : Remove blank line in pdf.js #

Patch Set 29 : Clean up pdf.js #

Patch Set 30 : Fix line swap #

Patch Set 31 : Fix format in index.html #

Total comments: 6

Patch Set 32 : Add relevant parts of index.css to index-material.css #

Patch Set 33 : Rebase from master to avoid merging difficulties #

Patch Set 34 : Adjust viewport_test.js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -28 lines) Patch
M chrome/browser/resources/component_extension_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/pdf/index.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/browser/resources/pdf/index-material.css View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +78 lines, -0 lines 0 comments Download
M chrome/browser/resources/pdf/index-material.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2 chunks +15 lines, -11 lines 0 comments Download
M chrome/browser/resources/pdf/pdf.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 7 chunks +22 lines, -2 lines 0 comments Download
M chrome/browser/resources/pdf/viewport.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/test/data/pdf/viewport_test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 10 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 45 (10 generated)
Alexandre Carlton
5 years, 11 months ago (2015-01-04 23:04:43 UTC) #1
Alexandre Carlton
Stripped out everything but the bare essentials.
5 years, 11 months ago (2015-01-09 03:11:15 UTC) #2
raymes
Thanks! https://codereview.chromium.org/806633003/diff/180001/chrome/browser/resources/pdf/index-material.html File chrome/browser/resources/pdf/index-material.html (right): https://codereview.chromium.org/806633003/diff/180001/chrome/browser/resources/pdf/index-material.html#newcode14 chrome/browser/resources/pdf/index-material.html:14: <link rel="import" href="chrome://resources/polymer/core-icons/core-icons.html"> Do we need this? https://codereview.chromium.org/806633003/diff/180001/chrome/browser/resources/pdf/index-material.html#newcode20 ...
5 years, 11 months ago (2015-01-09 04:15:10 UTC) #4
Alexandre Carlton
https://codereview.chromium.org/806633003/diff/180001/chrome/browser/resources/pdf/index-material.html File chrome/browser/resources/pdf/index-material.html (right): https://codereview.chromium.org/806633003/diff/180001/chrome/browser/resources/pdf/index-material.html#newcode14 chrome/browser/resources/pdf/index-material.html:14: <link rel="import" href="chrome://resources/polymer/core-icons/core-icons.html"> On 2015/01/09 04:15:09, raymes wrote: > ...
5 years, 11 months ago (2015-01-12 06:33:57 UTC) #5
raymes
https://codereview.chromium.org/806633003/diff/180001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/806633003/diff/180001/chrome/browser/resources/pdf/pdf.js#newcode500 chrome/browser/resources/pdf/pdf.js:500: } I think we need to keep something here. ...
5 years, 11 months ago (2015-01-13 00:26:18 UTC) #6
Alexandre Carlton
Progress now fills the entire toolbar. https://codereview.chromium.org/806633003/diff/180001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/806633003/diff/180001/chrome/browser/resources/pdf/pdf.js#newcode500 chrome/browser/resources/pdf/pdf.js:500: } On 2015/01/09 ...
5 years, 11 months ago (2015-01-13 03:57:27 UTC) #7
Alexandre Carlton
Add sammc@ as a reviewer.
5 years, 11 months ago (2015-01-13 03:59:29 UTC) #9
raymes
https://codereview.chromium.org/806633003/diff/270001/chrome/browser/resources/pdf/index-material.css File chrome/browser/resources/pdf/index-material.css (right): https://codereview.chromium.org/806633003/diff/270001/chrome/browser/resources/pdf/index-material.css#newcode14 chrome/browser/resources/pdf/index-material.css:14: font-family: RobotoDraft, Roboto, 'Helvetica Neue', Helvetica, Arial; Do we ...
5 years, 11 months ago (2015-01-13 04:32:01 UTC) #10
Alexandre Carlton
https://codereview.chromium.org/806633003/diff/270001/chrome/browser/resources/pdf/index-material.css File chrome/browser/resources/pdf/index-material.css (right): https://codereview.chromium.org/806633003/diff/270001/chrome/browser/resources/pdf/index-material.css#newcode14 chrome/browser/resources/pdf/index-material.css:14: font-family: RobotoDraft, Roboto, 'Helvetica Neue', Helvetica, Arial; On 2015/01/13 ...
5 years, 11 months ago (2015-01-13 05:21:44 UTC) #11
raymes
https://codereview.chromium.org/806633003/diff/290001/chrome/browser/resources/pdf/manifest-common.json.unflattened File chrome/browser/resources/pdf/manifest-common.json.unflattened (right): https://codereview.chromium.org/806633003/diff/290001/chrome/browser/resources/pdf/manifest-common.json.unflattened#newcode33 chrome/browser/resources/pdf/manifest-common.json.unflattened:33: } There are whitespace changes here still. https://codereview.chromium.org/806633003/diff/290001/chrome/browser/resources/pdf/pdf.js File ...
5 years, 11 months ago (2015-01-13 05:27:27 UTC) #12
Alexandre Carlton
https://codereview.chromium.org/806633003/diff/290001/chrome/browser/resources/pdf/manifest-common.json.unflattened File chrome/browser/resources/pdf/manifest-common.json.unflattened (right): https://codereview.chromium.org/806633003/diff/290001/chrome/browser/resources/pdf/manifest-common.json.unflattened#newcode33 chrome/browser/resources/pdf/manifest-common.json.unflattened:33: } On 2015/01/13 05:27:27, raymes wrote: > There are ...
5 years, 11 months ago (2015-01-13 06:22:41 UTC) #13
raymes
lgtm https://codereview.chromium.org/806633003/diff/310001/chrome/browser/resources/pdf/pdf.js File chrome/browser/resources/pdf/pdf.js (right): https://codereview.chromium.org/806633003/diff/310001/chrome/browser/resources/pdf/pdf.js#newcode62 chrome/browser/resources/pdf/pdf.js:62: this.toolbarHeight_ = (this.isMaterial_) ? $('pdf-toolbar').clientHeight : 0; nit: ...
5 years, 11 months ago (2015-01-13 06:24:50 UTC) #14
Sam McNally
https://codereview.chromium.org/806633003/diff/310001/chrome/browser/resources/pdf/index-material.html File chrome/browser/resources/pdf/index-material.html (right): https://codereview.chromium.org/806633003/diff/310001/chrome/browser/resources/pdf/index-material.html#newcode26 chrome/browser/resources/pdf/index-material.html:26: <core-toolbar id="pdf-toolbar"> It seems a bit weird for the ...
5 years, 11 months ago (2015-01-13 07:03:57 UTC) #15
Alexandre Carlton
https://codereview.chromium.org/806633003/diff/310001/chrome/browser/resources/pdf/index-material.html File chrome/browser/resources/pdf/index-material.html (right): https://codereview.chromium.org/806633003/diff/310001/chrome/browser/resources/pdf/index-material.html#newcode26 chrome/browser/resources/pdf/index-material.html:26: <core-toolbar id="pdf-toolbar"> On 2015/01/13 07:03:56, Sam McNally wrote: > ...
5 years, 11 months ago (2015-01-14 22:42:51 UTC) #16
Sam McNally
https://codereview.chromium.org/806633003/diff/350001/chrome/browser/resources/pdf/index-material.html File chrome/browser/resources/pdf/index-material.html (right): https://codereview.chromium.org/806633003/diff/350001/chrome/browser/resources/pdf/index-material.html#newcode17 chrome/browser/resources/pdf/index-material.html:17: <!-- TODO(alexandrec): When https://codereview.chromium.org/846833002/ is landed, remove this.--> I ...
5 years, 11 months ago (2015-01-19 00:09:37 UTC) #17
raymes
https://codereview.chromium.org/806633003/diff/350001/chrome/browser/resources/pdf/index-material.html File chrome/browser/resources/pdf/index-material.html (right): https://codereview.chromium.org/806633003/diff/350001/chrome/browser/resources/pdf/index-material.html#newcode28 chrome/browser/resources/pdf/index-material.html:28: <span id="title">PDF Viewer</span> On 2015/01/19 00:09:36, Sam McNally wrote: ...
5 years, 11 months ago (2015-01-19 00:11:50 UTC) #18
Alexandre Carlton
https://codereview.chromium.org/806633003/diff/350001/chrome/browser/resources/pdf/index-material.html File chrome/browser/resources/pdf/index-material.html (right): https://codereview.chromium.org/806633003/diff/350001/chrome/browser/resources/pdf/index-material.html#newcode17 chrome/browser/resources/pdf/index-material.html:17: <!-- TODO(alexandrec): When https://codereview.chromium.org/846833002/ is landed, remove this.--> On ...
5 years, 11 months ago (2015-01-19 00:40:12 UTC) #19
Sam McNally
lgtm
5 years, 11 months ago (2015-01-19 00:42:55 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/806633003/430001
5 years, 11 months ago (2015-01-19 02:11:57 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ng/builds/2174) Try jobs failed on following ...
5 years, 11 months ago (2015-01-19 02:15:20 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/806633003/470001
5 years, 11 months ago (2015-01-19 03:43:03 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/36803) Try jobs failed on following ...
5 years, 11 months ago (2015-01-19 03:49:00 UTC) #28
Alexandre Carlton
estade@chromium.org: Please review changes in chrome/browser/resources/component_extension_resources.grd ui/webui/resources/polymer_resources.grdp Thank you.
5 years, 11 months ago (2015-01-19 04:11:44 UTC) #30
Alexandre Carlton
5 years, 11 months ago (2015-01-20 05:48:18 UTC) #31
Evan Stade
I don't see polymner_resources.grdp but component_extension_resources.grd lgtm
5 years, 11 months ago (2015-01-20 22:42:57 UTC) #32
raymes
https://codereview.chromium.org/806633003/diff/580001/chrome/browser/resources/pdf/index-material.html File chrome/browser/resources/pdf/index-material.html (right): https://codereview.chromium.org/806633003/diff/580001/chrome/browser/resources/pdf/index-material.html#newcode18 chrome/browser/resources/pdf/index-material.html:18: <link rel="stylesheet" type="text/css" href="index.css"> Let's remove this line and ...
5 years, 11 months ago (2015-01-20 23:00:10 UTC) #33
Alexandre Carlton
https://codereview.chromium.org/806633003/diff/580001/chrome/browser/resources/pdf/index-material.html File chrome/browser/resources/pdf/index-material.html (right): https://codereview.chromium.org/806633003/diff/580001/chrome/browser/resources/pdf/index-material.html#newcode18 chrome/browser/resources/pdf/index-material.html:18: <link rel="stylesheet" type="text/css" href="index.css"> On 2015/01/20 23:00:10, raymes wrote: ...
5 years, 11 months ago (2015-01-20 23:19:18 UTC) #34
raymes
lgtm
5 years, 11 months ago (2015-01-21 00:04:27 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/806633003/620001
5 years, 11 months ago (2015-01-21 00:27:18 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/16499) Try jobs failed on following ...
5 years, 11 months ago (2015-01-21 01:50:41 UTC) #39
Alexandre Carlton
Adjusted viewport_test.js to accommodate the extra yPos argument.
5 years, 11 months ago (2015-01-21 03:28:52 UTC) #40
raymes
lgtm
5 years, 11 months ago (2015-01-21 03:46:42 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/806633003/640001
5 years, 11 months ago (2015-01-21 04:36:08 UTC) #43
commit-bot: I haz the power
Committed patchset #34 (id:640001)
5 years, 11 months ago (2015-01-21 11:08:09 UTC) #44
commit-bot: I haz the power
5 years, 11 months ago (2015-01-21 11:09:50 UTC) #45
Message was sent while issue was closed.
Patchset 34 (id:??) landed as
https://crrev.com/c514ed05c61d422829594f3919041d0729fe6d7a
Cr-Commit-Position: refs/heads/master@{#312311}

Powered by Google App Engine
This is Rietveld 408576698