• Jérémie Boulic's avatar
    Files app: Generate JS module for foreground page · 6b02fa35
    Jérémie Boulic authored
    Convert JS files for directory_model.js and dependencies.
    
    In //ui/file_manager/file_manager/foreground/js/:
    - constants.js
    - directory_contents.js
    - directory_contents_unittest.m.js
    - directory_model.js
    - file_list_model.js
    - file_list_model_unittest.m.js
    - file_watcher.js
    
    In //ui/file_manager/file_manager/foreground/js/ui/:
    - file_list_selection_model.js
    - file_list_selection_model_unittest.m.js
    
    In //ui/file_manager/externs/:
    - entries_changed_event.js
    
    To avoid the circular dependency where directory_contents.js depends on
    directoryModel and directory_model.js depends on DirectoryContents, the
    constant `DirectoryModel.CROSTINI_CONNECT_ERR` in
    //u/f/f/f/j/directory_model.js has been moved to
    `constants.CROSTINI_CONNECT_ERR` in //u/f/f/f/j/constants.js.
    
    Remove `DriveMetadataSearchContentScanner.SearchType`, which is a copy
    of chrome.fileManagerPrivate.SearchType. This makes mocking easier in
    directory_contents_unittest.m.js.
    
    Bug: 1133186
    Change-Id: I819da19a9f9c0ab380e4c35c7d6ca3672b2b3556
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2610413
    Commit-Queue: Jeremie Boulic <jboulic@chromium.org>
    Reviewed-by: default avatarLuciano Pacheco <lucmult@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#840482}
    6b02fa35
entries_changed_event.js 676 Bytes