1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/web_dialogs/web_dialog_delegate.h"
9 std::string
WebDialogDelegate::GetDialogName() const {
13 void WebDialogDelegate::GetMinimumDialogSize(gfx::Size
* size
) const {
17 bool WebDialogDelegate::CanCloseDialog() const {
21 bool WebDialogDelegate::CanResizeDialog() const {
25 void WebDialogDelegate::OnDialogCloseFromWebUI(
26 const std::string
& json_retval
) {
27 OnDialogClosed(json_retval
);
30 bool WebDialogDelegate::HandleContextMenu(
31 const content::ContextMenuParams
& params
) {
35 bool WebDialogDelegate::HandleOpenURLFromTab(
36 content::WebContents
* source
,
37 const content::OpenURLParams
& params
,
38 content::WebContents
** out_new_contents
) {
42 bool WebDialogDelegate::HandleAddNewContents(
43 content::WebContents
* source
,
44 content::WebContents
* new_contents
,
45 WindowOpenDisposition disposition
,
46 const gfx::Rect
& initial_rect
,
51 bool WebDialogDelegate::HandleShouldCreateWebContents() {