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