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(); |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 bool WebDialogDelegate::HandleAddNewContents( | 42 bool WebDialogDelegate::HandleAddNewContents( |
43 content::WebContents* source, | 43 content::WebContents* source, |
44 content::WebContents* new_contents, | 44 content::WebContents* new_contents, |
45 WindowOpenDisposition disposition, | 45 WindowOpenDisposition disposition, |
46 const gfx::Rect& initial_pos, | 46 const gfx::Rect& initial_pos, |
47 bool user_gesture) { | 47 bool user_gesture) { |
48 return false; | 48 return false; |
49 } | 49 } |
50 | 50 |
| 51 bool WebDialogDelegate::HandleShouldCreateWebContents( |
| 52 content::WebContents* web_contents, |
| 53 int route_id, |
| 54 int main_frame_route_id, |
| 55 WindowContainerType window_container_type, |
| 56 const base::string16& frame_name, |
| 57 const GURL& target_url, |
| 58 const std::string& partition_id, |
| 59 content::SessionStorageNamespace* session_storage_namespace) { |
| 60 return true; |
| 61 } |
| 62 |
51 } // namespace ui | 63 } // namespace ui |
OLD | NEW |