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

Side by Side Diff: ui/shell_dialogs/select_file_dialog_win.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
« no previous file with comments | « ui/shell_dialogs/select_file_dialog_mac.mm ('k') | ui/views/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/shell_dialogs/select_file_dialog_win.h" 5 #include "ui/shell_dialogs/select_file_dialog_win.h"
6 6
7 #include <shlobj.h> 7 #include <shlobj.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <set> 10 #include <set>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/file_util.h" 13 #include "base/file_util.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/i18n/case_conversion.h" 15 #include "base/i18n/case_conversion.h"
16 #include "base/message_loop/message_loop.h" 16 #include "base/message_loop/message_loop.h"
17 #include "base/message_loop/message_loop_proxy.h" 17 #include "base/message_loop/message_loop_proxy.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/tuple.h" 20 #include "base/tuple.h"
21 #include "base/win/registry.h" 21 #include "base/win/registry.h"
22 #include "base/win/scoped_comptr.h" 22 #include "base/win/scoped_comptr.h"
23 #include "base/win/shortcut.h" 23 #include "base/win/shortcut.h"
24 #include "grit/ui_strings.h"
25 #include "ui/aura/window.h" 24 #include "ui/aura/window.h"
26 #include "ui/aura/window_event_dispatcher.h" 25 #include "ui/aura/window_event_dispatcher.h"
27 #include "ui/aura/window_tree_host.h" 26 #include "ui/aura/window_tree_host.h"
28 #include "ui/base/l10n/l10n_util.h" 27 #include "ui/base/l10n/l10n_util.h"
29 #include "ui/base/win/open_file_name_win.h" 28 #include "ui/base/win/open_file_name_win.h"
30 #include "ui/gfx/native_widget_types.h" 29 #include "ui/gfx/native_widget_types.h"
31 #include "ui/shell_dialogs/base_shell_dialog_win.h" 30 #include "ui/shell_dialogs/base_shell_dialog_win.h"
32 #include "ui/shell_dialogs/shell_dialogs_delegate.h" 31 #include "ui/shell_dialogs/shell_dialogs_delegate.h"
32 #include "ui/strings/grit/ui_strings.h"
33 #include "win8/viewer/metro_viewer_process_host.h" 33 #include "win8/viewer/metro_viewer_process_host.h"
34 34
35 namespace { 35 namespace {
36 36
37 bool CallBuiltinGetOpenFileName(OPENFILENAME* ofn) { 37 bool CallBuiltinGetOpenFileName(OPENFILENAME* ofn) {
38 return ::GetOpenFileName(ofn) == TRUE; 38 return ::GetOpenFileName(ofn) == TRUE;
39 } 39 }
40 40
41 bool CallBuiltinGetSaveFileName(OPENFILENAME* ofn) { 41 bool CallBuiltinGetSaveFileName(OPENFILENAME* ofn) {
42 return ::GetSaveFileName(ofn) == TRUE; 42 return ::GetSaveFileName(ofn) == TRUE;
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 SelectFileDialog* CreateDefaultWinSelectFileDialog( 768 SelectFileDialog* CreateDefaultWinSelectFileDialog(
769 SelectFileDialog::Listener* listener, 769 SelectFileDialog::Listener* listener,
770 SelectFilePolicy* policy) { 770 SelectFilePolicy* policy) {
771 return CreateWinSelectFileDialog(listener, 771 return CreateWinSelectFileDialog(listener,
772 policy, 772 policy,
773 base::Bind(&CallBuiltinGetOpenFileName), 773 base::Bind(&CallBuiltinGetOpenFileName),
774 base::Bind(&CallBuiltinGetSaveFileName)); 774 base::Bind(&CallBuiltinGetSaveFileName));
775 } 775 }
776 776
777 } // namespace ui 777 } // namespace ui
OLDNEW
« no previous file with comments | « ui/shell_dialogs/select_file_dialog_mac.mm ('k') | ui/views/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698