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

Side by Side Diff: chrome/browser/ui/gtk/select_file_dialog_impl_kde.cc

Issue 10667026: Start consolidating cross-port file selection code into ui/base/dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
OLDNEW
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 #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"
11 #include "base/nix/mime_util_xdg.h" 11 #include "base/nix/mime_util_xdg.h"
12 #include "base/nix/xdg_util.h" 12 #include "base/nix/xdg_util.h"
13 #include "base/process_util.h" 13 #include "base/process_util.h"
14 #include "base/string_number_conversions.h" 14 #include "base/string_number_conversions.h"
15 #include "base/string_util.h" 15 #include "base/string_util.h"
16 #include "base/threading/thread_restrictions.h" 16 #include "base/threading/thread_restrictions.h"
17 #include "base/utf_string_conversions.h" 17 #include "base/utf_string_conversions.h"
18 #include "chrome/browser/ui/gtk/select_file_dialog_impl.h" 18 #include "chrome/browser/ui/gtk/select_file_dialog_impl.h"
19
20 // TODO(erg): Move all of this into WorkerPool.
19 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
20 #include "grit/generated_resources.h" 22 #include "grit/generated_resources.h"
21 #include "ui/base/l10n/l10n_util.h" 23 #include "ui/base/l10n/l10n_util.h"
22 24
23 // These conflict with base/tracked_objects.h, so need to come last. 25 // These conflict with base/tracked_objects.h, so need to come last.
24 #include <gdk/gdkx.h> 26 #include <gdk/gdkx.h>
25 #include <gtk/gtk.h> 27 #include <gtk/gtk.h>
26 28
27 using content::BrowserThread; 29 using content::BrowserThread;
28 30
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 continue; 454 continue;
453 filenames_fp.push_back(path); 455 filenames_fp.push_back(path);
454 } 456 }
455 457
456 if (filenames_fp.empty()) { 458 if (filenames_fp.empty()) {
457 FileNotSelected(params); 459 FileNotSelected(params);
458 return; 460 return;
459 } 461 }
460 MultiFilesSelected(filenames_fp, params); 462 MultiFilesSelected(filenames_fp, params);
461 } 463 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698