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

Side by Side Diff: chrome/browser/ui/views/shell_dialogs_win.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | « chrome/browser/ui/views/sad_tab_view.cc ('k') | chrome/browser/ui/views/status_bubble_views.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/shell_dialogs.h" 5 #include "chrome/browser/shell_dialogs.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
11 #include <algorithm> 11 #include <algorithm>
12 #include <set> 12 #include <set>
13 13
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/file_util.h" 15 #include "base/file_util.h"
16 #include "base/message_loop.h" 16 #include "base/message_loop.h"
17 #include "base/scoped_comptr_win.h" 17 #include "base/scoped_comptr_win.h"
18 #include "base/string_split.h" 18 #include "base/string_split.h"
19 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
20 #include "base/utf_string_conversions.h" 20 #include "base/utf_string_conversions.h"
21 #include "base/win/registry.h" 21 #include "base/win/registry.h"
22 #include "base/win/windows_version.h" 22 #include "base/win/windows_version.h"
23 #include "chrome/browser/browser_thread.h" 23 #include "chrome/browser/browser_thread.h"
24 #include "gfx/font.h"
25 #include "grit/app_strings.h" 24 #include "grit/app_strings.h"
26 #include "grit/generated_resources.h" 25 #include "grit/generated_resources.h"
27 #include "ui/base/l10n/l10n_util.h" 26 #include "ui/base/l10n/l10n_util.h"
27 #include "ui/gfx/font.h"
28 28
29 // This function takes the output of a SaveAs dialog: a filename, a filter and 29 // This function takes the output of a SaveAs dialog: a filename, a filter and
30 // the extension originally suggested to the user (shown in the dialog box) and 30 // the extension originally suggested to the user (shown in the dialog box) and
31 // returns back the filename with the appropriate extension tacked on. If the 31 // returns back the filename with the appropriate extension tacked on. If the
32 // user requests an unknown extension and is not using the 'All files' filter, 32 // user requests an unknown extension and is not using the 'All files' filter,
33 // the suggested extension will be appended, otherwise we will leave the 33 // the suggested extension will be appended, otherwise we will leave the
34 // filename unmodified. |filename| should contain the filename selected in the 34 // filename unmodified. |filename| should contain the filename selected in the
35 // SaveAs dialog box and may include the path, |filter_selected| should be 35 // SaveAs dialog box and may include the path, |filter_selected| should be
36 // '*.something', for example '*.*' or it can be blank (which is treated as 36 // '*.something', for example '*.*' or it can be blank (which is treated as
37 // *.*). |suggested_ext| should contain the extension without the dot (.) in 37 // *.*). |suggested_ext| should contain the extension without the dot (.) in
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 void SelectFontDialogImpl::FontNotSelected(void* params, RunState run_state) { 1122 void SelectFontDialogImpl::FontNotSelected(void* params, RunState run_state) {
1123 if (listener_) 1123 if (listener_)
1124 listener_->FontSelectionCanceled(params); 1124 listener_->FontSelectionCanceled(params);
1125 EndRun(run_state); 1125 EndRun(run_state);
1126 } 1126 }
1127 1127
1128 // static 1128 // static
1129 SelectFontDialog* SelectFontDialog::Create(Listener* listener) { 1129 SelectFontDialog* SelectFontDialog::Create(Listener* listener) {
1130 return new SelectFontDialogImpl(listener); 1130 return new SelectFontDialogImpl(listener);
1131 } 1131 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/sad_tab_view.cc ('k') | chrome/browser/ui/views/status_bubble_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698