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

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

Issue 352393002: Be explicit about target type in platform_util::OpenItem() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 2 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file provides functions for opening an item (file or directory) using 5 // This file provides functions for opening an item (file or directory) using
6 // the file manager. 6 // the file manager.
7 7
8 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_OPEN_UTIL_H_ 8 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_OPEN_UTIL_H_
9 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_OPEN_UTIL_H_ 9 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_OPEN_UTIL_H_
10 10
11 class Profile; 11 class Profile;
12 12
13 namespace base { 13 namespace base {
14 class FilePath; 14 class FilePath;
15 } 15 }
16 16
17 namespace file_manager { 17 namespace file_manager {
18 namespace util { 18 namespace util {
19 19
20 // Opens the file manager for the freshly mounted removable drive specified 20 // Opens the file manager for the freshly mounted removable drive specified
21 // by |file_path|. 21 // by |file_path|.
22 // If there is another file manager instance open, this call does nothing. 22 // If there is another file manager instance open, this call does nothing.
23 void OpenRemovableDrive(Profile* profile, const base::FilePath& file_path); 23 void OpenRemovableDrive(Profile* profile, const base::FilePath& file_path);
24 24
25 // Opens an item (file or directory). If the target is a directory, the 25 // Opens a file using a file handler, a file browser handler, or the browser
26 // directory will be opened in the file manager. If the target is a file, the 26 // (open in a tab). The default handler has precedence over other handlers, if
27 // file will be opened using a file handler, a file browser handler, or the 27 // defined for the type of the target file.
28 // browser (open in a tab). The default handler has precedence over other 28 void OpenFile(Profile* profile, const base::FilePath& file_path);
29 // handlers, if defined for the type of the target file. 29
30 void OpenItem(Profile* profile, const base::FilePath& file_path); 30 // Open a directory in the file manager.
hashimoto 2014/09/26 06:12:44 nit: "Opens a folder"
asanka 2014/09/26 19:35:41 Done.
31 void OpenFolder(Profile* profile, const base::FilePath& file_path);
31 32
32 // Opens the file manager for the folder containing the item specified by 33 // Opens the file manager for the folder containing the item specified by
33 // |file_path|, with the item selected. 34 // |file_path|, with the item selected.
34 void ShowItemInFolder(Profile* profile, const base::FilePath& file_path); 35 void ShowItemInFolder(Profile* profile, const base::FilePath& file_path);
35 36
36 } // namespace util 37 } // namespace util
37 } // namespace file_manager 38 } // namespace file_manager
38 39
39 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_OPEN_UTIL_H_ 40 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_OPEN_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_manager/open_util.cc » ('j') | chrome/browser/chromeos/file_manager/open_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698