Home | History | Annotate | Download | only in views

Lines Matching defs:dialog

50   void Add(int32 tab_id, scoped_refptr<SelectFileDialogExtension> dialog);
66 scoped_refptr<SelectFileDialogExtension> dialog) {
67 DCHECK(dialog.get());
69 map_.insert(std::make_pair(tab_id, dialog));
71 DLOG(WARNING) << "Duplicate pending dialog " << tab_id;
127 ExtensionDialog* /*dialog*/) {
130 // Release our reference to the underlying dialog to allow it to close.
138 ExtensionDialog* dialog) {
141 std::string extension_id = dialog->host()->extension()->id();
160 dialog->GetWidget()->Close();
168 scoped_refptr<SelectFileDialogExtension> dialog =
170 if (!dialog.get())
172 dialog->selection_type_ = SINGLE_FILE;
173 dialog->selection_files_.clear();
174 dialog->selection_files_.push_back(file);
175 dialog->selection_index_ = index;
182 scoped_refptr<SelectFileDialogExtension> dialog =
184 if (!dialog.get())
186 dialog->selection_type_ = MULTIPLE_FILES;
187 dialog->selection_files_ = files;
188 dialog->selection_index_ = 0;
193 scoped_refptr<SelectFileDialogExtension> dialog =
195 if (!dialog.get())
197 dialog->selection_type_ = CANCEL;
198 dialog->selection_files_.clear();
199 dialog->selection_index_ = 0;
252 LOG(ERROR) << "File dialog already in use!";
256 // The base window to associate the dialog with.
259 // The web contents to associate the dialog with.
280 NOTREACHED() << "File dialog opened by panel.";
306 // Check if we have another dialog opened for the contents. It's unlikely, but
307 // possible. If there is no web contents use a tab_id of -1. A dialog without
312 DLOG(WARNING) << "Pending dialog exists with id " << tab_id;
353 ExtensionDialog* dialog = ExtensionDialog::Show(file_browser_url,
365 if (!dialog) {
366 LOG(ERROR) << "Unable to create extension dialog";
373 extension_dialog_ = dialog;