| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <X11/Xlib.h> | 6 #include <X11/Xlib.h> |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/ptr_util.h" | 16 #include "base/memory/ptr_util.h" |
| 17 #include "base/nix/mime_util_xdg.h" | 17 #include "base/nix/mime_util_xdg.h" |
| 18 #include "base/nix/xdg_util.h" | 18 #include "base/nix/xdg_util.h" |
| 19 #include "base/process/launch.h" | 19 #include "base/process/launch.h" |
| 20 #include "base/strings/string_number_conversions.h" | 20 #include "base/strings/string_number_conversions.h" |
| 21 #include "base/strings/string_split.h" | 21 #include "base/strings/string_split.h" |
| 22 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
| 23 #include "base/strings/utf_string_conversions.h" | 23 #include "base/strings/utf_string_conversions.h" |
| 24 #include "base/threading/thread_restrictions.h" | 24 #include "base/threading/thread_restrictions.h" |
| 25 #include "chrome/browser/ui/libgtkui/select_file_dialog_impl.h" | 25 #include "chrome/browser/ui/libgtkui/select_file_dialog_impl.h" |
| 26 #include "chrome/grit/generated_resources.h" | |
| 27 #include "content/public/browser/browser_thread.h" | 26 #include "content/public/browser/browser_thread.h" |
| 28 #include "ui/aura/window_tree_host.h" | 27 #include "ui/aura/window_tree_host.h" |
| 29 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
| 30 #include "ui/strings/grit/ui_strings.h" | 29 #include "ui/strings/grit/ui_strings.h" |
| 31 | 30 |
| 32 // These conflict with base/tracked_objects.h, so need to come last. | 31 // These conflict with base/tracked_objects.h, so need to come last. |
| 33 #include <gdk/gdkx.h> | 32 #include <gdk/gdkx.h> |
| 34 #include <gtk/gtk.h> | 33 #include <gtk/gtk.h> |
| 35 | 34 |
| 36 using content::BrowserThread; | 35 using content::BrowserThread; |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 } | 518 } |
| 520 | 519 |
| 521 if (filenames_fp.empty()) { | 520 if (filenames_fp.empty()) { |
| 522 FileNotSelected(params); | 521 FileNotSelected(params); |
| 523 return; | 522 return; |
| 524 } | 523 } |
| 525 MultiFilesSelected(filenames_fp, params); | 524 MultiFilesSelected(filenames_fp, params); |
| 526 } | 525 } |
| 527 | 526 |
| 528 } // namespace libgtkui | 527 } // namespace libgtkui |
| OLD | NEW |