| 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_web_contents_delegate.h" | 5 #include "ui/web_dialogs/web_dialog_web_contents_delegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/public/browser/web_contents.h" | 8 #include "content/public/browser/web_contents.h" |
| 9 | 9 |
| 10 using content::BrowserContext; | 10 using content::BrowserContext; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 initial_pos, user_gesture); | 48 initial_pos, user_gesture); |
| 49 } | 49 } |
| 50 | 50 |
| 51 bool WebDialogWebContentsDelegate::IsPopupOrPanel( | 51 bool WebDialogWebContentsDelegate::IsPopupOrPanel( |
| 52 const WebContents* source) const { | 52 const WebContents* source) const { |
| 53 // This needs to return true so that we are allowed to be resized by our | 53 // This needs to return true so that we are allowed to be resized by our |
| 54 // contents. | 54 // contents. |
| 55 return true; | 55 return true; |
| 56 } | 56 } |
| 57 | 57 |
| 58 bool WebDialogWebContentsDelegate::ShouldAddNavigationToHistory( | |
| 59 const history::HistoryAddPageArgs& add_page_args, | |
| 60 content::NavigationType navigation_type) { | |
| 61 return false; | |
| 62 } | |
| 63 | |
| 64 } // namespace ui | 58 } // namespace ui |
| OLD | NEW |