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

Side by Side Diff: third_party/WebKit/Source/web/WebPluginContainerImpl.cpp

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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 pending_invalidation_rect_.Unite(dirty_rect); 184 pending_invalidation_rect_.Unite(dirty_rect);
185 185
186 layout_object->SetMayNeedPaintInvalidation(); 186 layout_object->SetMayNeedPaintInvalidation();
187 } 187 }
188 188
189 void WebPluginContainerImpl::SetFocused(bool focused, WebFocusType focus_type) { 189 void WebPluginContainerImpl::SetFocused(bool focused, WebFocusType focus_type) {
190 web_plugin_->UpdateFocus(focused, focus_type); 190 web_plugin_->UpdateFocus(focused, focus_type);
191 } 191 }
192 192
193 bool WebPluginContainerImpl::IsErrorplaceholder() {
194 if (!web_plugin_)
195 return false;
196 return web_plugin_->IsErrorPlaceholder();
197 }
198
193 void WebPluginContainerImpl::Show() { 199 void WebPluginContainerImpl::Show() {
194 self_visible_ = true; 200 self_visible_ = true;
195 web_plugin_->UpdateVisibility(true); 201 web_plugin_->UpdateVisibility(true);
196 } 202 }
197 203
198 void WebPluginContainerImpl::Hide() { 204 void WebPluginContainerImpl::Hide() {
199 self_visible_ = false; 205 self_visible_ = false;
200 web_plugin_->UpdateVisibility(false); 206 web_plugin_->UpdateVisibility(false);
201 } 207 }
202 208
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 ComputeClipRectsForPlugin(element_, window_rect, clip_rect, 1009 ComputeClipRectsForPlugin(element_, window_rect, clip_rect,
1004 unobscured_rect); 1010 unobscured_rect);
1005 } 1011 }
1006 GetPluginOcclusions(element_, parent_, frame_rect_, cut_out_rects); 1012 GetPluginOcclusions(element_, parent_, frame_rect_, cut_out_rects);
1007 // Convert to the plugin position. 1013 // Convert to the plugin position.
1008 for (size_t i = 0; i < cut_out_rects.size(); i++) 1014 for (size_t i = 0; i < cut_out_rects.size(); i++)
1009 cut_out_rects[i].Move(-frame_rect_.X(), -frame_rect_.Y()); 1015 cut_out_rects[i].Move(-frame_rect_.X(), -frame_rect_.Y());
1010 } 1016 }
1011 1017
1012 } // namespace blink 1018 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebPluginContainerImpl.h ('k') | third_party/WebKit/public/web/WebPlugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698