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

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

Issue 6204002: Carnitas: Remove chrome/browser/views, update references. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yay, more syncing Created 9 years, 11 months 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) 2011 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/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/tab_contents/tab_contents.h" 10 #include "chrome/browser/tab_contents/tab_contents.h"
11 #include "chrome/browser/views/tab_contents/tab_contents_container.h" 11 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h"
12 #include "gfx/rect.h" 12 #include "gfx/rect.h"
13 #include "ipc/ipc_message.h" 13 #include "ipc/ipc_message.h"
14 #include "views/view.h" 14 #include "views/view.h"
15 #include "views/widget/widget_win.h" 15 #include "views/widget/widget_win.h"
16 #include "views/window/window_delegate.h" 16 #include "views/window/window_delegate.h"
17 17
18 class ConstrainedHtmlDelegateWin : public TabContentsContainer, 18 class ConstrainedHtmlDelegateWin : public TabContentsContainer,
19 public ConstrainedHtmlUIDelegate, 19 public ConstrainedHtmlUIDelegate,
20 public ConstrainedWindowDelegate, 20 public ConstrainedWindowDelegate,
21 public HtmlDialogTabContentsDelegate { 21 public HtmlDialogTabContentsDelegate {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 TabContentsContainer::ViewHierarchyChanged(is_add, parent, child); 55 TabContentsContainer::ViewHierarchyChanged(is_add, parent, child);
56 if (is_add && child == this) { 56 if (is_add && child == this) {
57 ChangeTabContents(&html_tab_contents_); 57 ChangeTabContents(&html_tab_contents_);
58 } 58 }
59 } 59 }
60 60
61 void set_window(ConstrainedWindow* window) { 61 void set_window(ConstrainedWindow* window) {
62 window_ = window; 62 window_ = window;
63 } 63 }
64 64
65 private: 65 private:
66 TabContents html_tab_contents_; 66 TabContents html_tab_contents_;
67 67
68 HtmlDialogUIDelegate* html_delegate_; 68 HtmlDialogUIDelegate* html_delegate_;
69 69
70 // The constrained window that owns |this|. Saved so we can close it later. 70 // The constrained window that owns |this|. Saved so we can close it later.
71 ConstrainedWindow* window_; 71 ConstrainedWindow* window_;
72 }; 72 };
73 73
74 ConstrainedHtmlDelegateWin::ConstrainedHtmlDelegateWin( 74 ConstrainedHtmlDelegateWin::ConstrainedHtmlDelegateWin(
75 Profile* profile, 75 Profile* profile,
(...skipping 28 matching lines...) Expand all
104 void ConstrainedHtmlUI::CreateConstrainedHtmlDialog( 104 void ConstrainedHtmlUI::CreateConstrainedHtmlDialog(
105 Profile* profile, 105 Profile* profile,
106 HtmlDialogUIDelegate* delegate, 106 HtmlDialogUIDelegate* delegate,
107 TabContents* container) { 107 TabContents* container) {
108 ConstrainedHtmlDelegateWin* constrained_delegate = 108 ConstrainedHtmlDelegateWin* constrained_delegate =
109 new ConstrainedHtmlDelegateWin(profile, delegate); 109 new ConstrainedHtmlDelegateWin(profile, delegate);
110 ConstrainedWindow* constrained_window = 110 ConstrainedWindow* constrained_window =
111 container->CreateConstrainedDialog(constrained_delegate); 111 container->CreateConstrainedDialog(constrained_delegate);
112 constrained_delegate->set_window(constrained_window); 112 constrained_delegate->set_window(constrained_window);
113 } 113 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/confirm_message_box_dialog.cc ('k') | chrome/browser/ui/views/constrained_window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698