| 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 <gdk/gdk.h> | 5 #include <gdk/gdk.h> |
| 6 #include <gdk/gdkx.h> | 6 #include <gdk/gdkx.h> |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 // Xlib defines RootWindow | 12 // Xlib defines RootWindow |
| 13 #undef RootWindow | 13 #undef RootWindow |
| 14 | 14 |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
| 18 #include "base/string_util.h" | 18 #include "base/strings/string_util.h" |
| 19 #include "base/strings/sys_string_conversions.h" | 19 #include "base/strings/sys_string_conversions.h" |
| 20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
| 21 #include "base/threading/thread.h" | 21 #include "base/threading/thread.h" |
| 22 #include "base/threading/thread_restrictions.h" | 22 #include "base/threading/thread_restrictions.h" |
| 23 #include "chrome/browser/ui/libgtk2ui/gtk2_signal.h" | 23 #include "chrome/browser/ui/libgtk2ui/gtk2_signal.h" |
| 24 #include "chrome/browser/ui/libgtk2ui/select_file_dialog_impl.h" | 24 #include "chrome/browser/ui/libgtk2ui/select_file_dialog_impl.h" |
| 25 #include "grit/ui_strings.h" | 25 #include "grit/ui_strings.h" |
| 26 #include "ui/aura/root_window.h" | 26 #include "ui/aura/root_window.h" |
| 27 #include "ui/aura/window_observer.h" | 27 #include "ui/aura/window_observer.h" |
| 28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 g_free(filename); | 607 g_free(filename); |
| 608 if (pixbuf) { | 608 if (pixbuf) { |
| 609 gtk_image_set_from_pixbuf(GTK_IMAGE(preview_), pixbuf); | 609 gtk_image_set_from_pixbuf(GTK_IMAGE(preview_), pixbuf); |
| 610 g_object_unref(pixbuf); | 610 g_object_unref(pixbuf); |
| 611 } | 611 } |
| 612 gtk_file_chooser_set_preview_widget_active(GTK_FILE_CHOOSER(chooser), | 612 gtk_file_chooser_set_preview_widget_active(GTK_FILE_CHOOSER(chooser), |
| 613 pixbuf ? TRUE : FALSE); | 613 pixbuf ? TRUE : FALSE); |
| 614 } | 614 } |
| 615 | 615 |
| 616 } // namespace libgtk2ui | 616 } // namespace libgtk2ui |
| OLD | NEW |