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

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

Issue 15704005: ui/shell_dialogs: Use base::string16 now that string16 was moved into base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 #include <set> 5 #include <set>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 ui::SelectFilePolicy* policy, 42 ui::SelectFilePolicy* policy,
43 base::nix::DesktopEnvironment desktop); 43 base::nix::DesktopEnvironment desktop);
44 44
45 protected: 45 protected:
46 virtual ~SelectFileDialogImplKDE(); 46 virtual ~SelectFileDialogImplKDE();
47 47
48 // SelectFileDialog implementation. 48 // SelectFileDialog implementation.
49 // |params| is user data we pass back via the Listener interface. 49 // |params| is user data we pass back via the Listener interface.
50 virtual void SelectFileImpl( 50 virtual void SelectFileImpl(
51 Type type, 51 Type type,
52 const string16& title, 52 const base::string16& title,
53 const base::FilePath& default_path, 53 const base::FilePath& default_path,
54 const FileTypeInfo* file_types, 54 const FileTypeInfo* file_types,
55 int file_type_index, 55 int file_type_index,
56 const base::FilePath::StringType& default_extension, 56 const base::FilePath::StringType& default_extension,
57 gfx::NativeWindow owning_window, 57 gfx::NativeWindow owning_window,
58 void* params) OVERRIDE; 58 void* params) OVERRIDE;
59 59
60 private: 60 private:
61 virtual bool HasMultipleFileTypeChoicesImpl() OVERRIDE; 61 virtual bool HasMultipleFileTypeChoicesImpl() OVERRIDE;
62 62
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 DCHECK(desktop_ == base::nix::DESKTOP_ENVIRONMENT_KDE3 || 163 DCHECK(desktop_ == base::nix::DESKTOP_ENVIRONMENT_KDE3 ||
164 desktop_ == base::nix::DESKTOP_ENVIRONMENT_KDE4); 164 desktop_ == base::nix::DESKTOP_ENVIRONMENT_KDE4);
165 } 165 }
166 166
167 SelectFileDialogImplKDE::~SelectFileDialogImplKDE() { 167 SelectFileDialogImplKDE::~SelectFileDialogImplKDE() {
168 } 168 }
169 169
170 // We ignore |default_extension|. 170 // We ignore |default_extension|.
171 void SelectFileDialogImplKDE::SelectFileImpl( 171 void SelectFileDialogImplKDE::SelectFileImpl(
172 Type type, 172 Type type,
173 const string16& title, 173 const base::string16& title,
174 const base::FilePath& default_path, 174 const base::FilePath& default_path,
175 const FileTypeInfo* file_types, 175 const FileTypeInfo* file_types,
176 int file_type_index, 176 int file_type_index,
177 const base::FilePath::StringType& default_extension, 177 const base::FilePath::StringType& default_extension,
178 gfx::NativeWindow owning_window, 178 gfx::NativeWindow owning_window,
179 void* params) { 179 void* params) {
180 type_ = type; 180 type_ = type;
181 // |owning_window| can be null when user right-clicks on a downloadable item 181 // |owning_window| can be null when user right-clicks on a downloadable item
182 // and chooses 'Open Link in New Tab' when 'Ask where to save each file 182 // and chooses 'Open Link in New Tab' when 'Ask where to save each file
183 // before downloading.' preference is turned on. (http://crbug.com/29213) 183 // before downloading.' preference is turned on. (http://crbug.com/29213)
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 // static 472 // static
473 SelectFileDialogImpl* SelectFileDialogImpl::NewSelectFileDialogImplKDE( 473 SelectFileDialogImpl* SelectFileDialogImpl::NewSelectFileDialogImplKDE(
474 Listener* listener, 474 Listener* listener,
475 ui::SelectFilePolicy* policy, 475 ui::SelectFilePolicy* policy,
476 base::nix::DesktopEnvironment desktop) { 476 base::nix::DesktopEnvironment desktop) {
477 return new SelectFileDialogImplKDE(listener, policy, desktop); 477 return new SelectFileDialogImplKDE(listener, policy, desktop);
478 } 478 }
479 479
480 } // namespace ui 480 } // namespace ui
481 481
OLDNEW
« no previous file with comments | « ui/shell_dialogs/gtk/select_file_dialog_impl_gtk.cc ('k') | ui/shell_dialogs/select_file_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698