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

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

Issue 6865033: Made full tab file browser to open automatically when a new disk device is properly mounted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_EXTENSIONS_FILE_MANAGER_UTIL_H_
6 #define CHROME_BROWSER_EXTENSIONS_FILE_MANAGER_UTIL_H_
7 #pragma once
8
9 #include "base/file_path.h"
10 #include "chrome/browser/ui/shell_dialogs.h"
11 #include "googleurl/src/gurl.h"
12
13 class Profile;
14
15 // Helper class for wiring file browser component extension with the rest of UI.
16 class FileManagerUtil {
17 public:
18 // Gets base file browser url for.
19 static GURL GetFileBrowserUrlWithParams(
20 SelectFileDialog::Type type,
21 const string16& title,
22 const FilePath& default_path,
23 const SelectFileDialog::FileTypeInfo* file_types,
24 int file_type_index,
25 const FilePath::StringType& default_extension);
26
27 // Opens file browser UI in its own tab on file system location defined with
28 // |default_path|.
29 static void ShowFullTabUrl(Profile* profile,
30 const FilePath& default_path);
31
32 private:
33 FileManagerUtil() {}
34 // Helper to convert numeric dialog type to a string.
35 static std::string GetDialogTypeAsString(SelectFileDialog::Type dialog_type);
36 // Gets base file browser url.
37 static GURL GetFileBrowserUrl();
38 // Help to convert potential dialog arguments into json.
39 static std::string GetArgumentsJson(
40 SelectFileDialog::Type type,
41 const string16& title,
42 const FilePath& default_path,
43 const SelectFileDialog::FileTypeInfo* file_types,
44 int file_type_index,
45 const FilePath::StringType& default_extension);
46
47 DISALLOW_COPY_AND_ASSIGN(FileManagerUtil);
48 };
49
50 #endif // CHROME_BROWSER_EXTENSIONS_FILE_MANAGER_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/file_browser_event_router.cc ('k') | chrome/browser/extensions/file_manager_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698