More cr.ui.FocusRow simplifications
commitf9d4799b5b9c3f5c5694e24d3500a4bbe75950e9
authordbeam <dbeam@chromium.org>
Fri, 14 Aug 2015 03:20:07 +0000 (13 20:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 14 Aug 2015 03:20:42 +0000 (14 03:20 +0000)
tree1d4fb5bd4324e5b03f2be6bd6a0d174ecfda2a0f
parentf2a64e426b227a4c752be75034094b2a197288f1
More cr.ui.FocusRow simplifications

cr.ui.FocusRow no longer inherits from HTMLDivElement. Instead, it takes
a |root| argument in its constructor and uses |this.root| more.

Before there was lots of type variance.  Something would start as a
<div>, then get decorated, but only work because cr.ui.FocusGrid derives
a <div>.  This is clearer, more future-proof solution.

BUG=425626,518053
R=hcarmona@chromium.org,rdevlin.cronin@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#343333}
12 files changed:
chrome/browser/resources/downloads/focus_row.js
chrome/browser/resources/downloads/manager.js
chrome/browser/resources/extensions/compiled_resources.gyp
chrome/browser/resources/extensions/extension_error.js
chrome/browser/resources/extensions/extension_list.js
chrome/browser/resources/extensions/extensions.html
chrome/browser/resources/extensions/extensions.js
chrome/browser/resources/extensions/focus_row.js [new file with mode: 0644]
chrome/browser/resources/history/history.js
chrome/browser/resources/history/other_devices.js
ui/webui/resources/js/cr/ui/focus_grid.js
ui/webui/resources/js/cr/ui/focus_row.js