| 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 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 source_map_.RegisterSource("ChromeDirectSetting", | 1023 source_map_.RegisterSource("ChromeDirectSetting", |
| 1024 IDR_CHROME_DIRECT_SETTING_JS); | 1024 IDR_CHROME_DIRECT_SETTING_JS); |
| 1025 | 1025 |
| 1026 // Platform app sources that are not API-specific.. | 1026 // Platform app sources that are not API-specific.. |
| 1027 source_map_.RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); | 1027 source_map_.RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); |
| 1028 // Note: webView not webview so that this doesn't interfere with the | 1028 // Note: webView not webview so that this doesn't interfere with the |
| 1029 // chrome.webview API bindings. | 1029 // chrome.webview API bindings. |
| 1030 source_map_.RegisterSource("webView", IDR_WEB_VIEW_JS); | 1030 source_map_.RegisterSource("webView", IDR_WEB_VIEW_JS); |
| 1031 source_map_.RegisterSource("webViewExperimental", | 1031 source_map_.RegisterSource("webViewExperimental", |
| 1032 IDR_WEB_VIEW_EXPERIMENTAL_JS); | 1032 IDR_WEB_VIEW_EXPERIMENTAL_JS); |
| 1033 source_map_.RegisterSource("webViewRequest", |
| 1034 IDR_WEB_VIEW_REQUEST_CUSTOM_BINDINGS_JS); |
| 1033 source_map_.RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS); | 1035 source_map_.RegisterSource("denyWebView", IDR_WEB_VIEW_DENY_JS); |
| 1034 source_map_.RegisterSource("adView", IDR_AD_VIEW_JS); | 1036 source_map_.RegisterSource("adView", IDR_AD_VIEW_JS); |
| 1035 source_map_.RegisterSource("denyAdView", IDR_AD_VIEW_DENY_JS); | 1037 source_map_.RegisterSource("denyAdView", IDR_AD_VIEW_DENY_JS); |
| 1036 source_map_.RegisterSource("platformApp", IDR_PLATFORM_APP_JS); | 1038 source_map_.RegisterSource("platformApp", IDR_PLATFORM_APP_JS); |
| 1037 source_map_.RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS); | 1039 source_map_.RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS); |
| 1038 | 1040 |
| 1039 #if defined OS_CHROMEOS | 1041 #if defined OS_CHROMEOS |
| 1040 source_map_.RegisterSource("wallpaper", IDR_WALLPAPER_CUSTOM_BINDINGS_JS); | 1042 source_map_.RegisterSource("wallpaper", IDR_WALLPAPER_CUSTOM_BINDINGS_JS); |
| 1041 #endif | 1043 #endif |
| 1042 } | 1044 } |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1620 RenderView* background_view = | 1622 RenderView* background_view = |
| 1621 ExtensionHelper::GetBackgroundPage(extension_id); | 1623 ExtensionHelper::GetBackgroundPage(extension_id); |
| 1622 if (background_view) { | 1624 if (background_view) { |
| 1623 background_view->Send(new ExtensionHostMsg_EventAck( | 1625 background_view->Send(new ExtensionHostMsg_EventAck( |
| 1624 background_view->GetRoutingID())); | 1626 background_view->GetRoutingID())); |
| 1625 } | 1627 } |
| 1626 } | 1628 } |
| 1627 } | 1629 } |
| 1628 | 1630 |
| 1629 } // namespace extensions | 1631 } // namespace extensions |
| OLD | NEW |