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

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, 9 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, 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // Tells the plugin that the user has stopped the find operation. 230 // Tells the plugin that the user has stopped the find operation.
231 virtual void stopFind() {} 231 virtual void stopFind() {}
232 232
233 // View rotation types. 233 // View rotation types.
234 enum RotationType { RotationType90Clockwise, RotationType90Counterclockwise }; 234 enum RotationType { RotationType90Clockwise, RotationType90Counterclockwise };
235 // Whether the plugin can rotate the view of its content. 235 // Whether the plugin can rotate the view of its content.
236 virtual bool canRotateView() { return false; } 236 virtual bool canRotateView() { return false; }
237 // Rotates the plugin's view of its content. 237 // Rotates the plugin's view of its content.
238 virtual void rotateView(RotationType type) {} 238 virtual void rotateView(RotationType type) {}
239 239
240 virtual bool isPlaceholder() { return true; } 240 virtual bool isPlaceholder() { return placeholder; }
241 virtual void markAsErrorPlaceholder() { placeholder = true; }
242 virtual void unmarkAsErrorPlaceholder() { placeholder = false; }
241 243
242 protected: 244 protected:
243 ~WebPlugin() {} 245 ~WebPlugin() {}
246 bool placeholder = false;
Bernhard Bauer 2017/03/27 09:20:27 WebPlugin is an interface; it shouldn't have membe
George Joseph 2017/03/28 10:08:31 Done.
244 }; 247 };
245 248
246 } // namespace blink 249 } // namespace blink
247 250
248 #endif 251 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698