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

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

Issue 39206: NO CODE CHANGE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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) 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // if it's a dialog we know about, we trust it not to be mean to the user. 149 // if it's a dialog we know about, we trust it not to be mean to the user.
150 window()->SetBounds(pos); 150 window()->SetBounds(pos);
151 } 151 }
152 152
153 bool HtmlDialogView::IsPopup(TabContents* source) { 153 bool HtmlDialogView::IsPopup(TabContents* source) {
154 // This needs to return true so that we are allowed to be resized by our 154 // This needs to return true so that we are allowed to be resized by our
155 // contents. 155 // contents.
156 return true; 156 return true;
157 } 157 }
158 158
159 void HtmlDialogView::ToolbarSizeChanged(TabContents* source, bool is_animating) { 159 void HtmlDialogView::ToolbarSizeChanged(TabContents* source,
160 bool is_animating) {
160 Layout(); 161 Layout();
161 } 162 }
162 163
163 void HtmlDialogView::URLStarredChanged(TabContents* source, bool starred) { 164 void HtmlDialogView::URLStarredChanged(TabContents* source, bool starred) {
164 // We don't have a visible star to click in the window. 165 // We don't have a visible star to click in the window.
165 NOTREACHED(); 166 NOTREACHED();
166 } 167 }
167 168
168 void HtmlDialogView::UpdateTargetURL(TabContents* source, const GURL& url) { 169 void HtmlDialogView::UpdateTargetURL(TabContents* source, const GURL& url) {
169 // Ignored. 170 // Ignored.
170 } 171 }
171 172
172 //////////////////////////////////////////////////////////////////////////////// 173 ////////////////////////////////////////////////////////////////////////////////
173 // HtmlDialogView: 174 // HtmlDialogView:
174 175
175 void HtmlDialogView::InitDialog() { 176 void HtmlDialogView::InitDialog() {
176 // Now Init the DOMView. This view runs in its own process to render the html. 177 // Now Init the DOMView. This view runs in its own process to render the html.
177 DOMView::Init(profile_, NULL); 178 DOMView::Init(profile_, NULL);
178 179
179 // Make sure this new TabContents we just created in Init() knows about us. 180 // Make sure this new TabContents we just created in Init() knows about us.
180 DCHECK(host_->type() == TAB_CONTENTS_HTML_DIALOG); 181 DCHECK(host_->type() == TAB_CONTENTS_HTML_DIALOG);
181 HtmlDialogContents* host = static_cast<HtmlDialogContents*>(host_); 182 HtmlDialogContents* host = static_cast<HtmlDialogContents*>(host_);
182 host->Init(this); 183 host->Init(this);
183 host->set_delegate(this); 184 host->set_delegate(this);
184 } 185 }
185 186
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/glass_browser_frame_view.cc ('k') | chrome/browser/views/options/languages_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698