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

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

Issue 10820034: Remove redirection header and add "ui::" before all SelectFileDialog usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reuploading for different try run. Created 8 years, 4 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "chrome/browser/chromeos/gdata/gdata_operation_registry.h" 12 #include "chrome/browser/chromeos/gdata/gdata_operation_registry.h"
13 #include "chrome/browser/ui/select_file_dialog.h"
14 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 #include "ui/base/dialogs/select_file_dialog.h"
15 15
16 class Browser; 16 class Browser;
17 class Profile; 17 class Profile;
18 18
19 namespace base { 19 namespace base {
20 class ListValue; 20 class ListValue;
21 } 21 }
22 22
23 extern const char kFileBrowserDomain[]; 23 extern const char kFileBrowserDomain[];
24 extern const char kFileBrowserGalleryTaskId[]; 24 extern const char kFileBrowserGalleryTaskId[];
(...skipping 14 matching lines...) Expand all
39 const FilePath& full_file_path, const GURL& origin_url, GURL* url); 39 const FilePath& full_file_path, const GURL& origin_url, GURL* url);
40 40
41 // Converts |full_file_path| into |relative_path| within the external provider 41 // Converts |full_file_path| into |relative_path| within the external provider
42 // in File API. Returns false if |full_file_path| is not managed by the 42 // in File API. Returns false if |full_file_path| is not managed by the
43 // external filesystem provider. 43 // external filesystem provider.
44 bool ConvertFileToRelativeFileSystemPath(Profile* profile, 44 bool ConvertFileToRelativeFileSystemPath(Profile* profile,
45 const FilePath& full_file_path, FilePath* relative_path); 45 const FilePath& full_file_path, FilePath* relative_path);
46 46
47 // Gets base file browser url for. 47 // Gets base file browser url for.
48 GURL GetFileBrowserUrlWithParams( 48 GURL GetFileBrowserUrlWithParams(
49 SelectFileDialog::Type type, 49 ui::SelectFileDialog::Type type,
50 const string16& title, 50 const string16& title,
51 const FilePath& default_virtual_path, 51 const FilePath& default_virtual_path,
52 const SelectFileDialog::FileTypeInfo* file_types, 52 const ui::SelectFileDialog::FileTypeInfo* file_types,
53 int file_type_index, 53 int file_type_index,
54 const FilePath::StringType& default_extension); 54 const FilePath::StringType& default_extension);
55 55
56 // Get file dialog title string from its type. 56 // Get file dialog title string from its type.
57 string16 GetTitleFromType(SelectFileDialog::Type type); 57 string16 GetTitleFromType(ui::SelectFileDialog::Type type);
58 58
59 // Shows a freshly mounted removable drive. 59 // Shows a freshly mounted removable drive.
60 // If there is another File Browser instance open this call does nothing. 60 // If there is another File Browser instance open this call does nothing.
61 // The mount event will cause file_manager.js to show the new drive in 61 // The mount event will cause file_manager.js to show the new drive in
62 // the left panel, and that is all we want. 62 // the left panel, and that is all we want.
63 // If there is no File Browser open, this call opens a new one pointing to 63 // If there is no File Browser open, this call opens a new one pointing to
64 // |path|. In this case the tab will automatically close on |path| unmount. 64 // |path|. In this case the tab will automatically close on |path| unmount.
65 void ViewRemovableDrive(const FilePath& path); 65 void ViewRemovableDrive(const FilePath& path);
66 66
67 // Opens file browser UI in its own tab on file system location defined with 67 // Opens file browser UI in its own tab on file system location defined with
(...skipping 21 matching lines...) Expand all
89 bool ShouldBeOpenedWithPdfPlugin(Profile* profile, const char* file_extension); 89 bool ShouldBeOpenedWithPdfPlugin(Profile* profile, const char* file_extension);
90 90
91 // Converts the vector of progress status to their JSON (Value) form. 91 // Converts the vector of progress status to their JSON (Value) form.
92 base::ListValue* ProgressStatusVectorToListValue( 92 base::ListValue* ProgressStatusVectorToListValue(
93 Profile* profile, const GURL& origin_url, 93 Profile* profile, const GURL& origin_url,
94 const std::vector<gdata::GDataOperationRegistry::ProgressStatus>& list); 94 const std::vector<gdata::GDataOperationRegistry::ProgressStatus>& list);
95 95
96 } // namespace file_manager_util 96 } // namespace file_manager_util
97 97
98 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ 98 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698