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