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

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

Issue 8298019: Implement InputWindowDialog with WebUI for bookmark folder management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again 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
Index: chrome/browser/ui/webui/input_window_dialog_ui.cc
diff --git a/chrome/browser/ui/webui/input_window_dialog_ui.cc b/chrome/browser/ui/webui/input_window_dialog_ui.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7b14efca372e5534d970a919db9d06ac5ccf614f
--- /dev/null
+++ b/chrome/browser/ui/webui/input_window_dialog_ui.cc
@@ -0,0 +1,33 @@
+// 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/input_window_dialog_ui.h"
+
+#include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
+#include "chrome/common/url_constants.h"
+#include "content/browser/tab_contents/tab_contents.h"
+#include "chrome/browser/profiles/profile.h"
+#include "grit/browser_resources.h"
+#include "grit/generated_resources.h"
+
+InputWindowDialogUI::InputWindowDialogUI(TabContents* contents)
+ : HtmlDialogUI(contents) {
+ ChromeWebUIDataSource* source =
+ new ChromeWebUIDataSource(chrome::kChromeUIInputWindowDialogHost);
+
+ source->AddLocalizedString("ok", IDS_OK);
+ source->AddLocalizedString("cancel", IDS_CANCEL);
+
+ // Set the json path.
+ source->set_json_path("strings.js");
+
+ // Set default resource.
+ source->set_default_resource(IDR_INPUT_WINDOW_DIALOG_HTML);
+
+ Profile* profile = Profile::FromBrowserContext(contents->browser_context());
+ profile->GetChromeURLDataManager()->AddDataSource(source);
+}
+
+InputWindowDialogUI::~InputWindowDialogUI() {
+}
« no previous file with comments | « chrome/browser/ui/webui/input_window_dialog_ui.h ('k') | chrome/browser/ui/webui/input_window_dialog_webui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698