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

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

Issue 499163002: Use qualified path for grit/ui_strings.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
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 <gtk/gtk.h> 5 #include <gtk/gtk.h>
6 #include <map> 6 #include <map>
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 // Xlib defines RootWindow 10 // Xlib defines RootWindow
11 #undef RootWindow 11 #undef RootWindow
12 12
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.h"
16 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
17 #include "base/strings/sys_string_conversions.h" 17 #include "base/strings/sys_string_conversions.h"
18 #include "base/strings/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
19 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
20 #include "base/threading/thread_restrictions.h" 20 #include "base/threading/thread_restrictions.h"
21 #include "chrome/browser/ui/libgtk2ui/gtk2_signal.h" 21 #include "chrome/browser/ui/libgtk2ui/gtk2_signal.h"
22 #include "chrome/browser/ui/libgtk2ui/gtk2_util.h" 22 #include "chrome/browser/ui/libgtk2ui/gtk2_util.h"
23 #include "chrome/browser/ui/libgtk2ui/select_file_dialog_impl.h" 23 #include "chrome/browser/ui/libgtk2ui/select_file_dialog_impl.h"
24 #include "grit/ui_strings.h"
25 #include "ui/aura/window_observer.h" 24 #include "ui/aura/window_observer.h"
26 #include "ui/base/l10n/l10n_util.h" 25 #include "ui/base/l10n/l10n_util.h"
27 #include "ui/shell_dialogs/select_file_dialog.h" 26 #include "ui/shell_dialogs/select_file_dialog.h"
27 #include "ui/strings/grit/ui_strings.h"
28 28
29 namespace { 29 namespace {
30 30
31 // Makes sure that .jpg also shows .JPG. 31 // Makes sure that .jpg also shows .JPG.
32 gboolean FileFilterCaseInsensitive(const GtkFileFilterInfo* file_info, 32 gboolean FileFilterCaseInsensitive(const GtkFileFilterInfo* file_info,
33 std::string* file_extension) { 33 std::string* file_extension) {
34 return EndsWith(file_info->filename, *file_extension, false); 34 return EndsWith(file_info->filename, *file_extension, false);
35 } 35 }
36 36
37 // Deletes |data| when gtk_file_filter_add_custom() is done with it. 37 // Deletes |data| when gtk_file_filter_add_custom() is done with it.
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 g_free(filename); 622 g_free(filename);
623 if (pixbuf) { 623 if (pixbuf) {
624 gtk_image_set_from_pixbuf(GTK_IMAGE(preview_), pixbuf); 624 gtk_image_set_from_pixbuf(GTK_IMAGE(preview_), pixbuf);
625 g_object_unref(pixbuf); 625 g_object_unref(pixbuf);
626 } 626 }
627 gtk_file_chooser_set_preview_widget_active(GTK_FILE_CHOOSER(chooser), 627 gtk_file_chooser_set_preview_widget_active(GTK_FILE_CHOOSER(chooser),
628 pixbuf ? TRUE : FALSE); 628 pixbuf ? TRUE : FALSE);
629 } 629 }
630 630
631 } // namespace libgtk2ui 631 } // namespace libgtk2ui
OLDNEW
« no previous file with comments | « chrome/browser/ui/fullscreen/fullscreen_exit_bubble.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