Warn on executing command on unsupported elements.
commit712add9076ac2552ff32ce9be6d78289989ca7af
authorfukino <fukino@chromium.org>
Wed, 10 Sep 2014 06:34:00 +0000 (9 23:34 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 10 Sep 2014 06:37:06 +0000 (10 06:37 +0000)
treef4d619344e0f295d5c6023be1c77ecf2b8ace845
parent06aaa078382af19a198b9669ffc4e6add92aa53d
Warn on executing command on unsupported elements.

Elements which don't have corresponding entries can be focused. (for example, when buttons are focused by <Tab>.)
When they are focused, canExecute of commands are called and warnings are emitted in CommandUtil.getCommandEntry().
This CL warn more specific (really suspicious) case. That is, a command executed on an element which doesn't have corresponding entry.

BUG=411790
TEST=manually tested

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

Cr-Commit-Position: refs/heads/master@{#294125}
ui/file_manager/file_manager/foreground/js/file_manager_commands.js