| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/plugins/chrome_plugin_placeholder.h" | 5 #include "chrome/renderer/plugins/chrome_plugin_placeholder.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/common/prerender_messages.h" | 9 #include "chrome/common/prerender_messages.h" |
| 10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
| 11 #include "chrome/renderer/chrome_content_renderer_client.h" | 11 #include "chrome/renderer/chrome_content_renderer_client.h" |
| 12 #include "chrome/renderer/custom_menu_commands.h" | 12 #include "chrome/renderer/custom_menu_commands.h" |
| 13 #include "chrome/renderer/plugins/plugin_uma.h" | 13 #include "chrome/renderer/plugins/plugin_uma.h" |
| 14 #include "content/public/common/context_menu_params.h" | 14 #include "content/public/common/context_menu_params.h" |
| 15 #include "content/public/renderer/render_frame.h" | 15 #include "content/public/renderer/render_frame.h" |
| 16 #include "content/public/renderer/render_thread.h" | 16 #include "content/public/renderer/render_thread.h" |
| 17 #include "gin/handle.h" | 17 #include "gin/handle.h" |
| 18 #include "gin/object_template_builder.h" | 18 #include "gin/object_template_builder.h" |
| 19 #include "grit/content_strings.h" |
| 19 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
| 20 #include "grit/renderer_resources.h" | 21 #include "grit/renderer_resources.h" |
| 21 #include "grit/webkit_strings.h" | |
| 22 #include "third_party/WebKit/public/web/WebDocument.h" | 22 #include "third_party/WebKit/public/web/WebDocument.h" |
| 23 #include "third_party/WebKit/public/web/WebInputEvent.h" | 23 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 24 #include "third_party/WebKit/public/web/WebKit.h" | 24 #include "third_party/WebKit/public/web/WebKit.h" |
| 25 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 25 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 26 #include "third_party/WebKit/public/web/WebScriptSource.h" | 26 #include "third_party/WebKit/public/web/WebScriptSource.h" |
| 27 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
| 28 #include "ui/base/resource/resource_bundle.h" | 28 #include "ui/base/resource/resource_bundle.h" |
| 29 #include "ui/base/webui/jstemplate_builder.h" | 29 #include "ui/base/webui/jstemplate_builder.h" |
| 30 | 30 |
| 31 using base::UserMetricsAction; | 31 using base::UserMetricsAction; |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 v8::Handle<v8::Object> global = context->Global(); | 365 v8::Handle<v8::Object> global = context->Global(); |
| 366 global->Set(gin::StringToV8(isolate, "plugin"), | 366 global->Set(gin::StringToV8(isolate, "plugin"), |
| 367 gin::CreateHandle(isolate, this).ToV8()); | 367 gin::CreateHandle(isolate, this).ToV8()); |
| 368 } | 368 } |
| 369 | 369 |
| 370 gin::ObjectTemplateBuilder ChromePluginPlaceholder::GetObjectTemplateBuilder( | 370 gin::ObjectTemplateBuilder ChromePluginPlaceholder::GetObjectTemplateBuilder( |
| 371 v8::Isolate* isolate) { | 371 v8::Isolate* isolate) { |
| 372 return PluginPlaceholder::GetObjectTemplateBuilder(isolate).SetMethod( | 372 return PluginPlaceholder::GetObjectTemplateBuilder(isolate).SetMethod( |
| 373 "openAboutPlugins", &ChromePluginPlaceholder::OpenAboutPluginsCallback); | 373 "openAboutPlugins", &ChromePluginPlaceholder::OpenAboutPluginsCallback); |
| 374 } | 374 } |
| OLD | NEW |