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

Unified Diff: chrome/browser/ui/webui/test_web_dialog_delegate.cc

Issue 10214001: WebDialogs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/test_web_dialog_delegate.h ('k') | chrome/browser/ui/webui/web_dialog_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/test_web_dialog_delegate.cc
===================================================================
--- chrome/browser/ui/webui/test_web_dialog_delegate.cc (revision 133680)
+++ chrome/browser/ui/webui/test_web_dialog_delegate.cc (working copy)
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/webui/test_html_dialog_ui_delegate.h"
+#include "chrome/browser/ui/webui/test_web_dialog_delegate.h"
#include "base/utf_string_conversions.h"
@@ -11,48 +11,48 @@
namespace test {
-TestHtmlDialogUIDelegate::TestHtmlDialogUIDelegate(const GURL& url)
+TestWebDialogDelegate::TestWebDialogDelegate(const GURL& url)
: url_(url),
size_(400, 400) {
}
-TestHtmlDialogUIDelegate::~TestHtmlDialogUIDelegate() {
+TestWebDialogDelegate::~TestWebDialogDelegate() {
}
-ui::ModalType TestHtmlDialogUIDelegate::GetDialogModalType() const {
+ui::ModalType TestWebDialogDelegate::GetDialogModalType() const {
return ui::MODAL_TYPE_WINDOW;
}
-string16 TestHtmlDialogUIDelegate::GetDialogTitle() const {
+string16 TestWebDialogDelegate::GetDialogTitle() const {
return UTF8ToUTF16("Test");
}
-GURL TestHtmlDialogUIDelegate::GetDialogContentURL() const {
+GURL TestWebDialogDelegate::GetDialogContentURL() const {
return url_;
}
-void TestHtmlDialogUIDelegate::GetWebUIMessageHandlers(
+void TestWebDialogDelegate::GetWebUIMessageHandlers(
std::vector<WebUIMessageHandler*>* handlers) const {
}
-void TestHtmlDialogUIDelegate::GetDialogSize(gfx::Size* size) const {
+void TestWebDialogDelegate::GetDialogSize(gfx::Size* size) const {
*size = size_;
}
-std::string TestHtmlDialogUIDelegate::GetDialogArgs() const {
+std::string TestWebDialogDelegate::GetDialogArgs() const {
return std::string();
}
-void TestHtmlDialogUIDelegate::OnDialogClosed(const std::string& json_retval) {
+void TestWebDialogDelegate::OnDialogClosed(const std::string& json_retval) {
}
-void TestHtmlDialogUIDelegate::OnCloseContents(WebContents* source,
+void TestWebDialogDelegate::OnCloseContents(WebContents* source,
bool* out_close_dialog) {
if (out_close_dialog)
*out_close_dialog = true;
}
-bool TestHtmlDialogUIDelegate::ShouldShowDialogTitle() const {
+bool TestWebDialogDelegate::ShouldShowDialogTitle() const {
return true;
}
« no previous file with comments | « chrome/browser/ui/webui/test_web_dialog_delegate.h ('k') | chrome/browser/ui/webui/web_dialog_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698