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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager_util.h

Issue 10094012: Made File Manager respect the user-selected launch type (tab/pinned tab/window/fullscreen) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 SelectFileDialog::Type type, 47 SelectFileDialog::Type type,
48 const string16& title, 48 const string16& title,
49 const FilePath& default_virtual_path, 49 const FilePath& default_virtual_path,
50 const SelectFileDialog::FileTypeInfo* file_types, 50 const SelectFileDialog::FileTypeInfo* file_types,
51 int file_type_index, 51 int file_type_index,
52 const FilePath::StringType& default_extension); 52 const FilePath::StringType& default_extension);
53 53
54 // Get file dialog title string from its type. 54 // Get file dialog title string from its type.
55 string16 GetTitleFromType(SelectFileDialog::Type type); 55 string16 GetTitleFromType(SelectFileDialog::Type type);
56 56
57 // Opens file browser UI on its own tab on drive location defined with 57 // Opens file browser on its own tab or window. Drive location defined with
58 // |dir|. Automatically closes this tab on |dir| unmount. 58 // |path|. Automatically closes this tab on |path| unmount.
59 void ViewRemovableDrive(const FilePath& dir); 59 void ViewRemovableDrive(const FilePath& path);
60 60
61 // Opens file browser UI in its own tab on file system location defined with 61 // Opens file browser UI in its own tab on file system location defined with
62 // |dir|. 62 // |dir|.
63 void ViewFolder(const FilePath& dir); 63 void ViewFolder(const FilePath& dir);
64 64
65 // Opens file in the browser. 65 // Opens file with the default File Browser handler.
66 // TODO(kaznacheev): remove the obsolete enqueue parameter. 66 void ViewFile(const FilePath& path);
67 void ViewFile(const FilePath& full_path, bool enqueue); 67
68 // Opens file browser on the folder containing the file, with the file selected.
69 void ShowFileInFolder(const FilePath& path);
68 70
69 // Tries to open |file| directly in the browser. Returns false if the browser 71 // Tries to open |file| directly in the browser. Returns false if the browser
70 // can't directly handle this type of file. 72 // can't directly handle this type of file.
71 bool TryViewingFile(const FilePath& file); 73 bool TryViewingFile(Profile* profile, const FilePath& path);
72 74
73 void InstallCRX(Profile* profile, const FilePath& full_path); 75 void InstallCRX(Profile* profile, const FilePath& path);
74 76
75 bool ShouldBeOpenedWithPdfPlugin(const char* file_extension); 77 bool ShouldBeOpenedWithPdfPlugin(Profile* profile, const char* file_extension);
76 78
77 // Converts the vector of progress status to their JSON (Value) form. 79 // Converts the vector of progress status to their JSON (Value) form.
78 base::ListValue* ProgressStatusVectorToListValue( 80 base::ListValue* ProgressStatusVectorToListValue(
79 Profile* profile, const GURL& origin_url, 81 Profile* profile, const GURL& origin_url,
80 const std::vector<gdata::GDataOperationRegistry::ProgressStatus>& list); 82 const std::vector<gdata::GDataOperationRegistry::ProgressStatus>& list);
81 83
82 } // namespace file_manager_util 84 } // namespace file_manager_util
83 85
84 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ 86 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698