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

Side by Side Diff: third_party/WebKit/public/web/WebPlugin.h

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
« no previous file with comments | « third_party/WebKit/Source/web/WebPluginContainerImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 232
233 // View rotation types. 233 // View rotation types.
234 enum RotationType { 234 enum RotationType {
235 kRotationType90Clockwise, 235 kRotationType90Clockwise,
236 kRotationType90Counterclockwise 236 kRotationType90Counterclockwise
237 }; 237 };
238 // Whether the plugin can rotate the view of its content. 238 // Whether the plugin can rotate the view of its content.
239 virtual bool CanRotateView() { return false; } 239 virtual bool CanRotateView() { return false; }
240 // Rotates the plugin's view of its content. 240 // Rotates the plugin's view of its content.
241 virtual void RotateView(RotationType type) {} 241 virtual void RotateView(RotationType type) {}
242 242 // Check whether a plugin can be interacted with. A positive return value
243 // means the plugin has not loaded and hence cannot be interacted with.
244 // The plugin could, however, load successfully later.
243 virtual bool IsPlaceholder() { return true; } 245 virtual bool IsPlaceholder() { return true; }
246 // Check whether a plugin failed to load, with there being no possibility of
247 // it loading later.
248 virtual bool IsErrorPlaceholder() { return false; }
244 249
245 protected: 250 protected:
246 ~WebPlugin() {} 251 ~WebPlugin() {}
247 }; 252 };
248 253
249 } // namespace blink 254 } // namespace blink
250 255
251 #endif 256 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebPluginContainerImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698