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

Side by Side Diff: chrome/browser/shell_dialogs.h

Issue 2893001: Clean up and simplify how we deal with filename extensions on Windows. Allow... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 5 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 | « no previous file | chrome/browser/views/shell_dialogs_win.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_BROWSER_SHELL_DIALOGS_H_ 5 #ifndef CHROME_BROWSER_SHELL_DIALOGS_H_
6 #define CHROME_BROWSER_SHELL_DIALOGS_H_ 6 #define CHROME_BROWSER_SHELL_DIALOGS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/ref_counted.h" 12 #include "base/ref_counted.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "gfx/native_widget_types.h" 14 #include "gfx/native_widget_types.h"
15 15
16 namespace gfx { 16 namespace gfx {
17 class Font; 17 class Font;
18 } 18 }
19 19
20 // This function is declared extern such that it is accessible for unit tests
21 // in /chrome/browser/views/shell_dialogs_win_unittest.cc
22 extern std::wstring AppendExtensionIfNeeded(const std::wstring& filename,
23 const std::wstring& filter_selected,
24 const std::wstring& suggested_ext);
25
20 // A base class for shell dialogs. 26 // A base class for shell dialogs.
21 class BaseShellDialog { 27 class BaseShellDialog {
22 public: 28 public:
23 // Returns true if a shell dialog box is currently being shown modally 29 // Returns true if a shell dialog box is currently being shown modally
24 // to the specified owner. 30 // to the specified owner.
25 virtual bool IsRunning(gfx::NativeWindow owning_window) const = 0; 31 virtual bool IsRunning(gfx::NativeWindow owning_window) const = 0;
26 32
27 // Notifies the dialog box that the listener has been destroyed and it should 33 // Notifies the dialog box that the listener has been destroyed and it should
28 // no longer be sent notifications. 34 // no longer be sent notifications.
29 virtual void ListenerDestroyed() = 0; 35 virtual void ListenerDestroyed() = 0;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 const std::wstring& font_name, 179 const std::wstring& font_name,
174 int font_size) = 0; 180 int font_size) = 0;
175 181
176 protected: 182 protected:
177 friend class base::RefCountedThreadSafe<SelectFontDialog>; 183 friend class base::RefCountedThreadSafe<SelectFontDialog>;
178 184
179 virtual ~SelectFontDialog() {} 185 virtual ~SelectFontDialog() {}
180 }; 186 };
181 187
182 #endif // CHROME_BROWSER_SHELL_DIALOGS_H_ 188 #endif // CHROME_BROWSER_SHELL_DIALOGS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/views/shell_dialogs_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698