• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
7 namespace ui {
8 
GetDialogName() const9 std::string WebDialogDelegate::GetDialogName() const {
10   return std::string();
11 }
12 
GetMinimumDialogSize(gfx::Size * size) const13 void WebDialogDelegate::GetMinimumDialogSize(gfx::Size* size) const {
14   GetDialogSize(size);
15 }
16 
CanCloseDialog() const17 bool WebDialogDelegate::CanCloseDialog() const {
18   return true;
19 }
20 
CanResizeDialog() const21 bool WebDialogDelegate::CanResizeDialog() const {
22   return true;
23 }
24 
OnDialogCloseFromWebUI(const std::string & json_retval)25 void WebDialogDelegate::OnDialogCloseFromWebUI(
26     const std::string& json_retval) {
27   OnDialogClosed(json_retval);
28 }
29 
HandleContextMenu(const content::ContextMenuParams & params)30 bool WebDialogDelegate::HandleContextMenu(
31     const content::ContextMenuParams& params) {
32   return false;
33 }
34 
HandleOpenURLFromTab(content::WebContents * source,const content::OpenURLParams & params,content::WebContents ** out_new_contents)35 bool WebDialogDelegate::HandleOpenURLFromTab(
36     content::WebContents* source,
37     const content::OpenURLParams& params,
38     content::WebContents** out_new_contents) {
39   return false;
40 }
41 
HandleAddNewContents(content::WebContents * source,content::WebContents * new_contents,WindowOpenDisposition disposition,const gfx::Rect & initial_pos,bool user_gesture)42 bool 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