This source file includes following definitions.
- GetDialogName
- GetMinimumDialogSize
- CanCloseDialog
- OnDialogCloseFromWebUI
- HandleContextMenu
- HandleOpenURLFromTab
- HandleAddNewContents
#include "ui/web_dialogs/web_dialog_delegate.h"
namespace ui {
std::string WebDialogDelegate::GetDialogName() const {
return std::string();
}
void WebDialogDelegate::GetMinimumDialogSize(gfx::Size* size) const {
GetDialogSize(size);
}
bool WebDialogDelegate::CanCloseDialog() const {
return true;
}
void WebDialogDelegate::OnDialogCloseFromWebUI(
const std::string& json_retval) {
OnDialogClosed(json_retval);
}
bool WebDialogDelegate::HandleContextMenu(
const content::ContextMenuParams& params) {
return false;
}
bool WebDialogDelegate::HandleOpenURLFromTab(
content::WebContents* source,
const content::OpenURLParams& params,
content::WebContents** out_new_contents) {
return false;
}
bool WebDialogDelegate::HandleAddNewContents(
content::WebContents* source,
content::WebContents* new_contents,
WindowOpenDisposition disposition,
const gfx::Rect& initial_pos,
bool user_gesture) {
return false;
}
}