| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/dispatcher.h" | 5 #include "chrome/renderer/extensions/dispatcher.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/alias.h" | 9 #include "base/debug/alias.h" |
| 10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
| (...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1036 source_map_.RegisterSource("ChromeDirectSetting", | 1036 source_map_.RegisterSource("ChromeDirectSetting", |
| 1037 IDR_CHROME_DIRECT_SETTING_JS); | 1037 IDR_CHROME_DIRECT_SETTING_JS); |
| 1038 | 1038 |
| 1039 // Platform app sources that are not API-specific.. | 1039 // Platform app sources that are not API-specific.. |
| 1040 source_map_.RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); | 1040 source_map_.RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); |
| 1041 // Note: webView not webview so that this doesn't interfere with the | 1041 // Note: webView not webview so that this doesn't interfere with the |
| 1042 // chrome.webview API bindings. | 1042 // chrome.webview API bindings. |
| 1043 source_map_.RegisterSource("webView", IDR_WEB_VIEW_JS); | 1043 source_map_.RegisterSource("webView", IDR_WEB_VIEW_JS); |
| 1044 source_map_.RegisterSource("webViewExperimental", | 1044 source_map_.RegisterSource("webViewExperimental", |
| 1045 IDR_WEB_VIEW_EXPERIMENTAL_JS); | 1045 IDR_WEB_VIEW_EXPERIMENTAL_JS); |
| 1046 source_map_.RegisterSource("webViewRequest", |
| 1047 IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS); |
| 1046 source_map_.RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS); | 1048 source_map_.RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS); |
| 1047 source_map_.RegisterSource("adView", IDR_AD_VIEW_JS); | 1049 source_map_.RegisterSource("adView", IDR_AD_VIEW_JS); |
| 1048 source_map_.RegisterSource("denyAdView", IDR_AD_VIEW_DENY_JS); | 1050 source_map_.RegisterSource("denyAdView", IDR_AD_VIEW_DENY_JS); |
| 1049 source_map_.RegisterSource("platformApp", IDR_PLATFORM_APP_JS); | 1051 source_map_.RegisterSource("platformApp", IDR_PLATFORM_APP_JS); |
| 1050 source_map_.RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS); | 1052 source_map_.RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS); |
| 1051 | 1053 |
| 1052 #if defined OS_CHROMEOS | 1054 #if defined OS_CHROMEOS |
| 1053 source_map_.RegisterSource("wallpaper", IDR_WALLPAPER_CUSTOM_BINDINGS_JS); | 1055 source_map_.RegisterSource("wallpaper", IDR_WALLPAPER_CUSTOM_BINDINGS_JS); |
| 1054 #endif | 1056 #endif |
| 1055 } | 1057 } |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1633 RenderView* background_view = | 1635 RenderView* background_view = |
| 1634 ExtensionHelper::GetBackgroundPage(extension_id); | 1636 ExtensionHelper::GetBackgroundPage(extension_id); |
| 1635 if (background_view) { | 1637 if (background_view) { |
| 1636 background_view->Send(new ExtensionHostMsg_EventAck( | 1638 background_view->Send(new ExtensionHostMsg_EventAck( |
| 1637 background_view->GetRoutingID())); | 1639 background_view->GetRoutingID())); |
| 1638 } | 1640 } |
| 1639 } | 1641 } |
| 1640 } | 1642 } |
| 1641 | 1643 |
| 1642 } // namespace extensions | 1644 } // namespace extensions |
| OLD | NEW |