web_dialog_delegate.cc revision 2a99a7e74a7f215066514fe81d2bfa6639d9eddd
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
17void WebDialogDelegate::OnDialogCloseFromWebUI(
18    const std::string& json_retval) {
19  OnDialogClosed(json_retval);
20}
21
22bool WebDialogDelegate::HandleContextMenu(
23    const content::ContextMenuParams& params) {
24  return false;
25}
26
27bool WebDialogDelegate::HandleOpenURLFromTab(
28    content::WebContents* source,
29    const content::OpenURLParams& params,
30    content::WebContents** out_new_contents) {
31  return false;
32}
33
34bool WebDialogDelegate::HandleAddNewContents(
35    content::WebContents* source,
36    content::WebContents* new_contents,
37    WindowOpenDisposition disposition,
38    const gfx::Rect& initial_pos,
39    bool user_gesture) {
40  return false;
41}
42
43}  // namespace ui
44