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. 4 5#include "ui/web_dialogs/web_dialog_delegate.h" 6 7namespace ui { 8 9std::string WebDialogDelegate::GetDialogName() const { 10 return std::string(); 11} 12 13void WebDialogDelegate::GetMinimumDialogSize(gfx::Size* size) const { 14 GetDialogSize(size); 15} 16 17bool WebDialogDelegate::CanCloseDialog() const { 18 return true; 19} 20 21bool WebDialogDelegate::CanResizeDialog() const { 22 return true; 23} 24 25void WebDialogDelegate::OnDialogCloseFromWebUI( 26 const std::string& json_retval) { 27 OnDialogClosed(json_retval); 28} 29 30bool WebDialogDelegate::HandleContextMenu( 31 const content::ContextMenuParams& params) { 32 return false; 33} 34 35bool WebDialogDelegate::HandleOpenURLFromTab( 36 content::WebContents* source, 37 const content::OpenURLParams& params, 38 content::WebContents** out_new_contents) { 39 return false; 40} 41 42bool WebDialogDelegate::HandleAddNewContents( 43 content::WebContents* source, 44 content::WebContents* new_contents, 45 WindowOpenDisposition disposition, 46 const gfx::Rect& initial_pos, 47 bool user_gesture) { 48 return false; 49} 50 51} // namespace ui 52