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

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

Issue 100193005: Add ExtendSelectionAndDelete handler in WebPlugin (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698