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 "extensions/renderer/app_window_custom_bindings.h" | 5 #include "extensions/renderer/app_window_custom_bindings.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "content/public/child/v8_value_converter.h" | 10 #include "content/public/child/v8_value_converter.h" |
11 #include "content/public/renderer/render_thread.h" | 11 #include "content/public/renderer/render_thread.h" |
12 #include "content/public/renderer/render_view.h" | 12 #include "content/public/renderer/render_view.h" |
13 #include "content/public/renderer/render_view_observer.h" | 13 #include "content/public/renderer/render_view_observer.h" |
14 #include "content/public/renderer/render_view_visitor.h" | 14 #include "content/public/renderer/render_view_visitor.h" |
15 #include "extensions/common/extension_messages.h" | 15 #include "extensions/common/extension_messages.h" |
16 #include "extensions/common/switches.h" | 16 #include "extensions/common/switches.h" |
17 #include "extensions/renderer/dispatcher.h" | 17 #include "extensions/renderer/dispatcher.h" |
18 #include "extensions/renderer/scoped_persistent.h" | |
19 #include "extensions/renderer/script_context.h" | 18 #include "extensions/renderer/script_context.h" |
20 #include "extensions/renderer/script_context_set.h" | 19 #include "extensions/renderer/script_context_set.h" |
21 #include "grit/extensions_renderer_resources.h" | 20 #include "grit/extensions_renderer_resources.h" |
22 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 21 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
23 #include "third_party/WebKit/public/web/WebView.h" | 22 #include "third_party/WebKit/public/web/WebView.h" |
24 #include "ui/base/resource/resource_bundle.h" | 23 #include "ui/base/resource/resource_bundle.h" |
25 #include "v8/include/v8.h" | 24 #include "v8/include/v8.h" |
26 | 25 |
27 namespace extensions { | 26 namespace extensions { |
28 | 27 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 .GetRawDataResource(IDR_WINDOW_CONTROLS_TEMPLATE_HTML) | 118 .GetRawDataResource(IDR_WINDOW_CONTROLS_TEMPLATE_HTML) |
120 .as_string()); | 119 .as_string()); |
121 scoped_ptr<content::V8ValueConverter> converter( | 120 scoped_ptr<content::V8ValueConverter> converter( |
122 content::V8ValueConverter::create()); | 121 content::V8ValueConverter::create()); |
123 result = converter->ToV8Value(&value, context()->v8_context()); | 122 result = converter->ToV8Value(&value, context()->v8_context()); |
124 } | 123 } |
125 args.GetReturnValue().Set(result); | 124 args.GetReturnValue().Set(result); |
126 } | 125 } |
127 | 126 |
128 } // namespace extensions | 127 } // namespace extensions |
OLD | NEW |