| 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 |
| 22 #include "chrome/grit/generated_resources.h" |
| 22 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
| 23 #include "grit/generated_resources.h" | |
| 24 #include "grit/ui_strings.h" | 24 #include "grit/ui_strings.h" |
| 25 #include "ui/aura/window_tree_host.h" | 25 #include "ui/aura/window_tree_host.h" |
| 26 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
| 27 | 27 |
| 28 // These conflict with base/tracked_objects.h, so need to come last. | 28 // These conflict with base/tracked_objects.h, so need to come last. |
| 29 #include <gdk/gdkx.h> | 29 #include <gdk/gdkx.h> |
| 30 #include <gtk/gtk.h> | 30 #include <gtk/gtk.h> |
| 31 | 31 |
| 32 using content::BrowserThread; | 32 using content::BrowserThread; |
| 33 | 33 |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 } | 501 } |
| 502 | 502 |
| 503 if (filenames_fp.empty()) { | 503 if (filenames_fp.empty()) { |
| 504 FileNotSelected(params); | 504 FileNotSelected(params); |
| 505 return; | 505 return; |
| 506 } | 506 } |
| 507 MultiFilesSelected(filenames_fp, params); | 507 MultiFilesSelected(filenames_fp, params); |
| 508 } | 508 } |
| 509 | 509 |
| 510 } // namespace libgtk2ui | 510 } // namespace libgtk2ui |
| OLD | NEW |