| 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 "components/plugins/renderer/plugin_placeholder.h" | 5 #include "components/plugins/renderer/plugin_placeholder.h" |
| 6 | 6 |
| 7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "content/public/common/web_preferences.h" | 8 #include "content/public/common/web_preferences.h" |
| 9 #include "content/public/renderer/render_frame.h" | 9 #include "content/public/renderer/render_frame.h" |
| 10 #include "content/public/renderer/render_thread.h" | 10 #include "content/public/renderer/render_thread.h" |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 : PluginPlaceholderBase(render_frame, frame, params, html_data) { | 131 : PluginPlaceholderBase(render_frame, frame, params, html_data) { |
| 132 } | 132 } |
| 133 | 133 |
| 134 PluginPlaceholder::~PluginPlaceholder() { | 134 PluginPlaceholder::~PluginPlaceholder() { |
| 135 } | 135 } |
| 136 | 136 |
| 137 v8::Local<v8::Value> PluginPlaceholder::GetV8Handle(v8::Isolate* isolate) { | 137 v8::Local<v8::Value> PluginPlaceholder::GetV8Handle(v8::Isolate* isolate) { |
| 138 return gin::CreateHandle(isolate, this).ToV8(); | 138 return gin::CreateHandle(isolate, this).ToV8(); |
| 139 } | 139 } |
| 140 | 140 |
| 141 bool PluginPlaceholderBase::IsErrorPlaceholder() { |
| 142 return false; |
| 143 } |
| 144 |
| 141 gin::ObjectTemplateBuilder PluginPlaceholder::GetObjectTemplateBuilder( | 145 gin::ObjectTemplateBuilder PluginPlaceholder::GetObjectTemplateBuilder( |
| 142 v8::Isolate* isolate) { | 146 v8::Isolate* isolate) { |
| 143 return gin::Wrappable<PluginPlaceholder>::GetObjectTemplateBuilder(isolate) | 147 return gin::Wrappable<PluginPlaceholder>::GetObjectTemplateBuilder(isolate) |
| 144 .SetMethod<void (plugins::PluginPlaceholder::*)()>( | 148 .SetMethod<void (plugins::PluginPlaceholder::*)()>( |
| 145 "hide", &PluginPlaceholder::HideCallback); | 149 "hide", &PluginPlaceholder::HideCallback); |
| 146 } | 150 } |
| 147 | 151 |
| 148 } // namespace plugins | 152 } // namespace plugins |
| OLD | NEW |