Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(536)

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/open_util.h

Issue 23945002: file_manager: Move non-binding code to c/b/chromeos/file_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // This file provides functions for opening an item (file or directory) using
6 // the file manager.
7
8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_OPEN_UTIL_H_
9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_OPEN_UTIL_H_
10
11 namespace base {
12 class FilePath;
13 }
14
15 namespace file_manager {
16 namespace util {
17
18 // Opens the file manager for the freshly mounted removable drive specified
19 // by |file_path|.
20 // If there is another file manager instance open, this call does nothing.
21 // The mount event will cause the file manager to show the new drive in
22 // the left panel.
23 // If there is no file manager open, this call opens a new one pointing to
24 // |file_path|. In this case the tab will automatically close on |file_path|
25 // unmount.
26 void OpenRemovableDrive(const base::FilePath& file_path);
27
28 // Opens an item (file or directory). If the target is a directory, the
29 // directory will be opened in the file manager. If the target is a file, the
30 // file will be opened using a file handler, a file browser handler, or the
31 // browser (open in a tab). The default handler has precedence over other
32 // handlers, if defined for the type of the target file.
33 void OpenItem(const base::FilePath& file_path);
34
35 // Opens the file manager for the folder containing the item specified by
36 // |file_path|, with the item selected.
37 void ShowItemInFolder(const base::FilePath& file_path);
38
39 } // namespace util
40 } // namespace file_manager
41
42 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_OPEN_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698