Lines Matching refs:source
2 // Use of this source code is governed by a BSD-style license that can be
24 content::WebUIDataSource* source =
26 source->SetDefaultResource(IDR_ABOUT_DOM_DISTILLER_HTML);
27 source->AddResourcePath("about_dom_distiller.css",
29 source->AddResourcePath("about_dom_distiller.js", IDR_ABOUT_DOM_DISTILLER_JS);
31 source->SetUseJsonJSFormatV2();
32 source->AddLocalizedString("domDistillerTitle",
34 source->AddLocalizedString("addArticleUrl",
36 source->AddLocalizedString("addArticleAddButtonLabel",
38 source->AddLocalizedString("addArticleFailedLabel",
40 source->AddLocalizedString("viewUrlButtonLabel",
42 source->AddLocalizedString("viewUrlFailedLabel",
44 source->AddLocalizedString("loadingEntries",
46 source->AddLocalizedString("refreshButtonLabel",
51 content::WebUIDataSource::Add(browser_context, source);
52 source->SetJsonPath("strings.js");