Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / web_dialogs / web_dialog_delegate.cc
blobe4895f174fc155891573513930b9acbc3df7ea68
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"
7 namespace ui {
9 std::string WebDialogDelegate::GetDialogName() const {
10 return std::string();
13 void WebDialogDelegate::GetMinimumDialogSize(gfx::Size* size) const {
14 GetDialogSize(size);
17 bool WebDialogDelegate::CanCloseDialog() const {
18 return true;
21 bool WebDialogDelegate::CanResizeDialog() const {
22 return true;
25 void WebDialogDelegate::OnDialogCloseFromWebUI(
26 const std::string& json_retval) {
27 OnDialogClosed(json_retval);
30 bool WebDialogDelegate::HandleContextMenu(
31 const content::ContextMenuParams& params) {
32 return false;
35 bool WebDialogDelegate::HandleOpenURLFromTab(
36 content::WebContents* source,
37 const content::OpenURLParams& params,
38 content::WebContents** out_new_contents) {
39 return false;
42 bool WebDialogDelegate::HandleAddNewContents(
43 content::WebContents* source,
44 content::WebContents* new_contents,
45 WindowOpenDisposition disposition,
46 const gfx::Rect& initial_rect,
47 bool user_gesture) {
48 return false;
51 bool WebDialogDelegate::HandleShouldCreateWebContents() {
52 return true;
55 } // namespace ui