Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: components/plugins/renderer/plugin_placeholder.cc

Issue 2733083004: Emit error events if the loading of an object element failed (Closed)
Patch Set: Emit error events if the loading of an object element failed Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/plugins/renderer/plugin_placeholder.h ('k') | components/plugins/renderer/webview_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698