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

Unified Diff: components/webui_generator/data_source_util.cc

Issue 928163002: Initial implementation of WebUI generator (WUG) toolkit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 10 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 | « components/webui_generator/data_source_util.h ('k') | components/webui_generator/export.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webui_generator/data_source_util.cc
diff --git a/components/webui_generator/data_source_util.cc b/components/webui_generator/data_source_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a3103cdc7cbb4db9a721d84e1f94eb03aa01fc18
--- /dev/null
+++ b/components/webui_generator/data_source_util.cc
@@ -0,0 +1,22 @@
+// Copyright 2015 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 "components/webui_generator/data_source_util.h"
+#include "content/public/browser/web_ui_data_source.h"
+#include "grit/components_resources.h"
+
+namespace webui_generator {
+
+void SetUpDataSource(content::WebUIDataSource* data_source) {
+ data_source->AddResourcePath("webui_generator/webui-view.html",
+ IDR_WUG_WEBUI_VIEW_HTML);
+ data_source->AddResourcePath("webui_generator/webui-view.js",
+ IDR_WUG_WEBUI_VIEW_JS);
+ data_source->AddResourcePath("webui_generator/context.js",
+ IDR_WUG_CONTEXT_JS);
+ data_source->AddResourcePath("webui_generator/context.html",
+ IDR_WUG_CONTEXT_HTML);
+}
+
+} // namespace webui_generator
« no previous file with comments | « components/webui_generator/data_source_util.h ('k') | components/webui_generator/export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698