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

Side by Side Diff: chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc

Issue 333713005: Move event stuff of web_view.js to its own class/file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move rest of the events Created 6 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.h" 5 #include "chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/sha1.h" 8 #include "base/sha1.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 source_map->RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS); 233 source_map->RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS);
234 source_map->RegisterSource("ChromeDirectSetting", 234 source_map->RegisterSource("ChromeDirectSetting",
235 IDR_CHROME_DIRECT_SETTING_JS); 235 IDR_CHROME_DIRECT_SETTING_JS);
236 236
237 // Platform app sources that are not API-specific.. 237 // Platform app sources that are not API-specific..
238 source_map->RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); 238 source_map->RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS);
239 source_map->RegisterSource("webview", IDR_WEBVIEW_CUSTOM_BINDINGS_JS); 239 source_map->RegisterSource("webview", IDR_WEBVIEW_CUSTOM_BINDINGS_JS);
240 // Note: webView not webview so that this doesn't interfere with the 240 // Note: webView not webview so that this doesn't interfere with the
241 // chrome.webview API bindings. 241 // chrome.webview API bindings.
242 source_map->RegisterSource("webView", IDR_WEB_VIEW_JS); 242 source_map->RegisterSource("webView", IDR_WEB_VIEW_JS);
243 source_map->RegisterSource("webViewEvents", IDR_WEB_VIEW_EVENTS_JS);
243 source_map->RegisterSource("webViewExperimental", 244 source_map->RegisterSource("webViewExperimental",
244 IDR_WEB_VIEW_EXPERIMENTAL_JS); 245 IDR_WEB_VIEW_EXPERIMENTAL_JS);
245 source_map->RegisterSource("webViewRequest", 246 source_map->RegisterSource("webViewRequest",
246 IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS); 247 IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS);
247 source_map->RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS); 248 source_map->RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS);
248 source_map->RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS); 249 source_map->RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS);
249 } 250 }
250 251
251 void ChromeExtensionsDispatcherDelegate::RequireAdditionalModules( 252 void ChromeExtensionsDispatcherDelegate::RequireAdditionalModules(
252 extensions::ModuleSystem* module_system, 253 extensions::ModuleSystem* module_system,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 new extensions::PermissionSet(extensions::APIPermissionSet(), 347 new extensions::PermissionSet(extensions::APIPermissionSet(),
347 extensions::ManifestPermissionSet(), 348 extensions::ManifestPermissionSet(),
348 origin_set, 349 origin_set,
349 extensions::URLPatternSet())); 350 extensions::URLPatternSet()));
350 } 351 }
351 352
352 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage( 353 void ChromeExtensionsDispatcherDelegate::HandleWebRequestAPIUsage(
353 bool webrequest_used) { 354 bool webrequest_used) {
354 webrequest_used_ = webrequest_used; 355 webrequest_used_ = webrequest_used;
355 } 356 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698