| 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 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual WebPluginContainer* container() const { return 0; } | 64 virtual WebPluginContainer* container() const { return 0; } |
| 65 | 65 |
| 66 virtual NPObject* scriptableObject() = 0; | 66 virtual NPObject* scriptableObject() = 0; |
| 67 virtual struct _NPP* pluginNPP() { return 0; } | 67 virtual struct _NPP* pluginNPP() { return 0; } |
| 68 | 68 |
| 69 // Returns true if the form submission value is successfully obtained | 69 // Returns true if the form submission value is successfully obtained |
| 70 // from the plugin. The value would be associated with the name attribute | 70 // from the plugin. The value would be associated with the name attribute |
| 71 // of the corresponding object element. | 71 // of the corresponding object element. |
| 72 virtual bool getFormValue(WebString&) { return false; } | 72 virtual bool getFormValue(WebString&) { return false; } |
| 73 virtual bool supportsKeyboardFocus() const { return false; } | 73 virtual bool supportsKeyboardFocus() const { return false; } |
| 74 virtual bool supportsEditCommands() const { return false; } |
| 74 | 75 |
| 75 virtual bool canProcessDrag() const { return false; } | 76 virtual bool canProcessDrag() const { return false; } |
| 76 | 77 |
| 77 virtual void paint(WebCanvas*, const WebRect&) = 0; | 78 virtual void paint(WebCanvas*, const WebRect&) = 0; |
| 78 | 79 |
| 79 // Coordinates are relative to the containing window. | 80 // Coordinates are relative to the containing window. |
| 80 virtual void updateGeometry( | 81 virtual void updateGeometry( |
| 81 const WebRect& frameRect, const WebRect& clipRect, | 82 const WebRect& frameRect, const WebRect& clipRect, |
| 82 const WebVector<WebRect>& cutOutsRects, bool isVisible) = 0; | 83 const WebVector<WebRect>& cutOutsRects, bool isVisible) = 0; |
| 83 | 84 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // Prints the page specified by pageNumber (0-based index) into the supplied
canvas. | 116 // Prints the page specified by pageNumber (0-based index) into the supplied
canvas. |
| 116 virtual bool printPage(int pageNumber, WebCanvas* canvas) { return false; } | 117 virtual bool printPage(int pageNumber, WebCanvas* canvas) { return false; } |
| 117 // Ends the print operation. | 118 // Ends the print operation. |
| 118 virtual void printEnd() { } | 119 virtual void printEnd() { } |
| 119 | 120 |
| 120 virtual bool hasSelection() const { return false; } | 121 virtual bool hasSelection() const { return false; } |
| 121 virtual WebString selectionAsText() const { return WebString(); } | 122 virtual WebString selectionAsText() const { return WebString(); } |
| 122 virtual WebString selectionAsMarkup() const { return WebString(); } | 123 virtual WebString selectionAsMarkup() const { return WebString(); } |
| 123 | 124 |
| 124 virtual bool executeEditCommand(const WebString& name) { return false; } | 125 virtual bool executeEditCommand(const WebString& name) { return false; } |
| 126 virtual bool executeEditCommand(const WebString& name, const WebString& valu
e) { return false; } |
| 125 | 127 |
| 126 // If the given position is over a link, returns the absolute url. | 128 // If the given position is over a link, returns the absolute url. |
| 127 // Otherwise an empty url is returned. | 129 // Otherwise an empty url is returned. |
| 128 virtual WebURL linkAtPosition(const WebPoint& position) const { return WebUR
L(); } | 130 virtual WebURL linkAtPosition(const WebPoint& position) const { return WebUR
L(); } |
| 129 | 131 |
| 130 // Used for zooming of full page plugins. | 132 // Used for zooming of full page plugins. |
| 131 virtual void setZoomLevel(double level, bool textOnly) { } | 133 virtual void setZoomLevel(double level, bool textOnly) { } |
| 132 | 134 |
| 133 // Find interface. | 135 // Find interface. |
| 134 // Start a new search. The plugin should search for a little bit at a time
so that it | 136 // Start a new search. The plugin should search for a little bit at a time
so that it |
| (...skipping 18 matching lines...) Expand all Loading... |
| 153 | 155 |
| 154 virtual bool isPlaceholder() { return true; } | 156 virtual bool isPlaceholder() { return true; } |
| 155 | 157 |
| 156 protected: | 158 protected: |
| 157 ~WebPlugin() { } | 159 ~WebPlugin() { } |
| 158 }; | 160 }; |
| 159 | 161 |
| 160 } // namespace WebKit | 162 } // namespace WebKit |
| 161 | 163 |
| 162 #endif | 164 #endif |
| OLD | NEW |