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

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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // Tells the plugin that the user has stopped the find operation. 226 // Tells the plugin that the user has stopped the find operation.
227 virtual void stopFind() {} 227 virtual void stopFind() {}
228 228
229 // View rotation types. 229 // View rotation types.
230 enum RotationType { RotationType90Clockwise, RotationType90Counterclockwise }; 230 enum RotationType { RotationType90Clockwise, RotationType90Counterclockwise };
231 // Whether the plugin can rotate the view of its content. 231 // Whether the plugin can rotate the view of its content.
232 virtual bool canRotateView() { return false; } 232 virtual bool canRotateView() { return false; }
233 // Rotates the plugin's view of its content. 233 // Rotates the plugin's view of its content.
234 virtual void rotateView(RotationType type) {} 234 virtual void rotateView(RotationType type) {}
235 235
236 virtual bool isPlaceholder() { return true; } 236 virtual bool isPlaceholder() { return placeholder; }
237 virtual void markAsPlaceholder() { placeholder = true; }
237 238
238 protected: 239 protected:
239 ~WebPlugin() {} 240 ~WebPlugin() {}
241 bool placeholder = false;
240 }; 242 };
241 243
242 } // namespace blink 244 } // namespace blink
243 245
244 #endif 246 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698