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

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

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Replacing the angry copyright with the shorter one. Created 4 years, 3 months 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 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Sets composition text from input method, and returns true if the 154 // Sets composition text from input method, and returns true if the
155 // composition is set successfully. 155 // composition is set successfully.
156 virtual bool setComposition(const WebString& text, const WebVector<WebCompos itionUnderline>& underlines, int selectionStart, int selectionEnd) { return fals e; } 156 virtual bool setComposition(const WebString& text, const WebVector<WebCompos itionUnderline>& underlines, int selectionStart, int selectionEnd) { return fals e; }
157 157
158 // Deletes the ongoing composition if any, inserts the specified text, and 158 // Deletes the ongoing composition if any, inserts the specified text, and
159 // moves the caret according to relativeCaretPosition. 159 // moves the caret according to relativeCaretPosition.
160 virtual bool commitText(const WebString& text, int relativeCaretPosition) { return false; } 160 virtual bool commitText(const WebString& text, int relativeCaretPosition) { return false; }
161 161
162 // Confirms an ongoing composition; holds or moves selections accroding to 162 // Confirms an ongoing composition; holds or moves selections accroding to
163 // selectionBehavior. 163 // selectionBehavior.
164 virtual bool finishComposingText(WebWidget::ConfirmCompositionBehavior selec tionBehavior) { return false; } 164 virtual bool finishComposingText(WebInputMethodController::ConfirmCompositio nBehavior selectionBehavior) { return false; }
165 165
166 // Deletes the current selection plus the specified number of characters 166 // Deletes the current selection plus the specified number of characters
167 // before and after the selection or caret. 167 // before and after the selection or caret.
168 virtual void extendSelectionAndDelete(int before, int after) { } 168 virtual void extendSelectionAndDelete(int before, int after) { }
169 // If the given position is over a link, returns the absolute url. 169 // If the given position is over a link, returns the absolute url.
170 // Otherwise an empty url is returned. 170 // Otherwise an empty url is returned.
171 virtual WebURL linkAtPosition(const WebPoint& position) const { return WebUR L(); } 171 virtual WebURL linkAtPosition(const WebPoint& position) const { return WebUR L(); }
172 172
173 // Find interface. 173 // Find interface.
174 // Start a new search. The plugin should search for a little bit at a time so that it 174 // Start a new search. The plugin should search for a little bit at a time so that it
(...skipping 18 matching lines...) Expand all
193 193
194 virtual bool isPlaceholder() { return true; } 194 virtual bool isPlaceholder() { return true; }
195 195
196 protected: 196 protected:
197 ~WebPlugin() { } 197 ~WebPlugin() { }
198 }; 198 };
199 199
200 } // namespace blink 200 } // namespace blink
201 201
202 #endif 202 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698