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