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

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

Issue 8417005: Share TabFirstRenderWatcher with HtmlDialogView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 2 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_html_dialog_ui_delegate.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/test_html_dialog_ui_delegate.cc
diff --git a/chrome/browser/ui/webui/test_html_dialog_ui_delegate.cc b/chrome/browser/ui/webui/test_html_dialog_ui_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..11eb078bddff143b3c5571251c022853483d43ce
--- /dev/null
+++ b/chrome/browser/ui/webui/test_html_dialog_ui_delegate.cc
@@ -0,0 +1,56 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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 "base/utf_string_conversions.h"
+
+namespace test {
+
+TestHtmlDialogUIDelegate::TestHtmlDialogUIDelegate(const GURL& url)
+ : url_(url),
+ size_(400, 400) {
+}
+
+TestHtmlDialogUIDelegate::~TestHtmlDialogUIDelegate() {
+}
+
+bool TestHtmlDialogUIDelegate::IsDialogModal() const {
+ return true;
+}
+
+string16 TestHtmlDialogUIDelegate::GetDialogTitle() const {
+ return UTF8ToUTF16("Test");
+}
+
+GURL TestHtmlDialogUIDelegate::GetDialogContentURL() const {
+ return url_;
+}
+
+void TestHtmlDialogUIDelegate::GetWebUIMessageHandlers(
+ std::vector<WebUIMessageHandler*>* handlers) const {
+}
+
+void TestHtmlDialogUIDelegate::GetDialogSize(gfx::Size* size) const {
+ *size = size_;
+}
+
+std::string TestHtmlDialogUIDelegate::GetDialogArgs() const {
+ return std::string();
+}
+
+void TestHtmlDialogUIDelegate::OnDialogClosed(const std::string& json_retval) {
+}
+
+void TestHtmlDialogUIDelegate::OnCloseContents(TabContents* source,
+ bool* out_close_dialog) {
+ if (out_close_dialog)
+ *out_close_dialog = true;
+}
+
+bool TestHtmlDialogUIDelegate::ShouldShowDialogTitle() const {
+ return true;
+}
+
+} // namespace test
« no previous file with comments | « chrome/browser/ui/webui/test_html_dialog_ui_delegate.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698