Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: chrome/browser/ui/views/constrained_html_delegate_gtk.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/tab_contents/tab_contents.h" 12 #include "chrome/browser/tab_contents/tab_contents.h"
13 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" 13 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h"
14 #include "gfx/rect.h" 14 #include "gfx/rect.h"
15 #include "ipc/ipc_message.h" 15 #include "ipc/ipc_message.h"
16 #include "views/widget/widget_gtk.h" 16 #include "views/widget/widget_gtk.h"
17 17
18 // ConstrainedHtmlDelegateGtk works with ConstrainedWindowGtk to present 18 // ConstrainedHtmlDelegateGtk works with ConstrainedWindowGtk to present
19 // a TabContents in a ContraintedHtmlUI. 19 // a TabContents in a ContraintedHtmlUI.
20 class ConstrainedHtmlDelegateGtk : public views::WidgetGtk, 20 class ConstrainedHtmlDelegateGtk : public views::WidgetGtk,
21 public ConstrainedHtmlUIDelegate, 21 public ConstrainedHtmlUIDelegate,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void ConstrainedHtmlUI::CreateConstrainedHtmlDialog( 109 void ConstrainedHtmlUI::CreateConstrainedHtmlDialog(
110 Profile* profile, 110 Profile* profile,
111 HtmlDialogUIDelegate* delegate, 111 HtmlDialogUIDelegate* delegate,
112 TabContents* container) { 112 TabContents* container) {
113 ConstrainedHtmlDelegateGtk* constrained_delegate = 113 ConstrainedHtmlDelegateGtk* constrained_delegate =
114 new ConstrainedHtmlDelegateGtk(profile, delegate); 114 new ConstrainedHtmlDelegateGtk(profile, delegate);
115 ConstrainedWindow* constrained_window = 115 ConstrainedWindow* constrained_window =
116 container->CreateConstrainedDialog(constrained_delegate); 116 container->CreateConstrainedDialog(constrained_delegate);
117 constrained_delegate->set_window(constrained_window); 117 constrained_delegate->set_window(constrained_window);
118 } 118 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/collected_cookies_win.cc ('k') | chrome/browser/ui/views/constrained_html_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698