OLD | NEW |
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior
) = 0; | 104 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior
) = 0; |
105 | 105 |
106 // Called to inform the WebWidget to confirm an ongoing composition with a | 106 // Called to inform the WebWidget to confirm an ongoing composition with a |
107 // new composition text. If the text is empty then the current composition | 107 // new composition text. If the text is empty then the current composition |
108 // text is confirmed. If there is no ongoing composition, then deletes the | 108 // text is confirmed. If there is no ongoing composition, then deletes the |
109 // current selection and inserts the text. This method has no effect if | 109 // current selection and inserts the text. This method has no effect if |
110 // there is no ongoing composition and the text is empty. | 110 // there is no ongoing composition and the text is empty. |
111 // Returns true if there is an ongoing composition or the text is inserted. | 111 // Returns true if there is an ongoing composition or the text is inserted. |
112 virtual bool confirmComposition(const WebString& text) = 0; | 112 virtual bool confirmComposition(const WebString& text) = 0; |
113 | 113 |
114 // Fetches the character range of the current composition, also called the | |
115 // "marked range." Returns true and fills the out-paramters on success; | |
116 // returns false on failure. | |
117 virtual bool compositionRange(size_t* location, size_t* length) = 0; | |
118 | |
119 // Returns information about the current text input of this WebWidget. | 114 // Returns information about the current text input of this WebWidget. |
120 virtual WebTextInputInfo textInputInfo() = 0; | 115 virtual WebTextInputInfo textInputInfo() = 0; |
121 | 116 |
122 // The page background color. Can be used for filling in areas without | |
123 // content. | |
124 virtual WebColor backgroundColor() const = 0; | |
125 | |
126 protected: | 117 protected: |
127 ~WebWidget() { } | 118 ~WebWidget() { } |
128 }; | 119 }; |
129 | 120 |
130 } // namespace blink | 121 } // namespace blink |
131 | 122 |
132 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGET_H_ | 123 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGET_H_ |
OLD | NEW |