[mojo] Make HTML viewer load the blink resources from the generated pak file.
commitce9bcf3e3b788f8ded1cde7702bdc9cfd1f8859e
authorvivek.vg <vivek.vg@samsung.com>
Wed, 14 Jan 2015 06:42:36 +0000 (13 22:42 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 14 Jan 2015 06:43:18 +0000 (14 06:43 +0000)
tree4a5bb91c790fffe6c863646c56bd2ac83ed7d4bf
parentfe0826b972407b4bffcc85c8aebe9dfbcf37c656
[mojo] Make HTML viewer load the blink resources from the generated pak file.

Blink is about to make use of blink_resources.grd for the inline resources of user agent stylesheets.
This removes the dependency upon using make-file-arrays.py which embeds these resources as strings.
See part 1, 2 and 3.

Also the .rodata section of libblink_web (in component build mode) is reduced by ~33kb.

In this CL, the html viewer would implement the loadResource() method and use the DataPack to
load the required resources. The resources are generated from blink_resources.grd which has been
added as the deps.

Part 1: https://codereview.chromium.org/436843004/
Part 2: https://codereview.chromium.org/422023008
Part 3: https://codereview.chromium.org/573553002

BUG=312586

Review URL: https://codereview.chromium.org/827223002

Cr-Commit-Position: refs/heads/master@{#311420}
mojo/services/html_viewer/BUILD.gn
mojo/services/html_viewer/DEPS
mojo/services/html_viewer/blink_platform_impl.cc
mojo/services/html_viewer/blink_platform_impl.h
mojo/services/html_viewer/blink_resource_constants.h [new file with mode: 0644]
mojo/services/html_viewer/generate_blink_resource_map.py [new file with mode: 0644]