| 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 "base/property_bag.h" | 9 #include "base/property_bag.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ui/constrained_window.h" | 11 #include "chrome/browser/ui/constrained_window.h" |
| 12 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 12 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 13 #include "chrome/browser/ui/webui/web_dialog_delegate.h" | |
| 14 #include "chrome/browser/ui/webui/web_dialog_ui.h" | |
| 15 #include "chrome/browser/ui/webui/web_dialog_web_contents_delegate.h" | 13 #include "chrome/browser/ui/webui/web_dialog_web_contents_delegate.h" |
| 16 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
| 15 #include "ui/web_dialogs/web_dialog_delegate.h" |
| 16 #include "ui/web_dialogs/web_dialog_ui.h" |
| 17 | 17 |
| 18 using content::NativeWebKeyboardEvent; | 18 using content::NativeWebKeyboardEvent; |
| 19 using content::WebContents; | 19 using content::WebContents; |
| 20 using ui::ConstrainedWebDialogUI; |
| 21 using ui::WebDialogDelegate; |
| 20 | 22 |
| 21 ConstrainedWebDialogDelegateBase::ConstrainedWebDialogDelegateBase( | 23 ConstrainedWebDialogDelegateBase::ConstrainedWebDialogDelegateBase( |
| 22 Profile* profile, | 24 Profile* profile, |
| 23 WebDialogDelegate* delegate, | 25 WebDialogDelegate* delegate, |
| 24 WebDialogWebContentsDelegate* tab_delegate) | 26 WebDialogWebContentsDelegate* tab_delegate) |
| 25 : WebDialogWebContentsDelegate(profile), | 27 : WebDialogWebContentsDelegate(profile), |
| 26 web_dialog_delegate_(delegate), | 28 web_dialog_delegate_(delegate), |
| 27 window_(NULL), | 29 window_(NULL), |
| 28 closed_via_webui_(false), | 30 closed_via_webui_(false), |
| 29 release_tab_on_close_(false) { | 31 release_tab_on_close_(false) { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 return window_; | 90 return window_; |
| 89 } | 91 } |
| 90 | 92 |
| 91 TabContentsWrapper* ConstrainedWebDialogDelegateBase::tab() { | 93 TabContentsWrapper* ConstrainedWebDialogDelegateBase::tab() { |
| 92 return tab_.get(); | 94 return tab_.get(); |
| 93 } | 95 } |
| 94 | 96 |
| 95 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent( | 97 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent( |
| 96 const NativeWebKeyboardEvent& event) { | 98 const NativeWebKeyboardEvent& event) { |
| 97 } | 99 } |
| OLD | NEW |