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

Unified Diff: extensions/renderer/dispatcher.cc

Issue 661743005: Moved constants out of web_view.js and into a new file, web_view_constants.js, so that the constant… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « no previous file | extensions/renderer/resources/extensions_renderer_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/dispatcher.cc
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc
index 5b4f93223496afc9ba10d5adee1e25f014cbb94e..0cb5bb418dff81a78a50957b1de4b8f331266239 100644
--- a/extensions/renderer/dispatcher.cc
+++ b/extensions/renderer/dispatcher.cc
@@ -334,6 +334,7 @@ void Dispatcher::DidCreateScriptContext(
// The API will be automatically set up when first used.
if (context->GetAvailability("webViewInternal").is_available()) {
module_system->Require("webView");
+ module_system->Require("webViewConstants");
if (context->GetAvailability("webViewExperimentalInternal")
.is_available()) {
module_system->Require("webViewExperimental");
@@ -548,6 +549,8 @@ std::vector<std::pair<std::string, int> > Dispatcher::GetJsResources() {
// Note: webView not webview so that this doesn't interfere with the
// chrome.webview API bindings.
resources.push_back(std::make_pair("webView", IDR_WEB_VIEW_JS));
+ resources.push_back(std::make_pair("webViewConstants",
+ IDR_WEB_VIEW_CONSTANTS_JS));
resources.push_back(std::make_pair("webViewEvents", IDR_WEB_VIEW_EVENTS_JS));
resources.push_back(
std::make_pair("webViewExperimental", IDR_WEB_VIEW_EXPERIMENTAL_JS));
« no previous file with comments | « no previous file | extensions/renderer/resources/extensions_renderer_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698