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

Side by Side Diff: ui/shell_dialogs/select_file_dialog_win.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
« no previous file with comments | « ui/keyboard/keyboard_util.cc ('k') | ui/snapshot/snapshot_aura.cc » ('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 <windows.h> 7 #include <windows.h>
8 #include <commdlg.h> 8 #include <commdlg.h>
9 #include <shlobj.h> 9 #include <shlobj.h>
10 10
(...skipping 15 matching lines...) Expand all
26 #include "base/win/shortcut.h" 26 #include "base/win/shortcut.h"
27 #include "base/win/windows_version.h" 27 #include "base/win/windows_version.h"
28 #include "grit/ui_strings.h" 28 #include "grit/ui_strings.h"
29 #include "ui/base/l10n/l10n_util.h" 29 #include "ui/base/l10n/l10n_util.h"
30 #include "ui/gfx/native_widget_types.h" 30 #include "ui/gfx/native_widget_types.h"
31 #include "ui/shell_dialogs/base_shell_dialog_win.h" 31 #include "ui/shell_dialogs/base_shell_dialog_win.h"
32 #include "ui/shell_dialogs/shell_dialogs_delegate.h" 32 #include "ui/shell_dialogs/shell_dialogs_delegate.h"
33 33
34 #if defined(USE_AURA) 34 #if defined(USE_AURA)
35 #include "ui/aura/remote_window_tree_host_win.h" 35 #include "ui/aura/remote_window_tree_host_win.h"
36 #include "ui/aura/root_window.h"
37 #include "ui/aura/window.h" 36 #include "ui/aura/window.h"
37 #include "ui/aura/window_event_dispatcher.h"
38 #endif 38 #endif
39 39
40 namespace { 40 namespace {
41 41
42 // Given |extension|, if it's not empty, then remove the leading dot. 42 // Given |extension|, if it's not empty, then remove the leading dot.
43 std::wstring GetExtensionWithoutLeadingDot(const std::wstring& extension) { 43 std::wstring GetExtensionWithoutLeadingDot(const std::wstring& extension) {
44 DCHECK(extension.empty() || extension[0] == L'.'); 44 DCHECK(extension.empty() || extension[0] == L'.');
45 return extension.empty() ? extension : extension.substr(1); 45 return extension.empty() ? extension : extension.substr(1);
46 } 46 }
47 47
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 return return_value; 949 return return_value;
950 } 950 }
951 951
952 SelectFileDialog* CreateWinSelectFileDialog( 952 SelectFileDialog* CreateWinSelectFileDialog(
953 SelectFileDialog::Listener* listener, 953 SelectFileDialog::Listener* listener,
954 SelectFilePolicy* policy) { 954 SelectFilePolicy* policy) {
955 return new SelectFileDialogImpl(listener, policy); 955 return new SelectFileDialogImpl(listener, policy);
956 } 956 }
957 957
958 } // namespace ui 958 } // namespace ui
OLDNEW
« no previous file with comments | « ui/keyboard/keyboard_util.cc ('k') | ui/snapshot/snapshot_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698