[Media Router] Add top-level js resources for Media Router UI.
commit791d473a3f19a11f3069efa1d7bfa31d1987292c
authorimcheng <imcheng@google.com>
Fri, 1 May 2015 23:07:01 +0000 (1 16:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 1 May 2015 23:08:41 +0000 (1 23:08 +0000)
tree256f66a9d6e48986a1c9f275cf301ded7b261f35
parent5a6aa4072aa6f6e63230425a142e9a250ab2867b
[Media Router] Add top-level js resources for Media Router UI.

The files added were:

media_router.js - contains handlers for UI events (e.g. user selected a
route) that manipulates the UI and uses the media_router_ui_interface.js
API.

media_router_ui_interface.js - API called by other js files, to
issue commands (e.g. create/close route) to C++ WebUI mesage handler.
Messages to manipulate the UI sent from C++ (e.g. update sink list) are
also received and handled here.

They are mostly empty implementations except for a few simple functions.

Added media_router.js and related js dependencies to media_router.html.

See crrev.com/1115713004 for corresponding C++ patch.

BUG=464222

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

Cr-Commit-Position: refs/heads/master@{#328010}
chrome/browser/media_router_resources.grdp
chrome/browser/resources/media_router/media_router.html
chrome/browser/resources/media_router/media_router.js [new file with mode: 0644]
chrome/browser/resources/media_router/media_router_ui_interface.js [new file with mode: 0644]
chrome/browser/ui/webui/media_router/media_router_resources_provider.cc