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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 virtual WebString selectionAsMarkup() const { return WebString(); } | 150 virtual WebString selectionAsMarkup() const { return WebString(); } |
151 | 151 |
152 virtual bool executeEditCommand(const WebString& name) { return false; } | 152 virtual bool executeEditCommand(const WebString& name) { return false; } |
153 virtual bool executeEditCommand(const WebString& name, const WebString& valu
e) { return false; } | 153 virtual bool executeEditCommand(const WebString& name, const WebString& valu
e) { return false; } |
154 | 154 |
155 // Sets composition text from input method, and returns true if the | 155 // Sets composition text from input method, and returns true if the |
156 // composition is set successfully. | 156 // composition is set successfully. |
157 virtual bool setComposition(const WebString& text, const WebVector<WebCompos
itionUnderline>& underlines, int selectionStart, int selectionEnd) { return fals
e; } | 157 virtual bool setComposition(const WebString& text, const WebVector<WebCompos
itionUnderline>& underlines, int selectionStart, int selectionEnd) { return fals
e; } |
158 // Confirms an ongoing composition and returns true if there is an ongoing | 158 // Confirms an ongoing composition and returns true if there is an ongoing |
159 // composition or the text is inserted. | 159 // composition or the text is inserted. |
160 virtual bool confirmComposition(const WebString& text, WebWidget::ConfirmCom
positionBehavior selectionBehavior) { return false; } | 160 virtual bool confirmComposition(const WebString& text, WebWidget::ConfirmCom
positionBehavior selectionBehavior, int newCursorPosition) { return false; } |
161 // Deletes the current selection plus the specified number of characters | 161 // Deletes the current selection plus the specified number of characters |
162 // before and after the selection or caret. | 162 // before and after the selection or caret. |
163 virtual void extendSelectionAndDelete(int before, int after) { } | 163 virtual void extendSelectionAndDelete(int before, int after) { } |
164 // If the given position is over a link, returns the absolute url. | 164 // If the given position is over a link, returns the absolute url. |
165 // Otherwise an empty url is returned. | 165 // Otherwise an empty url is returned. |
166 virtual WebURL linkAtPosition(const WebPoint& position) const { return WebUR
L(); } | 166 virtual WebURL linkAtPosition(const WebPoint& position) const { return WebUR
L(); } |
167 | 167 |
168 // Find interface. | 168 // Find interface. |
169 // Start a new search. The plugin should search for a little bit at a time
so that it | 169 // Start a new search. The plugin should search for a little bit at a time
so that it |
170 // doesn't block the thread in case of a large document. The results, along
with the | 170 // doesn't block the thread in case of a large document. The results, along
with the |
(...skipping 17 matching lines...) Expand all Loading... |
188 | 188 |
189 virtual bool isPlaceholder() { return true; } | 189 virtual bool isPlaceholder() { return true; } |
190 | 190 |
191 protected: | 191 protected: |
192 ~WebPlugin() { } | 192 ~WebPlugin() { } |
193 }; | 193 }; |
194 | 194 |
195 } // namespace blink | 195 } // namespace blink |
196 | 196 |
197 #endif | 197 #endif |
OLD | NEW |