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

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

Issue 2650113004: [WIP] Add support for Android SuggestionSpans when editing text (Closed)
Patch Set: Remove logging statements, fix copyright years in new files Created 3 years, 10 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 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // content view area, i.e. doesn't include any window decorations. 99 // content view area, i.e. doesn't include any window decorations.
100 virtual WebRect viewRect() { return WebRect(); } 100 virtual WebRect viewRect() { return WebRect(); }
101 101
102 // Called when a tooltip should be shown at the current cursor position. 102 // Called when a tooltip should be shown at the current cursor position.
103 virtual void setToolTipText(const WebString&, WebTextDirection hint) {} 103 virtual void setToolTipText(const WebString&, WebTextDirection hint) {}
104 104
105 // Called to query information about the screen where this widget is 105 // Called to query information about the screen where this widget is
106 // displayed. 106 // displayed.
107 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); } 107 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); }
108 108
109 // Called when a tap event potentially changes the text selection;
110 // should check if the user tapped on some text with suggested replacements
111 // associated with it, and if so, show a menu with those replacements.
112 virtual void handlePotentialTextSuggestionTap() {}
113
109 // When this method gets called, WebWidgetClient implementation should 114 // When this method gets called, WebWidgetClient implementation should
110 // reset the input method by cancelling any ongoing composition. 115 // reset the input method by cancelling any ongoing composition.
111 virtual void resetInputMethod() {} 116 virtual void resetInputMethod() {}
112 117
113 // Requests to lock the mouse cursor. If true is returned, the success 118 // Requests to lock the mouse cursor. If true is returned, the success
114 // result will be asynchronously returned via a single call to 119 // result will be asynchronously returned via a single call to
115 // WebWidget::didAcquirePointerLock() or 120 // WebWidget::didAcquirePointerLock() or
116 // WebWidget::didNotAcquirePointerLock(). 121 // WebWidget::didNotAcquirePointerLock().
117 // If false, the request has been denied synchronously. 122 // If false, the request has been denied synchronously.
118 virtual bool requestPointerLock() { return false; } 123 virtual bool requestPointerLock() { return false; }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 const WebImage& dragImage, 189 const WebImage& dragImage,
185 const WebPoint& dragImageOffset) {} 190 const WebPoint& dragImageOffset) {}
186 191
187 protected: 192 protected:
188 ~WebWidgetClient() {} 193 ~WebWidgetClient() {}
189 }; 194 };
190 195
191 } // namespace blink 196 } // namespace blink
192 197
193 #endif 198 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698