| OLD | NEW |
| 1 // Copyright (c) 2006-2008 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 #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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
| 13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "gfx/native_widget_types.h" | 15 #include "gfx/native_widget_types.h" |
| 16 | 16 |
| 17 namespace gfx { | 17 namespace gfx { |
| 18 class Font; | 18 class Font; |
| 19 } | 19 } |
| 20 | 20 |
| 21 // This function is declared extern such that it is accessible for unit tests | 21 // This function is declared extern such that it is accessible for unit tests |
| 22 // in /chrome/browser/views/shell_dialogs_win_unittest.cc | 22 // in /chrome/browser/ui/views/shell_dialogs_win_unittest.cc |
| 23 extern std::wstring AppendExtensionIfNeeded(const std::wstring& filename, | 23 extern std::wstring AppendExtensionIfNeeded(const std::wstring& filename, |
| 24 const std::wstring& filter_selected, | 24 const std::wstring& filter_selected, |
| 25 const std::wstring& suggested_ext); | 25 const std::wstring& suggested_ext); |
| 26 | 26 |
| 27 // A base class for shell dialogs. | 27 // A base class for shell dialogs. |
| 28 class BaseShellDialog { | 28 class BaseShellDialog { |
| 29 public: | 29 public: |
| 30 // Returns true if a shell dialog box is currently being shown modally | 30 // Returns true if a shell dialog box is currently being shown modally |
| 31 // to the specified owner. | 31 // to the specified owner. |
| 32 virtual bool IsRunning(gfx::NativeWindow owning_window) const = 0; | 32 virtual bool IsRunning(gfx::NativeWindow owning_window) const = 0; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 const std::wstring& font_name, | 193 const std::wstring& font_name, |
| 194 int font_size) = 0; | 194 int font_size) = 0; |
| 195 | 195 |
| 196 protected: | 196 protected: |
| 197 friend class base::RefCountedThreadSafe<SelectFontDialog>; | 197 friend class base::RefCountedThreadSafe<SelectFontDialog>; |
| 198 SelectFontDialog(); | 198 SelectFontDialog(); |
| 199 virtual ~SelectFontDialog(); | 199 virtual ~SelectFontDialog(); |
| 200 }; | 200 }; |
| 201 | 201 |
| 202 #endif // CHROME_BROWSER_SHELL_DIALOGS_H_ | 202 #endif // CHROME_BROWSER_SHELL_DIALOGS_H_ |
| OLD | NEW |