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/ui/constrained_window.h" | 9 #include "chrome/browser/ui/constrained_window.h" |
10 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h" | 10 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 return web_dialog_delegate_.get(); | 56 return web_dialog_delegate_.get(); |
57 } | 57 } |
58 | 58 |
59 WebDialogDelegate* | 59 WebDialogDelegate* |
60 ConstrainedWebDialogDelegateBase::GetWebDialogDelegate() { | 60 ConstrainedWebDialogDelegateBase::GetWebDialogDelegate() { |
61 return web_dialog_delegate_.get(); | 61 return web_dialog_delegate_.get(); |
62 } | 62 } |
63 | 63 |
64 void ConstrainedWebDialogDelegateBase::OnDialogCloseFromWebUI() { | 64 void ConstrainedWebDialogDelegateBase::OnDialogCloseFromWebUI() { |
65 closed_via_webui_ = true; | 65 closed_via_webui_ = true; |
66 window_->CloseConstrainedWindow(); | 66 window_->CloseWebContentsModalDialog(); |
67 } | 67 } |
68 | 68 |
69 void ConstrainedWebDialogDelegateBase::set_window(ConstrainedWindow* window) { | 69 void ConstrainedWebDialogDelegateBase::set_window(ConstrainedWindow* window) { |
70 window_ = window; | 70 window_ = window; |
71 } | 71 } |
72 | 72 |
73 void ConstrainedWebDialogDelegateBase::set_override_tab_delegate( | 73 void ConstrainedWebDialogDelegateBase::set_override_tab_delegate( |
74 WebDialogWebContentsDelegate* override_tab_delegate) { | 74 WebDialogWebContentsDelegate* override_tab_delegate) { |
75 override_tab_delegate_.reset(override_tab_delegate); | 75 override_tab_delegate_.reset(override_tab_delegate); |
76 } | 76 } |
(...skipping 11 matching lines...) Expand all Loading... |
88 } | 88 } |
89 | 89 |
90 WebContents* ConstrainedWebDialogDelegateBase::GetWebContents() { | 90 WebContents* ConstrainedWebDialogDelegateBase::GetWebContents() { |
91 return web_contents_.get(); | 91 return web_contents_.get(); |
92 } | 92 } |
93 | 93 |
94 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent( | 94 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent( |
95 content::WebContents* source, | 95 content::WebContents* source, |
96 const NativeWebKeyboardEvent& event) { | 96 const NativeWebKeyboardEvent& event) { |
97 } | 97 } |
OLD | NEW |