Add chrome://site-engagement WebUI.
commitd59c103a2605ad0edf425d5b19a0e052566d80d2
authorcalamity <calamity@chromium.org>
Tue, 22 Sep 2015 06:35:53 +0000 (21 23:35 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 22 Sep 2015 06:36:56 +0000 (22 06:36 +0000)
treedca57615bd2be90e4d395c7b068ec15356c6b5a5
parentcd97c2f06d99e5e8a4d1b2616a7ce8735f1dee81
Add chrome://site-engagement WebUI.

This CL adds a debug WebUI built on Mojo for the site engagement at
chrome://site-engagment. The WebUI currently only exposes the profile's site
engagement scores but has the intent of becoming a more powerful engagement
debugging and control UI.

This CL also changes the mojo WebUI build setup to use a common root_gen_dir
which resources are specified relative to in .grd files.

BUG=524857
NOPRESUBMIT=true

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

Cr-Commit-Position: refs/heads/master@{#350116}
22 files changed:
chrome/browser/BUILD.gn
chrome/browser/browser_resources.grd
chrome/browser/engagement/site_engagement_service.cc
chrome/browser/engagement/site_engagement_service.h
chrome/browser/resources/engagement/OWNERS [new file with mode: 0644]
chrome/browser/resources/engagement/engagement_table.css [new file with mode: 0644]
chrome/browser/resources/engagement/engagement_table.html [new file with mode: 0644]
chrome/browser/resources/engagement/engagement_table.js [new file with mode: 0644]
chrome/browser/resources/engagement/site_engagement.html [new file with mode: 0644]
chrome/browser/resources/engagement/site_engagement.js [new file with mode: 0644]
chrome/browser/ui/BUILD.gn
chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc
chrome/browser/ui/webui/engagement/BUILD.gn [new file with mode: 0644]
chrome/browser/ui/webui/engagement/site_engagement.mojom [new file with mode: 0644]
chrome/browser/ui/webui/engagement/site_engagement_ui.cc [new file with mode: 0644]
chrome/browser/ui/webui/engagement/site_engagement_ui.h [new file with mode: 0644]
chrome/chrome_browser.gypi
chrome/chrome_browser_ui.gypi
chrome/chrome_resources.gyp
chrome/chrome_web_ui_mojo_bindings.gyp
chrome/common/url_constants.cc
chrome/common/url_constants.h