Add a user agent stylesheet for extension options pages
commit685c341afc41e774ab12d38208fc1ad3fb1ffd6d
authorericzeng <ericzeng@chromium.org>
Thu, 11 Sep 2014 23:25:22 +0000 (11 16:25 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 12 Sep 2014 00:19:13 +0000 (12 00:19 +0000)
treedd643cfa38e4702e5817f200571a1ff4f923b9b8
parentc98044b806c3003c69d3d6b96286c670fe877648
Add a user agent stylesheet for extension options pages

Apply WebUI styles to extension options pages that opt into using them
through a user agent stylesheet. The styles are copied from widgets.css
and chrome_shared.css in ui/webui/resources/css/ - this is intentional
so that WebUI changes won't break extensions.

The extension.css stylesheet will only be applied to extensions that
opt in using the "options_ui.chrome_style" manifest entry, and it will
only affect the options page specified in the manifest. The font
stylesheet for extensions have been moved to extension_fonts.css, and
are still applied to every extension page.

BUG=408271

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

Cr-Commit-Position: refs/heads/master@{#294491}
extensions/extensions.gyp
extensions/renderer/BUILD.gn
extensions/renderer/dispatcher.cc
extensions/renderer/resources/extension.css
extensions/renderer/resources/extension_fonts.css [copied from extensions/renderer/resources/extension.css with 74% similarity]
extensions/renderer/resources/extensions_renderer_resources.grd
tools/gritsettings/resource_ids