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

Issue 10386189: Add chrome_html gatherer, which inlines html and automatically generates image set… (Closed)

Created:
8 years, 7 months ago by flackr
Modified:
8 years, 7 months ago
Reviewers:
tony, Jói
CC:
grit-developer_googlegroups.com
Base URL:
http://git.chromium.org/external/grit-i18n.git@master
Visibility:
Public.

Description

Add chrome_html gatherer, which inlines html and generates image sets. In Chromium we want to have high DPI assets in WebUI dependent on the platform on which we are compiling. To accomplish this we will specify the set of scale factors and search for matching image names in bottom-level directories. BUG=chromium:125315 TEST=All unittests still pass, chrome_html_unittest

Patch Set 1 #

Total comments: 1

Patch Set 2 : Reuse html_inline functionality by passing a rewrite function. #

Total comments: 8

Patch Set 3 : Get scale_factors from defines. #

Patch Set 4 : Add comments, spacing. #

Patch Set 5 : Add unit tests for chrome_html. #

Patch Set 6 : chrome_html comment. #

Total comments: 27

Patch Set 7 : Address review comments. #

Total comments: 4

Patch Set 8 : End sentences with periods. #

Patch Set 9 : Standardize newline format and png mime type. #

Patch Set 10 : Standardize reference output as well since source newline format may be checkout/platform dependent. #

Patch Set 11 : Add chrome_html_unittest to test_suite_all. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+437 lines, -9 lines) Patch
M grit/format/data_pack.py View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M grit/format/html_inline.py View 1 7 chunks +30 lines, -6 lines 0 comments Download
A grit/gather/chrome_html.py View 1 2 3 4 5 6 7 1 chunk +160 lines, -0 lines 0 comments Download
A grit/gather/chrome_html_unittest.py View 1 2 3 4 5 6 7 8 9 1 chunk +203 lines, -0 lines 0 comments Download
M grit/gather/interface.py View 1 2 2 chunks +17 lines, -0 lines 0 comments Download
M grit/node/structure.py View 1 2 3 4 5 6 5 chunks +20 lines, -1 line 0 comments Download
M grit/test_suite_all.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
flackr
Hi Joi, This is far from committing, but I was hoping you could take a ...
8 years, 7 months ago (2012-05-17 13:18:52 UTC) #1
tony
The only structure we use in chrome is used by chrome frame (2 dialogs). They ...
8 years, 7 months ago (2012-05-17 17:57:25 UTC) #2
Jói
Rob: In general this looks good to me, see a couple of comments below. I ...
8 years, 7 months ago (2012-05-17 19:39:11 UTC) #3
tony
The new patch that reuses html_inline looks much better to me. Just for my own ...
8 years, 7 months ago (2012-05-17 20:13:50 UTC) #4
flackr
http://codereview.chromium.org/10386189/diff/5001/grit/gather/chrome_html.py File grit/gather/chrome_html.py (right): http://codereview.chromium.org/10386189/diff/5001/grit/gather/chrome_html.py#newcode6 grit/gather/chrome_html.py:6: """Prepares a Chrome HTML file by inlining resources and ...
8 years, 7 months ago (2012-05-22 21:25:02 UTC) #5
Jói
http://codereview.chromium.org/10386189/diff/14002/grit/gather/chrome_html.py File grit/gather/chrome_html.py (right): http://codereview.chromium.org/10386189/diff/14002/grit/gather/chrome_html.py#newcode6 grit/gather/chrome_html.py:6: '''Prepares a Chrome HTML file by inlining resources and ...
8 years, 7 months ago (2012-05-23 10:22:46 UTC) #6
flackr
http://codereview.chromium.org/10386189/diff/14002/grit/gather/chrome_html.py File grit/gather/chrome_html.py (right): http://codereview.chromium.org/10386189/diff/14002/grit/gather/chrome_html.py#newcode6 grit/gather/chrome_html.py:6: '''Prepares a Chrome HTML file by inlining resources and ...
8 years, 7 months ago (2012-05-23 19:34:14 UTC) #7
Jói
LGTM, couple of small nits. http://codereview.chromium.org/10386189/diff/14002/grit/gather/chrome_html.py File grit/gather/chrome_html.py (right): http://codereview.chromium.org/10386189/diff/14002/grit/gather/chrome_html.py#newcode65 grit/gather/chrome_html.py:65: if filename.find(':') != -1: ...
8 years, 7 months ago (2012-05-23 22:59:54 UTC) #8
flackr
Also fixed the platform dependent issues after testing on Windows. chrome_html worked fine but the ...
8 years, 7 months ago (2012-05-24 17:52:06 UTC) #9
Jói
8 years, 7 months ago (2012-05-24 22:13:13 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld 408576698