Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: chrome/browser/ui/libgtk2ui/select_file_dialog_impl_gtk2.cc

Issue 174803002: Move root_window.* to window_event_dispatcher.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/message_loop.h" 17 #include "base/message_loop/message_loop.h"
18 #include "base/strings/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/window_event_dispatcher.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"
29 #include "ui/shell_dialogs/select_file_dialog.h" 29 #include "ui/shell_dialogs/select_file_dialog.h"
30 30
31 namespace { 31 namespace {
32 32
33 const char kAuraTransientParent[] = "aura-transient-parent"; 33 const char kAuraTransientParent[] = "aura-transient-parent";
34 34
35 // Set |dialog| as transient for |parent|, which will keep it on top and center 35 // Set |dialog| as transient for |parent|, which will keep it on top and center
36 // it above |parent|. 36 // it above |parent|.
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 g_free(filename); 631 g_free(filename);
632 if (pixbuf) { 632 if (pixbuf) {
633 gtk_image_set_from_pixbuf(GTK_IMAGE(preview_), pixbuf); 633 gtk_image_set_from_pixbuf(GTK_IMAGE(preview_), pixbuf);
634 g_object_unref(pixbuf); 634 g_object_unref(pixbuf);
635 } 635 }
636 gtk_file_chooser_set_preview_widget_active(GTK_FILE_CHOOSER(chooser), 636 gtk_file_chooser_set_preview_widget_active(GTK_FILE_CHOOSER(chooser),
637 pixbuf ? TRUE : FALSE); 637 pixbuf ? TRUE : FALSE);
638 } 638 }
639 639
640 } // namespace libgtk2ui 640 } // namespace libgtk2ui
OLDNEW
« no previous file with comments | « chrome/browser/ui/find_bar/find_bar_host_browsertest.cc ('k') | chrome/browser/ui/libgtk2ui/select_file_dialog_impl_kde.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698