| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 } | 78 } |
| 79 | 79 |
| 80 bool ConstrainedWebDialogDelegateBase::closed_via_webui() const { | 80 bool ConstrainedWebDialogDelegateBase::closed_via_webui() const { |
| 81 return closed_via_webui_; | 81 return closed_via_webui_; |
| 82 } | 82 } |
| 83 | 83 |
| 84 void ConstrainedWebDialogDelegateBase::ReleaseWebContentsOnDialogClose() { | 84 void ConstrainedWebDialogDelegateBase::ReleaseWebContentsOnDialogClose() { |
| 85 release_contents_on_close_ = true; | 85 release_contents_on_close_ = true; |
| 86 } | 86 } |
| 87 | 87 |
| 88 web_modal::NativeWebContentsModalDialog | 88 gfx::NativeWindow ConstrainedWebDialogDelegateBase::GetNativeDialog() { |
| 89 ConstrainedWebDialogDelegateBase::GetNativeDialog() { | |
| 90 NOTREACHED(); | 89 NOTREACHED(); |
| 91 return NULL; | 90 return NULL; |
| 92 } | 91 } |
| 93 | 92 |
| 94 WebContents* ConstrainedWebDialogDelegateBase::GetWebContents() { | 93 WebContents* ConstrainedWebDialogDelegateBase::GetWebContents() { |
| 95 return web_contents_.get(); | 94 return web_contents_.get(); |
| 96 } | 95 } |
| 97 | 96 |
| 98 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent( | 97 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent( |
| 99 content::WebContents* source, | 98 content::WebContents* source, |
| 100 const NativeWebKeyboardEvent& event) { | 99 const NativeWebKeyboardEvent& event) { |
| 101 } | 100 } |
| 102 | 101 |
| 103 gfx::Size ConstrainedWebDialogDelegateBase::GetMinimumSize() const { | 102 gfx::Size ConstrainedWebDialogDelegateBase::GetMinimumSize() const { |
| 104 NOTREACHED(); | 103 NOTREACHED(); |
| 105 return gfx::Size(); | 104 return gfx::Size(); |
| 106 } | 105 } |
| 107 | 106 |
| 108 gfx::Size ConstrainedWebDialogDelegateBase::GetMaximumSize() const { | 107 gfx::Size ConstrainedWebDialogDelegateBase::GetMaximumSize() const { |
| 109 NOTREACHED(); | 108 NOTREACHED(); |
| 110 return gfx::Size(); | 109 return gfx::Size(); |
| 111 } | 110 } |
| 112 | 111 |
| 113 gfx::Size ConstrainedWebDialogDelegateBase::GetPreferredSize() const { | 112 gfx::Size ConstrainedWebDialogDelegateBase::GetPreferredSize() const { |
| 114 NOTREACHED(); | 113 NOTREACHED(); |
| 115 return gfx::Size(); | 114 return gfx::Size(); |
| 116 } | 115 } |
| OLD | NEW |