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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 #ifndef WebPlugin_h | 32 #ifndef WebPlugin_h |
33 #define WebPlugin_h | 33 #define WebPlugin_h |
34 | 34 |
35 #include "../platform/WebCanvas.h" | 35 #include "../platform/WebCanvas.h" |
36 #include "../platform/WebDragOperation.h" | 36 #include "../platform/WebDragOperation.h" |
37 #include "../platform/WebFocusType.h" | 37 #include "../platform/WebFocusType.h" |
38 #include "../platform/WebString.h" | 38 #include "../platform/WebString.h" |
39 #include "../platform/WebURL.h" | 39 #include "../platform/WebURL.h" |
40 #include "WebDragStatus.h" | 40 #include "WebDragStatus.h" |
41 #include "WebWidget.h" | 41 #include "WebInputMethodController.h" |
42 #include <v8.h> | 42 #include <v8.h> |
43 | 43 |
44 struct NPObject; | 44 struct NPObject; |
45 struct _NPP; | 45 struct _NPP; |
46 | 46 |
47 namespace blink { | 47 namespace blink { |
48 | 48 |
49 class WebDragData; | 49 class WebDragData; |
50 class WebInputEvent; | 50 class WebInputEvent; |
51 class WebPluginContainer; | 51 class WebPluginContainer; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 181 |
182 // Deletes the ongoing composition if any, inserts the specified text, and | 182 // Deletes the ongoing composition if any, inserts the specified text, and |
183 // moves the caret according to relativeCaretPosition. | 183 // moves the caret according to relativeCaretPosition. |
184 virtual bool commitText(const WebString& text, int relativeCaretPosition) { | 184 virtual bool commitText(const WebString& text, int relativeCaretPosition) { |
185 return false; | 185 return false; |
186 } | 186 } |
187 | 187 |
188 // Confirms an ongoing composition; holds or moves selections accroding to | 188 // Confirms an ongoing composition; holds or moves selections accroding to |
189 // selectionBehavior. | 189 // selectionBehavior. |
190 virtual bool finishComposingText( | 190 virtual bool finishComposingText( |
191 WebWidget::ConfirmCompositionBehavior selectionBehavior) { | 191 WebInputMethodController::ConfirmCompositionBehavior selectionBehavior) { |
192 return false; | 192 return false; |
193 } | 193 } |
194 | 194 |
195 // Deletes the current selection plus the specified number of characters | 195 // Deletes the current selection plus the specified number of characters |
196 // before and after the selection or caret. | 196 // before and after the selection or caret. |
197 virtual void extendSelectionAndDelete(int before, int after) {} | 197 virtual void extendSelectionAndDelete(int before, int after) {} |
198 // Deletes text before and after the current cursor position, excluding the | 198 // Deletes text before and after the current cursor position, excluding the |
199 // selection. | 199 // selection. |
200 virtual void deleteSurroundingText(int before, int after) {} | 200 virtual void deleteSurroundingText(int before, int after) {} |
201 // If the given position is over a link, returns the absolute url. | 201 // If the given position is over a link, returns the absolute url. |
(...skipping 28 matching lines...) Expand all Loading... |
230 | 230 |
231 virtual bool isPlaceholder() { return true; } | 231 virtual bool isPlaceholder() { return true; } |
232 | 232 |
233 protected: | 233 protected: |
234 ~WebPlugin() {} | 234 ~WebPlugin() {} |
235 }; | 235 }; |
236 | 236 |
237 } // namespace blink | 237 } // namespace blink |
238 | 238 |
239 #endif | 239 #endif |
OLD | NEW |