blob: b2ecbf67a84f68a22c596d64dab8fabd91c17d61 [file] [log] [blame]
[email protected]20c07f8e2012-05-31 08:43:141// 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
warx9e608ed2017-05-15 19:30:597#include "ui/base/accelerators/accelerator.h"
8
[email protected]20c07f8e2012-05-31 08:43:149namespace ui {
10
James Wallace-Lee45d4385b2018-08-31 21:19:4611base::string16 WebDialogDelegate::GetAccessibleDialogTitle() const {
12 return GetDialogTitle();
13}
14
[email protected]20c07f8e2012-05-31 08:43:1415std::string WebDialogDelegate::GetDialogName() const {
16 return std::string();
17}
18
19void WebDialogDelegate::GetMinimumDialogSize(gfx::Size* size) const {
20 GetDialogSize(size);
21}
22
[email protected]1f2b2fce2013-12-02 21:46:5923bool WebDialogDelegate::CanCloseDialog() const {
24 return true;
25}
26
[email protected]0251a8ee2014-05-12 16:08:2627bool WebDialogDelegate::CanResizeDialog() const {
28 return true;
29}
30
[email protected]9d6c803b2013-01-31 02:09:4931void WebDialogDelegate::OnDialogCloseFromWebUI(
32 const std::string& json_retval) {
33 OnDialogClosed(json_retval);
34}
35
[email protected]20c07f8e2012-05-31 08:43:1436bool WebDialogDelegate::HandleContextMenu(
37 const content::ContextMenuParams& params) {
38 return false;
39}
40
41bool WebDialogDelegate::HandleOpenURLFromTab(
42 content::WebContents* source,
43 const content::OpenURLParams& params,
44 content::WebContents** out_new_contents) {
45 return false;
46}
47
ginkage747c10c2015-02-03 11:14:4948bool WebDialogDelegate::HandleShouldCreateWebContents() {
49 return true;
50}
51
warx9e608ed2017-05-15 19:30:5952std::vector<Accelerator> WebDialogDelegate::GetAccelerators() {
53 return std::vector<Accelerator>();
54}
55
56bool WebDialogDelegate::AcceleratorPressed(const Accelerator& accelerator) {
57 return false;
58}
59
[email protected]20c07f8e2012-05-31 08:43:1460} // namespace ui