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

Side by Side Diff: chrome/browser/views/html_dialog_view.cc

Issue 10973: Test the feasibility of turning Chrome into a multi-process ActiveX control Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 12 years, 1 month 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/views/html_dialog_view.h" 5 #include "chrome/browser/views/html_dialog_view.h"
6 6
7 #include "chrome/browser/browser.h" 7 #include "chrome/browser/browser.h"
8 #include "chrome/views/root_view.h" 8 #include "chrome/views/root_view.h"
9 #include "chrome/views/window.h" 9 #include "chrome/views/window.h"
10 10
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // if it's a dialog we know about, we trust it not to be mean to the user. 137 // if it's a dialog we know about, we trust it not to be mean to the user.
138 window()->SetBounds(pos); 138 window()->SetBounds(pos);
139 } 139 }
140 140
141 bool HtmlDialogView::IsPopup(TabContents* source) { 141 bool HtmlDialogView::IsPopup(TabContents* source) {
142 // This needs to return true so that we are allowed to be resized by our 142 // This needs to return true so that we are allowed to be resized by our
143 // contents. 143 // contents.
144 return true; 144 return true;
145 } 145 }
146 146
147 bool HtmlDialogView::IsEmbedded(TabContents* source) {
148 return false;
149 }
150
147 void HtmlDialogView::ToolbarSizeChanged(TabContents* source, bool is_animating) { 151 void HtmlDialogView::ToolbarSizeChanged(TabContents* source, bool is_animating) {
148 Layout(); 152 Layout();
149 } 153 }
150 154
151 void HtmlDialogView::URLStarredChanged(TabContents* source, bool starred) { 155 void HtmlDialogView::URLStarredChanged(TabContents* source, bool starred) {
152 // We don't have a visible star to click in the window. 156 // We don't have a visible star to click in the window.
153 NOTREACHED(); 157 NOTREACHED();
154 } 158 }
155 159
156 void HtmlDialogView::UpdateTargetURL(TabContents* source, const GURL& url) { 160 void HtmlDialogView::UpdateTargetURL(TabContents* source, const GURL& url) {
157 // Ignored. 161 // Ignored.
158 } 162 }
159 163
160 //////////////////////////////////////////////////////////////////////////////// 164 ////////////////////////////////////////////////////////////////////////////////
161 // HtmlDialogView: 165 // HtmlDialogView:
162 166
163 void HtmlDialogView::InitDialog() { 167 void HtmlDialogView::InitDialog() {
164 // Now Init the DOMView. This view runs in its own process to render the html. 168 // Now Init the DOMView. This view runs in its own process to render the html.
165 DOMView::Init(profile_, NULL); 169 DOMView::Init(profile_, NULL);
166 170
167 // Make sure this new TabContents we just created in Init() knows about us. 171 // Make sure this new TabContents we just created in Init() knows about us.
168 DCHECK(host_->type() == TAB_CONTENTS_HTML_DIALOG); 172 DCHECK(host_->type() == TAB_CONTENTS_HTML_DIALOG);
169 HtmlDialogContents* host = static_cast<HtmlDialogContents*>(host_); 173 HtmlDialogContents* host = static_cast<HtmlDialogContents*>(host_);
170 host->Init(this); 174 host->Init(this);
171 host->set_delegate(this); 175 host->set_delegate(this);
172 } 176 }
173 177
OLDNEW
« no previous file with comments | « chrome/browser/views/html_dialog_view.h ('k') | chrome/browser/views/tab_contents_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698