Home | History | Annotate | Download | only in browser

Lines Matching refs:ofn

28 bool CallMetroOPENFILENAMEMethod(const char* method_name, OPENFILENAME* ofn) {
39 return metro_method(ofn) == TRUE;
129 // utility process to call GetOpenFileName with |ofn|. |current_task_runner|
132 OPENFILENAME* ofn,
142 ofn->hwndOwner,
143 ofn->Flags & ~OFN_ENABLEHOOK, // We can't send a hook function over IPC.
144 ui::win::OpenFileName::GetFilters(ofn),
145 base::FilePath(ofn->lpstrInitialDir ? ofn->lpstrInitialDir
147 base::FilePath(ofn->lpstrFile)));
154 OPENFILENAME* ofn) {
159 base::Unretained(ofn), client, blocking_task_runner));
166 client->directory(), client->filenames(), ofn);
174 OPENFILENAME* ofn) {
176 return CallMetroOPENFILENAMEMethod("MetroGetOpenFileName", ofn);
179 return GetOpenFileNameInUtilityProcess(blocking_task_runner, ofn);
181 return ::GetOpenFileName(ofn) == TRUE;
259 // utility process to call GetSaveFileName with |ofn|. |current_task_runner|
262 OPENFILENAME* ofn,
272 params.owner = ofn->hwndOwner;
274 params.flags = ofn->Flags & ~OFN_ENABLEHOOK;
275 params.filters = ui::win::OpenFileName::GetFilters(ofn);
276 params.one_based_filter_index = ofn->nFilterIndex;
277 params.suggested_filename = base::FilePath(ofn->lpstrFile);
279 ofn->lpstrInitialDir ? ofn->lpstrInitialDir : base::string16());
281 ofn->lpstrDefExt ? base::string16(ofn->lpstrDefExt) : base::string16();
290 OPENFILENAME* ofn) {
295 base::Unretained(ofn), client, blocking_task_runner));
301 base::wcslcpy(ofn->lpstrFile, client->path().value().c_str(), ofn->nMaxFile);
302 ofn->nFilterIndex = client->one_based_filter_index();
311 OPENFILENAME* ofn) {
313 return CallMetroOPENFILENAMEMethod("MetroGetSaveFileName", ofn);
316 return GetSaveFileNameInUtilityProcess(blocking_task_runner, ofn);
318 return ::GetSaveFileName(ofn) == TRUE;