| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // multiple times once layout has been called, assuming no other | 72 // multiple times once layout has been called, assuming no other |
| 73 // changes are made to the WebWidget (e.g., once events are | 73 // changes are made to the WebWidget (e.g., once events are |
| 74 // processed, it should be assumed that another call to layout is | 74 // processed, it should be assumed that another call to layout is |
| 75 // warranted before painting again). | 75 // warranted before painting again). |
| 76 virtual void paint(WebCanvas*, const WebRect& viewPort) = 0; | 76 virtual void paint(WebCanvas*, const WebRect& viewPort) = 0; |
| 77 | 77 |
| 78 // Called to inform the WebWidget of an input event. Returns true if | 78 // Called to inform the WebWidget of an input event. Returns true if |
| 79 // the event has been processed, false otherwise. | 79 // the event has been processed, false otherwise. |
| 80 virtual bool handleInputEvent(const WebInputEvent&) = 0; | 80 virtual bool handleInputEvent(const WebInputEvent&) = 0; |
| 81 | 81 |
| 82 // Called to inform the WebWidget that mouse capture was lost. | |
| 83 virtual void mouseCaptureLost() = 0; | |
| 84 | |
| 85 // Called to inform the WebWidget that it has gained or lost keyboard focus. | 82 // Called to inform the WebWidget that it has gained or lost keyboard focus. |
| 86 virtual void setFocus(bool) = 0; | 83 virtual void setFocus(bool) = 0; |
| 87 | 84 |
| 88 // Called to inform the WebWidget of a new composition text. | 85 // Called to inform the WebWidget of a new composition text. |
| 89 // If selectionStart and selectionEnd has the same value, then it indicates | 86 // If selectionStart and selectionEnd has the same value, then it indicates |
| 90 // the input caret position. If the text is empty, then the existing | 87 // the input caret position. If the text is empty, then the existing |
| 91 // composition text will be cancelled. | 88 // composition text will be cancelled. |
| 92 // Returns true if the composition text was set successfully. | 89 // Returns true if the composition text was set successfully. |
| 93 virtual bool setComposition( | 90 virtual bool setComposition( |
| 94 const WebString& text, | 91 const WebString& text, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // content. | 131 // content. |
| 135 virtual WebColor backgroundColor() const = 0; | 132 virtual WebColor backgroundColor() const = 0; |
| 136 | 133 |
| 137 protected: | 134 protected: |
| 138 ~WebWidget() { } | 135 ~WebWidget() { } |
| 139 }; | 136 }; |
| 140 | 137 |
| 141 } // namespace blink | 138 } // namespace blink |
| 142 | 139 |
| 143 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGET_H_ | 140 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGET_H_ |
| OLD | NEW |