| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 virtual bool executeEditCommand(const WebString& name) { return false; } | 131 virtual bool executeEditCommand(const WebString& name) { return false; } |
| 132 virtual bool executeEditCommand(const WebString& name, const WebString& valu
e) { return false; } | 132 virtual bool executeEditCommand(const WebString& name, const WebString& valu
e) { return false; } |
| 133 | 133 |
| 134 // Sets composition text from input method, and returns true if the | 134 // Sets composition text from input method, and returns true if the |
| 135 // composition is set successfully. | 135 // composition is set successfully. |
| 136 virtual bool setComposition(const WebString& text, const WebVector<WebCompos
itionUnderline>& underlines, int selectionStart, int selectionEnd) { return fals
e; } | 136 virtual bool setComposition(const WebString& text, const WebVector<WebCompos
itionUnderline>& underlines, int selectionStart, int selectionEnd) { return fals
e; } |
| 137 // Confirms an ongoing composition and returns true if there is an ongoing | 137 // Confirms an ongoing composition and returns true if there is an ongoing |
| 138 // composition or the text is inserted. | 138 // composition or the text is inserted. |
| 139 virtual bool confirmComposition(const WebString& text, WebWidget::ConfirmCom
positionBehavior selectionBehavior) { return false; } | 139 virtual bool confirmComposition(const WebString& text, WebWidget::ConfirmCom
positionBehavior selectionBehavior) { return false; } |
| 140 // Deletes the current selection plus the specified number of characters |
| 141 // before and after the selection or caret. |
| 142 virtual void extendSelectionAndDelete(int before, int after) { } |
| 140 // If the given position is over a link, returns the absolute url. | 143 // If the given position is over a link, returns the absolute url. |
| 141 // Otherwise an empty url is returned. | 144 // Otherwise an empty url is returned. |
| 142 virtual WebURL linkAtPosition(const WebPoint& position) const { return WebUR
L(); } | 145 virtual WebURL linkAtPosition(const WebPoint& position) const { return WebUR
L(); } |
| 143 | 146 |
| 144 // Used for zooming of full page plugins. | 147 // Used for zooming of full page plugins. |
| 145 virtual void setZoomLevel(double level, bool textOnly) { } | 148 virtual void setZoomLevel(double level, bool textOnly) { } |
| 146 | 149 |
| 147 // Find interface. | 150 // Find interface. |
| 148 // Start a new search. The plugin should search for a little bit at a time
so that it | 151 // Start a new search. The plugin should search for a little bit at a time
so that it |
| 149 // doesn't block the thread in case of a large document. The results, along
with the | 152 // doesn't block the thread in case of a large document. The results, along
with the |
| (...skipping 17 matching lines...) Expand all Loading... |
| 167 | 170 |
| 168 virtual bool isPlaceholder() { return true; } | 171 virtual bool isPlaceholder() { return true; } |
| 169 | 172 |
| 170 protected: | 173 protected: |
| 171 ~WebPlugin() { } | 174 ~WebPlugin() { } |
| 172 }; | 175 }; |
| 173 | 176 |
| 174 } // namespace blink | 177 } // namespace blink |
| 175 | 178 |
| 176 #endif | 179 #endif |
| OLD | NEW |