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

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

Issue 131094: Add GetMessageHandlers to HtmlDialogUIDelegate to allow... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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
« no previous file with comments | « chrome/browser/views/html_dialog_view.h ('k') | chrome/common/temp_scaffolding_stubs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/browser/tab_contents/tab_contents.h" 8 #include "chrome/browser/tab_contents/tab_contents.h"
9 #include "views/widget/root_view.h" 9 #include "views/widget/root_view.h"
10 #include "views/widget/widget.h" 10 #include "views/widget/widget.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 86 }
87 87
88 std::wstring HtmlDialogView::GetDialogTitle() const { 88 std::wstring HtmlDialogView::GetDialogTitle() const {
89 return GetWindowTitle(); 89 return GetWindowTitle();
90 } 90 }
91 91
92 GURL HtmlDialogView::GetDialogContentURL() const { 92 GURL HtmlDialogView::GetDialogContentURL() const {
93 return delegate_->GetDialogContentURL(); 93 return delegate_->GetDialogContentURL();
94 } 94 }
95 95
96 void HtmlDialogView::GetDOMMessageHandlers(
97 std::vector<DOMMessageHandler*>* handlers) const {
98 delegate_->GetDOMMessageHandlers(handlers);
99 }
100
96 void HtmlDialogView::GetDialogSize(gfx::Size* size) const { 101 void HtmlDialogView::GetDialogSize(gfx::Size* size) const {
97 delegate_->GetDialogSize(size); 102 delegate_->GetDialogSize(size);
98 } 103 }
99 104
100 std::string HtmlDialogView::GetDialogArgs() const { 105 std::string HtmlDialogView::GetDialogArgs() const {
101 return delegate_->GetDialogArgs(); 106 return delegate_->GetDialogArgs();
102 } 107 }
103 108
104 void HtmlDialogView::OnDialogClosed(const std::string& json_retval) { 109 void HtmlDialogView::OnDialogClosed(const std::string& json_retval) {
105 delegate_->OnDialogClosed(json_retval); 110 delegate_->OnDialogClosed(json_retval);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 195
191 tab_contents_->set_delegate(this); 196 tab_contents_->set_delegate(this);
192 197
193 // Set the delegate. This must be done before loading the page. See 198 // Set the delegate. This must be done before loading the page. See
194 // the comment above HtmlDialogUI in its header file for why. 199 // the comment above HtmlDialogUI in its header file for why.
195 HtmlDialogUI::GetPropertyAccessor().SetProperty(tab_contents_->property_bag(), 200 HtmlDialogUI::GetPropertyAccessor().SetProperty(tab_contents_->property_bag(),
196 this); 201 this);
197 202
198 DOMView::LoadURL(delegate_->GetDialogContentURL()); 203 DOMView::LoadURL(delegate_->GetDialogContentURL());
199 } 204 }
OLDNEW
« no previous file with comments | « chrome/browser/views/html_dialog_view.h ('k') | chrome/common/temp_scaffolding_stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698