| 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.h" | 12 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
| 13 #include "chrome/browser/ui/webui/web_dialog_web_contents_delegate.h" | 13 #include "chrome/browser/ui/webui/web_dialog_web_contents_delegate.h" |
| 14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
| 15 #include "ipc/ipc_message.h" |
| 15 #include "ui/web_dialogs/web_dialog_delegate.h" | 16 #include "ui/web_dialogs/web_dialog_delegate.h" |
| 16 #include "ui/web_dialogs/web_dialog_ui.h" | 17 #include "ui/web_dialogs/web_dialog_ui.h" |
| 17 | 18 |
| 18 using content::NativeWebKeyboardEvent; | 19 using content::NativeWebKeyboardEvent; |
| 19 using content::WebContents; | 20 using content::WebContents; |
| 20 using ui::ConstrainedWebDialogUI; | 21 using ui::ConstrainedWebDialogUI; |
| 21 using ui::WebDialogDelegate; | 22 using ui::WebDialogDelegate; |
| 22 | 23 |
| 23 ConstrainedWebDialogDelegateBase::ConstrainedWebDialogDelegateBase( | 24 ConstrainedWebDialogDelegateBase::ConstrainedWebDialogDelegateBase( |
| 24 Profile* profile, | 25 Profile* profile, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 return window_; | 91 return window_; |
| 91 } | 92 } |
| 92 | 93 |
| 93 TabContents* ConstrainedWebDialogDelegateBase::tab() { | 94 TabContents* ConstrainedWebDialogDelegateBase::tab() { |
| 94 return tab_.get(); | 95 return tab_.get(); |
| 95 } | 96 } |
| 96 | 97 |
| 97 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent( | 98 void ConstrainedWebDialogDelegateBase::HandleKeyboardEvent( |
| 98 const NativeWebKeyboardEvent& event) { | 99 const NativeWebKeyboardEvent& event) { |
| 99 } | 100 } |
| OLD | NEW |