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 <X11/Xlib.h> | 7 #include <X11/Xlib.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/nix/mime_util_xdg.h" | 13 #include "base/nix/mime_util_xdg.h" |
14 #include "base/nix/xdg_util.h" | 14 #include "base/nix/xdg_util.h" |
15 #include "base/process/launch.h" | 15 #include "base/process/launch.h" |
16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
19 #include "base/threading/thread_restrictions.h" | 19 #include "base/threading/thread_restrictions.h" |
20 #include "chrome/browser/ui/libgtk2ui/select_file_dialog_impl.h" | 20 #include "chrome/browser/ui/libgtk2ui/select_file_dialog_impl.h" |
21 | 21 #include "chrome/grit/generated_resources.h" |
22 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
23 #include "grit/generated_resources.h" | |
24 #include "ui/aura/window_tree_host.h" | 23 #include "ui/aura/window_tree_host.h" |
25 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
26 #include "ui/strings/grit/ui_strings.h" | 25 #include "ui/strings/grit/ui_strings.h" |
27 | 26 |
28 // These conflict with base/tracked_objects.h, so need to come last. | 27 // These conflict with base/tracked_objects.h, so need to come last. |
29 #include <gdk/gdkx.h> | 28 #include <gdk/gdkx.h> |
30 #include <gtk/gtk.h> | 29 #include <gtk/gtk.h> |
31 | 30 |
32 using content::BrowserThread; | 31 using content::BrowserThread; |
33 | 32 |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 } | 500 } |
502 | 501 |
503 if (filenames_fp.empty()) { | 502 if (filenames_fp.empty()) { |
504 FileNotSelected(params); | 503 FileNotSelected(params); |
505 return; | 504 return; |
506 } | 505 } |
507 MultiFilesSelected(filenames_fp, params); | 506 MultiFilesSelected(filenames_fp, params); |
508 } | 507 } |
509 | 508 |
510 } // namespace libgtk2ui | 509 } // namespace libgtk2ui |
OLD | NEW |