| 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 "chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h" | 5 #include "chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/renderer_preferences_util.h" | 10 #include "chrome/browser/renderer_preferences_util.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 73 } |
| 74 | 74 |
| 75 bool ConstrainedWebDialogDelegateBase::closed_via_webui() const { | 75 bool ConstrainedWebDialogDelegateBase::closed_via_webui() const { |
| 76 return closed_via_webui_; | 76 return closed_via_webui_; |
| 77 } | 77 } |
| 78 | 78 |
| 79 void ConstrainedWebDialogDelegateBase::ReleaseWebContentsOnDialogClose() { | 79 void ConstrainedWebDialogDelegateBase::ReleaseWebContentsOnDialogClose() { |
| 80 release_contents_on_close_ = true; | 80 release_contents_on_close_ = true; |
| 81 } | 81 } |
| 82 | 82 |
| 83 NativeWebContentsModalDialog | 83 web_modal::NativeWebContentsModalDialog |
| 84 ConstrainedWebDialogDelegateBase::GetNativeDialog() { | 84 ConstrainedWebDialogDelegateBase::GetNativeDialog() { |
| 85 NOTREACHED(); | 85 NOTREACHED(); |
| 86 return NULL; | 86 return NULL; |
| 87 } | 87 } |
| 88 | 88 |
| 89 WebContents* ConstrainedWebDialogDelegateBase::GetWebContents() { | 89 WebContents* ConstrainedWebDialogDelegateBase::GetWebContents() { |
| 90 return web_contents_.get(); | 90 return web_contents_.get(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent( | 93 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent( |
| 94 content::WebContents* source, | 94 content::WebContents* source, |
| 95 const NativeWebKeyboardEvent& event) { | 95 const NativeWebKeyboardEvent& event) { |
| 96 } | 96 } |
| OLD | NEW |