| OLD | NEW |
| 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 "extensions/renderer/extension_helper.h" | 5 #include "extensions/renderer/extension_helper.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "content/public/renderer/render_view.h" | 9 #include "content/public/renderer/render_view.h" |
| 8 #include "extensions/common/constants.h" | 10 #include "extensions/common/constants.h" |
| 9 #include "extensions/common/extension_messages.h" | 11 #include "extensions/common/extension_messages.h" |
| 10 #include "extensions/common/permissions/permissions_data.h" | 12 #include "extensions/common/permissions/permissions_data.h" |
| 11 #include "extensions/common/url_pattern_set.h" | 13 #include "extensions/common/url_pattern_set.h" |
| 12 #include "extensions/renderer/api/automation/automation_api_helper.h" | 14 #include "extensions/renderer/api/automation/automation_api_helper.h" |
| 13 #include "extensions/renderer/dispatcher.h" | 15 #include "extensions/renderer/dispatcher.h" |
| 14 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 16 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
| 15 #include "third_party/WebKit/public/web/WebDocument.h" | 17 #include "third_party/WebKit/public/web/WebDocument.h" |
| 16 #include "third_party/WebKit/public/web/WebView.h" | 18 #include "third_party/WebKit/public/web/WebView.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 render_view()->GetWebView()->mainFrame()->mainWorldScriptContext(); | 66 render_view()->GetWebView()->mainFrame()->mainWorldScriptContext(); |
| 65 ScriptContext* script_context = | 67 ScriptContext* script_context = |
| 66 dispatcher_->script_context_set().GetByV8Context(v8_context); | 68 dispatcher_->script_context_set().GetByV8Context(v8_context); |
| 67 if (!script_context) | 69 if (!script_context) |
| 68 return; | 70 return; |
| 69 script_context->module_system()->CallModuleMethod("app.window", | 71 script_context->module_system()->CallModuleMethod("app.window", |
| 70 "onAppWindowClosed"); | 72 "onAppWindowClosed"); |
| 71 } | 73 } |
| 72 | 74 |
| 73 } // namespace extensions | 75 } // namespace extensions |
| OLD | NEW |