OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/web_dialogs/web_dialog_delegate.h" | 5 #include "ui/web_dialogs/web_dialog_delegate.h" |
6 | 6 |
7 namespace ui { | 7 namespace ui { |
8 | 8 |
9 std::string WebDialogDelegate::GetDialogName() const { | 9 std::string WebDialogDelegate::GetDialogName() const { |
10 return std::string(); | 10 return std::string(); |
11 } | 11 } |
12 | 12 |
13 void WebDialogDelegate::GetMinimumDialogSize(gfx::Size* size) const { | 13 void WebDialogDelegate::GetMinimumDialogSize(gfx::Size* size) const { |
14 GetDialogSize(size); | 14 GetDialogSize(size); |
15 } | 15 } |
16 | 16 |
17 bool WebDialogDelegate::CanCloseDialog() const { | 17 bool WebDialogDelegate::CanCloseDialog() const { |
18 return true; | 18 return true; |
19 } | 19 } |
20 | 20 |
| 21 bool WebDialogDelegate::CanResizeDialog() const { |
| 22 return true; |
| 23 } |
| 24 |
21 void WebDialogDelegate::OnDialogCloseFromWebUI( | 25 void WebDialogDelegate::OnDialogCloseFromWebUI( |
22 const std::string& json_retval) { | 26 const std::string& json_retval) { |
23 OnDialogClosed(json_retval); | 27 OnDialogClosed(json_retval); |
24 } | 28 } |
25 | 29 |
26 bool WebDialogDelegate::HandleContextMenu( | 30 bool WebDialogDelegate::HandleContextMenu( |
27 const content::ContextMenuParams& params) { | 31 const content::ContextMenuParams& params) { |
28 return false; | 32 return false; |
29 } | 33 } |
30 | 34 |
31 bool WebDialogDelegate::HandleOpenURLFromTab( | 35 bool WebDialogDelegate::HandleOpenURLFromTab( |
32 content::WebContents* source, | 36 content::WebContents* source, |
33 const content::OpenURLParams& params, | 37 const content::OpenURLParams& params, |
34 content::WebContents** out_new_contents) { | 38 content::WebContents** out_new_contents) { |
35 return false; | 39 return false; |
36 } | 40 } |
37 | 41 |
38 bool WebDialogDelegate::HandleAddNewContents( | 42 bool WebDialogDelegate::HandleAddNewContents( |
39 content::WebContents* source, | 43 content::WebContents* source, |
40 content::WebContents* new_contents, | 44 content::WebContents* new_contents, |
41 WindowOpenDisposition disposition, | 45 WindowOpenDisposition disposition, |
42 const gfx::Rect& initial_pos, | 46 const gfx::Rect& initial_pos, |
43 bool user_gesture) { | 47 bool user_gesture) { |
44 return false; | 48 return false; |
45 } | 49 } |
46 | 50 |
47 } // namespace ui | 51 } // namespace ui |
OLD | NEW |