Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(430)

Side by Side Diff: third_party/WebKit/public/web/WebPlugin.h

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Rebased Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 namespace blink { 44 namespace blink {
45 45
46 class WebDragData; 46 class WebDragData;
47 class WebInputEvent; 47 class WebInputEvent;
48 class WebPluginContainer; 48 class WebPluginContainer;
49 class WebURLResponse; 49 class WebURLResponse;
50 struct WebCompositionUnderline; 50 struct WebCompositionUnderline;
51 struct WebCursorInfo; 51 struct WebCursorInfo;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 // Deletes the ongoing composition if any, inserts the specified text, and 179 // Deletes the ongoing composition if any, inserts the specified text, and
180 // moves the caret according to relativeCaretPosition. 180 // moves the caret according to relativeCaretPosition.
181 virtual bool commitText(const WebString& text, int relativeCaretPosition) { 181 virtual bool commitText(const WebString& text, int relativeCaretPosition) {
182 return false; 182 return false;
183 } 183 }
184 184
185 // Confirms an ongoing composition; holds or moves selections accroding to 185 // Confirms an ongoing composition; holds or moves selections accroding to
186 // selectionBehavior. 186 // selectionBehavior.
187 virtual bool finishComposingText( 187 virtual bool finishComposingText(
188 WebWidget::ConfirmCompositionBehavior selectionBehavior) { 188 WebInputMethodController::ConfirmCompositionBehavior selectionBehavior) {
189 return false; 189 return false;
190 } 190 }
191 191
192 // Deletes the current selection plus the specified number of characters 192 // Deletes the current selection plus the specified number of characters
193 // before and after the selection or caret. 193 // before and after the selection or caret.
194 virtual void extendSelectionAndDelete(int before, int after) {} 194 virtual void extendSelectionAndDelete(int before, int after) {}
195 // Deletes text before and after the current cursor position, excluding the 195 // Deletes text before and after the current cursor position, excluding the
196 // selection. 196 // selection.
197 virtual void deleteSurroundingText(int before, int after) {} 197 virtual void deleteSurroundingText(int before, int after) {}
198 // If the given position is over a link, returns the absolute url. 198 // If the given position is over a link, returns the absolute url.
(...skipping 28 matching lines...) Expand all
227 227
228 virtual bool isPlaceholder() { return true; } 228 virtual bool isPlaceholder() { return true; }
229 229
230 protected: 230 protected:
231 ~WebPlugin() {} 231 ~WebPlugin() {}
232 }; 232 };
233 233
234 } // namespace blink 234 } // namespace blink
235 235
236 #endif 236 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebInputMethodController.h ('k') | third_party/WebKit/public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698