| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 virtual bool acceptsInputEvents() = 0; | 111 virtual bool acceptsInputEvents() = 0; |
| 112 virtual WebInputEventResult handleInputEvent(const WebInputEvent&, WebCursor
Info&) = 0; | 112 virtual WebInputEventResult handleInputEvent(const WebInputEvent&, WebCursor
Info&) = 0; |
| 113 | 113 |
| 114 virtual bool handleDragStatusUpdate(WebDragStatus, const WebDragData&, WebDr
agOperationsMask, const WebPoint& position, const WebPoint& screenPosition) { re
turn false; } | 114 virtual bool handleDragStatusUpdate(WebDragStatus, const WebDragData&, WebDr
agOperationsMask, const WebPoint& position, const WebPoint& screenPosition) { re
turn false; } |
| 115 | 115 |
| 116 virtual void didReceiveResponse(const WebURLResponse&) = 0; | 116 virtual void didReceiveResponse(const WebURLResponse&) = 0; |
| 117 virtual void didReceiveData(const char* data, int dataLength) = 0; | 117 virtual void didReceiveData(const char* data, int dataLength) = 0; |
| 118 virtual void didFinishLoading() = 0; | 118 virtual void didFinishLoading() = 0; |
| 119 virtual void didFailLoading(const WebURLError&) = 0; | 119 virtual void didFailLoading(const WebURLError&) = 0; |
| 120 | 120 |
| 121 // Called in response to WebPluginContainer::loadFrameRequest | |
| 122 virtual void didFinishLoadingFrameRequest( | |
| 123 const WebURL&, void* notifyData) = 0; | |
| 124 virtual void didFailLoadingFrameRequest( | |
| 125 const WebURL&, void* notifyData, const WebURLError&) = 0; | |
| 126 | |
| 127 // Printing interface. | 121 // Printing interface. |
| 128 // Whether the plugin supports its own paginated print. The other print | 122 // Whether the plugin supports its own paginated print. The other print |
| 129 // interface methods are called only if this method returns true. | 123 // interface methods are called only if this method returns true. |
| 130 virtual bool supportsPaginatedPrint() { return false; } | 124 virtual bool supportsPaginatedPrint() { return false; } |
| 131 // Returns true if the printed content should not be scaled to | 125 // Returns true if the printed content should not be scaled to |
| 132 // the printer's printable area. | 126 // the printer's printable area. |
| 133 virtual bool isPrintScalingDisabled() { return false; } | 127 virtual bool isPrintScalingDisabled() { return false; } |
| 134 // Returns true on success and sets the out parameter to the print preset op
tions for the document. | 128 // Returns true on success and sets the out parameter to the print preset op
tions for the document. |
| 135 virtual bool getPrintPresetOptionsFromDocument(WebPrintPresetOptions*) { ret
urn false; } | 129 virtual bool getPrintPresetOptionsFromDocument(WebPrintPresetOptions*) { ret
urn false; } |
| 136 | 130 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 180 |
| 187 virtual bool isPlaceholder() { return true; } | 181 virtual bool isPlaceholder() { return true; } |
| 188 | 182 |
| 189 protected: | 183 protected: |
| 190 ~WebPlugin() { } | 184 ~WebPlugin() { } |
| 191 }; | 185 }; |
| 192 | 186 |
| 193 } // namespace blink | 187 } // namespace blink |
| 194 | 188 |
| 195 #endif | 189 #endif |
| OLD | NEW |