Since rev 167360, change focus handling for a11y, list view and tree view aren't active element when executing command from [Organized] menu.

This patch changes to use global variable |list| instead of document.activeElement if activeElement isn't tree view.

* list 'canExecute' event handler: Changed to call canExecuteForList().
* canExecuteForList(): Copied list 'canExecute' event handler and to use |list|.
* organizeButton 'canExecute' event handler: Update sort-command canExecute even if canEdit isn't changed.
* document 'command' event handler: Changed to call handleCommand()
* getSelectedBoomarkNodes(): Changed to handle activeElement is neither list or tree.
* handleCommand(): Changed to handle all commands rather than list and tree context menus.

BUG=165075

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172230 0039d316-1c4b-4281-b951-d872f2087c98
1 file changed