OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/constrained_html_ui.h" | 5 #include "chrome/browser/dom_ui/constrained_html_ui.h" |
6 | 6 |
7 #include "chrome/browser/dom_ui/html_dialog_tab_contents_delegate.h" | 7 #include "chrome/browser/dom_ui/html_dialog_tab_contents_delegate.h" |
8 #include "chrome/browser/dom_ui/html_dialog_ui.h" | 8 #include "chrome/browser/dom_ui/html_dialog_ui.h" |
9 #include "chrome/browser/gtk/constrained_window_gtk.h" | 9 #include "chrome/browser/gtk/constrained_window_gtk.h" |
10 #include "chrome/browser/gtk/gtk_util.h" | 10 #include "chrome/browser/gtk/gtk_util.h" |
11 #include "chrome/browser/gtk/tab_contents_container_gtk.h" | 11 #include "chrome/browser/gtk/tab_contents_container_gtk.h" |
12 #include "chrome/browser/renderer_host/render_view_host.h" | 12 #include "chrome/browser/renderer_host/render_view_host.h" |
13 #include "chrome/browser/tab_contents/tab_contents.h" | 13 #include "chrome/browser/tab_contents/tab_contents.h" |
14 #include "chrome/common/notification_service.h" | |
15 #include "chrome/common/notification_source.h" | 14 #include "chrome/common/notification_source.h" |
16 #include "gfx/rect.h" | 15 #include "gfx/rect.h" |
17 #include "ipc/ipc_message.h" | 16 #include "ipc/ipc_message.h" |
18 | 17 |
19 class ConstrainedHtmlDelegateGtk : public ConstrainedWindowGtkDelegate, | 18 class ConstrainedHtmlDelegateGtk : public ConstrainedWindowGtkDelegate, |
20 public HtmlDialogTabContentsDelegate, | 19 public HtmlDialogTabContentsDelegate, |
21 public ConstrainedHtmlUIDelegate { | 20 public ConstrainedHtmlUIDelegate { |
22 public: | 21 public: |
23 ConstrainedHtmlDelegateGtk(Profile* profile, | 22 ConstrainedHtmlDelegateGtk(Profile* profile, |
24 HtmlDialogUIDelegate* delegate); | 23 HtmlDialogUIDelegate* delegate); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 void ConstrainedHtmlUI::CreateConstrainedHtmlDialog( | 104 void ConstrainedHtmlUI::CreateConstrainedHtmlDialog( |
106 Profile* profile, | 105 Profile* profile, |
107 HtmlDialogUIDelegate* delegate, | 106 HtmlDialogUIDelegate* delegate, |
108 TabContents* overshadowed) { | 107 TabContents* overshadowed) { |
109 ConstrainedHtmlDelegateGtk* constrained_delegate = | 108 ConstrainedHtmlDelegateGtk* constrained_delegate = |
110 new ConstrainedHtmlDelegateGtk(profile, delegate); | 109 new ConstrainedHtmlDelegateGtk(profile, delegate); |
111 ConstrainedWindow* constrained_window = | 110 ConstrainedWindow* constrained_window = |
112 overshadowed->CreateConstrainedDialog(constrained_delegate); | 111 overshadowed->CreateConstrainedDialog(constrained_delegate); |
113 constrained_delegate->set_window(constrained_window); | 112 constrained_delegate->set_window(constrained_window); |
114 } | 113 } |
OLD | NEW |