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

Side by Side Diff: ui/shell_dialogs/gtk/select_file_dialog_impl.h

Issue 19052005: Move PathIsWritable, DirectoryExists, ContentsEqual, and TextContentsEqual to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « tools/android/md5sum/md5sum.cc ('k') | ui/shell_dialogs/gtk/select_file_dialog_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 implements common select dialog functionality between GTK and KDE. 5 // This file implements common select dialog functionality between GTK and KDE.
6 6
7 #ifndef UI_SHELL_DIALOGS_GTK_SELECT_FILE_DIALOG_IMPL_H_ 7 #ifndef UI_SHELL_DIALOGS_GTK_SELECT_FILE_DIALOG_IMPL_H_
8 #define UI_SHELL_DIALOGS_GTK_SELECT_FILE_DIALOG_IMPL_H_ 8 #define UI_SHELL_DIALOGS_GTK_SELECT_FILE_DIALOG_IMPL_H_
9 9
10 #include <set> 10 #include <set>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual void SelectFileImpl( 46 virtual void SelectFileImpl(
47 Type type, 47 Type type,
48 const base::string16& title, 48 const base::string16& title,
49 const base::FilePath& default_path, 49 const base::FilePath& default_path,
50 const FileTypeInfo* file_types, 50 const FileTypeInfo* file_types,
51 int file_type_index, 51 int file_type_index,
52 const base::FilePath::StringType& default_extension, 52 const base::FilePath::StringType& default_extension,
53 gfx::NativeWindow owning_window, 53 gfx::NativeWindow owning_window,
54 void* params) = 0; 54 void* params) = 0;
55 55
56 // Wrapper for file_util::DirectoryExists() that allow access on the UI 56 // Wrapper for base::DirectoryExists() that allow access on the UI
57 // thread. Use this only in the file dialog functions, where it's ok 57 // thread. Use this only in the file dialog functions, where it's ok
58 // because the file dialog has to do many stats anyway. One more won't 58 // because the file dialog has to do many stats anyway. One more won't
59 // hurt too badly and it's likely already cached. 59 // hurt too badly and it's likely already cached.
60 bool CallDirectoryExistsOnUIThread(const base::FilePath& path); 60 bool CallDirectoryExistsOnUIThread(const base::FilePath& path);
61 61
62 // The file filters. 62 // The file filters.
63 FileTypeInfo file_types_; 63 FileTypeInfo file_types_;
64 64
65 // The index of the default selected file filter. 65 // The index of the default selected file filter.
66 // Note: This starts from 1, not 0. 66 // Note: This starts from 1, not 0.
(...skipping 13 matching lines...) Expand all
80 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl); 80 DISALLOW_COPY_AND_ASSIGN(SelectFileDialogImpl);
81 }; 81 };
82 82
83 SelectFileDialog* CreateLinuxSelectFileDialog( 83 SelectFileDialog* CreateLinuxSelectFileDialog(
84 SelectFileDialog::Listener* listener, 84 SelectFileDialog::Listener* listener,
85 SelectFilePolicy* policy); 85 SelectFilePolicy* policy);
86 86
87 } // namespace ui 87 } // namespace ui
88 88
89 #endif // UI_SHELL_DIALOGS_GTK_SELECT_FILE_DIALOG_IMPL_H_ 89 #endif // UI_SHELL_DIALOGS_GTK_SELECT_FILE_DIALOG_IMPL_H_
OLDNEW
« no previous file with comments | « tools/android/md5sum/md5sum.cc ('k') | ui/shell_dialogs/gtk/select_file_dialog_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698