OLD | NEW |
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 implements common select dialog functionality between GTK and KDE. | 5 // This file implements common select dialog functionality between GTK and KDE. |
6 | 6 |
7 #include "chrome/browser/ui/libgtk2ui/select_file_dialog_impl.h" | 7 #include "chrome/browser/ui/libgtk2ui/select_file_dialog_impl.h" |
8 | 8 |
9 #include "base/environment.h" | 9 #include "base/environment.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 listener_ = NULL; | 83 listener_ = NULL; |
84 } | 84 } |
85 | 85 |
86 bool SelectFileDialogImpl::IsRunning(gfx::NativeWindow parent_window) const { | 86 bool SelectFileDialogImpl::IsRunning(gfx::NativeWindow parent_window) const { |
87 return parents_.find(parent_window) != parents_.end(); | 87 return parents_.find(parent_window) != parents_.end(); |
88 } | 88 } |
89 | 89 |
90 bool SelectFileDialogImpl::CallDirectoryExistsOnUIThread( | 90 bool SelectFileDialogImpl::CallDirectoryExistsOnUIThread( |
91 const base::FilePath& path) { | 91 const base::FilePath& path) { |
92 base::ThreadRestrictions::ScopedAllowIO allow_io; | 92 base::ThreadRestrictions::ScopedAllowIO allow_io; |
93 return file_util::DirectoryExists(path); | 93 return base::DirectoryExists(path); |
94 } | 94 } |
95 | 95 |
96 } // namespace libgtk2ui | 96 } // namespace libgtk2ui |
OLD | NEW |