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

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

Issue 3743001: FBTF: Fix more ctor/dtors found by clang plugin. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Rebase to pick up mac fix on ToT Created 10 years, 2 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/extensions/default_apps.cc ('k') | chrome/browser/shell_dialogs.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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // |extensions| is a list of allowed extensions. For example, it might be 85 // |extensions| is a list of allowed extensions. For example, it might be
86 // { { "htm", "html" }, { "txt" } }. Only pass more than one extension 86 // { { "htm", "html" }, { "txt" } }. Only pass more than one extension
87 // in the inner vector if the extensions are equivalent. Do NOT include 87 // in the inner vector if the extensions are equivalent. Do NOT include
88 // leading periods. 88 // leading periods.
89 // |extension_description_overrides| overrides the system descriptions of the 89 // |extension_description_overrides| overrides the system descriptions of the
90 // specified extensions. Entries correspond to |extensions|; if left blank 90 // specified extensions. Entries correspond to |extensions|; if left blank
91 // the system descriptions will be used. 91 // the system descriptions will be used.
92 // |include_all_files| specifies whether there will be a filter added for all 92 // |include_all_files| specifies whether there will be a filter added for all
93 // files (i.e. *.*). 93 // files (i.e. *.*).
94 struct FileTypeInfo { 94 struct FileTypeInfo {
95 FileTypeInfo();
96 ~FileTypeInfo();
97
95 std::vector<std::vector<FilePath::StringType> > extensions; 98 std::vector<std::vector<FilePath::StringType> > extensions;
96 std::vector<string16> extension_description_overrides; 99 std::vector<string16> extension_description_overrides;
97 bool include_all_files; 100 bool include_all_files;
98 }; 101 };
99 102
100 // Selects a file. This will start displaying the dialog box. This will also 103 // Selects a file. This will start displaying the dialog box. This will also
101 // block the calling window until the dialog box is complete. The listener 104 // block the calling window until the dialog box is complete. The listener
102 // associated with this object will be notified when the selection is 105 // associated with this object will be notified when the selection is
103 // complete. 106 // complete.
104 // |type| is the type of file dialog to be shown, see Type enumeration above. 107 // |type| is the type of file dialog to be shown, see Type enumeration above.
(...skipping 22 matching lines...) Expand all
127 int file_type_index, 130 int file_type_index,
128 const FilePath::StringType& default_extension, 131 const FilePath::StringType& default_extension,
129 gfx::NativeWindow owning_window, 132 gfx::NativeWindow owning_window,
130 void* params) = 0; 133 void* params) = 0;
131 134
132 // browser_mode is true when running inside the browser. 135 // browser_mode is true when running inside the browser.
133 virtual void set_browser_mode(bool value) {} 136 virtual void set_browser_mode(bool value) {}
134 137
135 protected: 138 protected:
136 friend class base::RefCountedThreadSafe<SelectFileDialog>; 139 friend class base::RefCountedThreadSafe<SelectFileDialog>;
137 140 SelectFileDialog();
138 virtual ~SelectFileDialog() {} 141 virtual ~SelectFileDialog();
139 }; 142 };
140 143
141 // Shows a dialog box for selecting a font. 144 // Shows a dialog box for selecting a font.
142 class SelectFontDialog 145 class SelectFontDialog
143 : public base::RefCountedThreadSafe<SelectFontDialog>, 146 : public base::RefCountedThreadSafe<SelectFontDialog>,
144 public BaseShellDialog { 147 public BaseShellDialog {
145 public: 148 public:
146 149
147 // An interface implemented by a Listener object wishing to know about the 150 // An interface implemented by a Listener object wishing to know about the
148 // the result of the Select Font action. These callbacks must be 151 // the result of the Select Font action. These callbacks must be
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 187
185 // Same as above - also support specifying the default font selected in the 188 // Same as above - also support specifying the default font selected in the
186 // list when the dialog appears. 189 // list when the dialog appears.
187 virtual void SelectFont(gfx::NativeWindow owning_window, 190 virtual void SelectFont(gfx::NativeWindow owning_window,
188 void* params, 191 void* params,
189 const std::wstring& font_name, 192 const std::wstring& font_name,
190 int font_size) = 0; 193 int font_size) = 0;
191 194
192 protected: 195 protected:
193 friend class base::RefCountedThreadSafe<SelectFontDialog>; 196 friend class base::RefCountedThreadSafe<SelectFontDialog>;
194 197 SelectFontDialog();
195 virtual ~SelectFontDialog() {} 198 virtual ~SelectFontDialog();
196 }; 199 };
197 200
198 #endif // CHROME_BROWSER_SHELL_DIALOGS_H_ 201 #endif // CHROME_BROWSER_SHELL_DIALOGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/default_apps.cc ('k') | chrome/browser/shell_dialogs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698