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

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, 8 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 WebDragOperationsMask, 126 WebDragOperationsMask,
127 const WebPoint& position, 127 const WebPoint& position,
128 const WebPoint& screenPosition) { 128 const WebPoint& screenPosition) {
129 return false; 129 return false;
130 } 130 }
131 131
132 virtual void didReceiveResponse(const WebURLResponse&) = 0; 132 virtual void didReceiveResponse(const WebURLResponse&) = 0;
133 virtual void didReceiveData(const char* data, int dataLength) = 0; 133 virtual void didReceiveData(const char* data, int dataLength) = 0;
134 virtual void didFinishLoading() = 0; 134 virtual void didFinishLoading() = 0;
135 virtual void didFailLoading(const WebURLError&) = 0; 135 virtual void didFailLoading(const WebURLError&) = 0;
136 virtual bool isErrorPlaceholder() { return false; };
Bernhard Bauer 2017/03/30 09:08:28 Move this down, maybe to isPlaceholder()? The meth
136 137
137 // Printing interface. 138 // Printing interface.
138 // Whether the plugin supports its own paginated print. The other print 139 // Whether the plugin supports its own paginated print. The other print
139 // interface methods are called only if this method returns true. 140 // interface methods are called only if this method returns true.
140 virtual bool supportsPaginatedPrint() { return false; } 141 virtual bool supportsPaginatedPrint() { return false; }
141 // Returns true if the printed content should not be scaled to 142 // Returns true if the printed content should not be scaled to
142 // the printer's printable area. 143 // the printer's printable area.
143 virtual bool isPrintScalingDisabled() { return false; } 144 virtual bool isPrintScalingDisabled() { return false; }
144 // Returns true on success and sets the out parameter to the print preset 145 // Returns true on success and sets the out parameter to the print preset
145 // options for the document. 146 // options for the document.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 240
240 virtual bool isPlaceholder() { return true; } 241 virtual bool isPlaceholder() { return true; }
241 242
242 protected: 243 protected:
243 ~WebPlugin() {} 244 ~WebPlugin() {}
244 }; 245 };
245 246
246 } // namespace blink 247 } // namespace blink
247 248
248 #endif 249 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698