Files.app: add rename operation to context menu of directory tree.
commit40b5b417c5ebcfd5e21132e361bf78658c0ef617
authoryawano <yawano@chromium.org>
Wed, 16 Sep 2015 11:51:05 +0000 (16 04:51 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 16 Sep 2015 11:51:32 +0000 (16 11:51 +0000)
tree5d3c1c90b517b88ddbdc96f85e5ba74391d8bc4d
parent62d476e1f1d46dd5480d8db5bce27a73fcb8ed0b
Files.app: add rename operation to context menu of directory tree.

Added DirectoryTreeNamingController for managing rename operation in
directory tree. Rename command starts rename operation with proper
controller (NamingController or DirectoryTreeNamingController) depending
on event target.

BUG=502171
TEST=browser_tests:DirectoryTreeContextMenu/FileManagerBrowserTest.Test/*

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

Cr-Commit-Position: refs/heads/master@{#349097}
12 files changed:
chrome/browser/chromeos/file_manager/file_manager_browsertest.cc
ui/file_manager/file_manager/common/js/util.js
ui/file_manager/file_manager/foreground/css/file_manager.css
ui/file_manager/file_manager/foreground/js/compiled_resources.gyp
ui/file_manager/file_manager/foreground/js/directory_model.js
ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js [new file with mode: 0644]
ui/file_manager/file_manager/foreground/js/file_manager.js
ui/file_manager/file_manager/foreground/js/file_manager_commands.js
ui/file_manager/file_manager/foreground/js/main_scripts.js
ui/file_manager/file_manager/foreground/js/naming_controller.js
ui/file_manager/file_manager/main.html
ui/file_manager/integration_tests/file_manager/directory_tree_context_menu.js