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

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

Issue 12217101: Replace FilePath with base::FilePath in some more top level directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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) 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 #include "ui/shell_dialogs/gtk/select_file_dialog_impl.h" 7 #include "ui/shell_dialogs/gtk/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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 return SelectFileDialogImpl::NewSelectFileDialogImplKDE( 61 return SelectFileDialogImpl::NewSelectFileDialogImplKDE(
62 listener, policy, desktop); 62 listener, policy, desktop);
63 } 63 }
64 64
65 SelectFileDialogImpl::SelectFileDialogImpl(Listener* listener, 65 SelectFileDialogImpl::SelectFileDialogImpl(Listener* listener,
66 ui::SelectFilePolicy* policy) 66 ui::SelectFilePolicy* policy)
67 : SelectFileDialog(listener, policy), 67 : SelectFileDialog(listener, policy),
68 file_type_index_(0), 68 file_type_index_(0),
69 type_(SELECT_NONE) { 69 type_(SELECT_NONE) {
70 if (!last_saved_path_) { 70 if (!last_saved_path_) {
71 last_saved_path_ = new FilePath(); 71 last_saved_path_ = new base::FilePath();
72 last_opened_path_ = new FilePath(); 72 last_opened_path_ = new base::FilePath();
73 } 73 }
74 } 74 }
75 75
76 SelectFileDialogImpl::~SelectFileDialogImpl() { } 76 SelectFileDialogImpl::~SelectFileDialogImpl() { }
77 77
78 void SelectFileDialogImpl::ListenerDestroyed() { 78 void SelectFileDialogImpl::ListenerDestroyed() {
79 listener_ = NULL; 79 listener_ = NULL;
80 } 80 }
81 81
82 bool SelectFileDialogImpl::IsRunning(gfx::NativeWindow parent_window) const { 82 bool SelectFileDialogImpl::IsRunning(gfx::NativeWindow parent_window) const {
83 return parents_.find(parent_window) != parents_.end(); 83 return parents_.find(parent_window) != parents_.end();
84 } 84 }
85 85
86 bool SelectFileDialogImpl::CallDirectoryExistsOnUIThread(const FilePath& path) { 86 bool SelectFileDialogImpl::CallDirectoryExistsOnUIThread(
87 const base::FilePath& path) {
87 base::ThreadRestrictions::ScopedAllowIO allow_io; 88 base::ThreadRestrictions::ScopedAllowIO allow_io;
88 return file_util::DirectoryExists(path); 89 return file_util::DirectoryExists(path);
89 } 90 }
90 91
91 } // namespace ui 92 } // namespace ui
OLDNEW
« no previous file with comments | « ui/shell_dialogs/gtk/select_file_dialog_impl.h ('k') | ui/shell_dialogs/gtk/select_file_dialog_impl_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698