Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |