| OLD | NEW |
| 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 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // at a time (for obvious reasons). | 109 // at a time (for obvious reasons). |
| 110 virtual void SelectFile(Type type, | 110 virtual void SelectFile(Type type, |
| 111 const string16& title, | 111 const string16& title, |
| 112 const FilePath& default_path, | 112 const FilePath& default_path, |
| 113 const FileTypeInfo* file_types, | 113 const FileTypeInfo* file_types, |
| 114 int file_type_index, | 114 int file_type_index, |
| 115 const FilePath::StringType& default_extension, | 115 const FilePath::StringType& default_extension, |
| 116 gfx::NativeWindow owning_window, | 116 gfx::NativeWindow owning_window, |
| 117 void* params) = 0; | 117 void* params) = 0; |
| 118 | 118 |
| 119 // browser_mode is true when running inside the browser. |
| 120 virtual void set_browser_mode(bool value) {} |
| 121 |
| 119 protected: | 122 protected: |
| 120 friend class base::RefCountedThreadSafe<SelectFileDialog>; | 123 friend class base::RefCountedThreadSafe<SelectFileDialog>; |
| 121 | 124 |
| 122 virtual ~SelectFileDialog() {} | 125 virtual ~SelectFileDialog() {} |
| 123 }; | 126 }; |
| 124 | 127 |
| 125 // Shows a dialog box for selecting a font. | 128 // Shows a dialog box for selecting a font. |
| 126 class SelectFontDialog | 129 class SelectFontDialog |
| 127 : public base::RefCountedThreadSafe<SelectFontDialog>, | 130 : public base::RefCountedThreadSafe<SelectFontDialog>, |
| 128 public BaseShellDialog { | 131 public BaseShellDialog { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 const std::wstring& font_name, | 173 const std::wstring& font_name, |
| 171 int font_size) = 0; | 174 int font_size) = 0; |
| 172 | 175 |
| 173 protected: | 176 protected: |
| 174 friend class base::RefCountedThreadSafe<SelectFontDialog>; | 177 friend class base::RefCountedThreadSafe<SelectFontDialog>; |
| 175 | 178 |
| 176 virtual ~SelectFontDialog() {} | 179 virtual ~SelectFontDialog() {} |
| 177 }; | 180 }; |
| 178 | 181 |
| 179 #endif // CHROME_BROWSER_SHELL_DIALOGS_H_ | 182 #endif // CHROME_BROWSER_SHELL_DIALOGS_H_ |
| OLD | NEW |