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 #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/launch.h" | 13 #include "base/process/launch.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "base/threading/thread_restrictions.h" | 17 #include "base/threading/thread_restrictions.h" |
18 #include "chrome/browser/ui/libgtk2ui/select_file_dialog_impl.h" | 18 #include "chrome/browser/ui/libgtk2ui/select_file_dialog_impl.h" |
19 | 19 |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
22 #include "grit/ui_strings.h" | 22 #include "grit/ui_strings.h" |
23 #include "ui/aura/root_window.h" | 23 #include "ui/aura/window_event_dispatcher.h" |
24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
25 | 25 |
26 // These conflict with base/tracked_objects.h, so need to come last. | 26 // These conflict with base/tracked_objects.h, so need to come last. |
27 #include <gdk/gdkx.h> | 27 #include <gdk/gdkx.h> |
28 #include <gtk/gtk.h> | 28 #include <gtk/gtk.h> |
29 | 29 |
30 using content::BrowserThread; | 30 using content::BrowserThread; |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 } | 473 } |
474 | 474 |
475 if (filenames_fp.empty()) { | 475 if (filenames_fp.empty()) { |
476 FileNotSelected(params); | 476 FileNotSelected(params); |
477 return; | 477 return; |
478 } | 478 } |
479 MultiFilesSelected(filenames_fp, params); | 479 MultiFilesSelected(filenames_fp, params); |
480 } | 480 } |
481 | 481 |
482 } // namespace libgtk2ui | 482 } // namespace libgtk2ui |
OLD | NEW |