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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 // Return a compositing view used for this widget. This is owned by the | 72 // Return a compositing view used for this widget. This is owned by the |
73 // WebWidgetClient. | 73 // WebWidgetClient. |
74 virtual WebLayerTreeView* layerTreeView() { return 0; } | 74 virtual WebLayerTreeView* layerTreeView() { return 0; } |
75 // FIXME: Remove all overrides of this and change layerTreeView() above to A
SSERT_NOT_REACHED. | 75 // FIXME: Remove all overrides of this and change layerTreeView() above to A
SSERT_NOT_REACHED. |
76 virtual bool allowsBrokenNullLayerTreeView() const { return false; } | 76 virtual bool allowsBrokenNullLayerTreeView() const { return false; } |
77 | 77 |
78 // Called when a call to WebWidget::animate is required | 78 // Called when a call to WebWidget::animate is required |
79 virtual void scheduleAnimation() { } | 79 virtual void scheduleAnimation() { } |
80 | 80 |
| 81 // Called when one of the following things were involved during the layout: |
| 82 // * > 200 text characters |
| 83 // * > 1024 image pixels |
| 84 // * a plugin |
| 85 // * a canvas |
| 86 // An approximation for first layout that resulted in pixels on screen. |
| 87 // Not the best heuristic, and we should replace it with something better. |
| 88 virtual void didFirstVisuallyNonEmptyLayout() { } |
| 89 |
| 90 // The frame's document first layout immediately after the parsing finished. |
| 91 // Another way to put it: first frame produced after DOMContentLoaded was di
spatched. |
| 92 virtual void didFirstLayoutAfterFinishedParsing() { } |
| 93 |
81 // Called when the widget acquires or loses focus, respectively. | 94 // Called when the widget acquires or loses focus, respectively. |
82 virtual void didFocus() { } | 95 virtual void didFocus() { } |
83 virtual void didBlur() { } | 96 virtual void didBlur() { } |
84 | 97 |
85 // Called when the cursor for the widget changes. | 98 // Called when the cursor for the widget changes. |
86 virtual void didChangeCursor(const WebCursorInfo&) { } | 99 virtual void didChangeCursor(const WebCursorInfo&) { } |
87 | 100 |
88 // Called when the widget should be closed. WebWidget::close() should | 101 // Called when the widget should be closed. WebWidget::close() should |
89 // be called asynchronously as a result of this notification. | 102 // be called asynchronously as a result of this notification. |
90 virtual void closeWidgetSoon() { } | 103 virtual void closeWidgetSoon() { } |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // press or gesture tap. | 184 // press or gesture tap. |
172 // Note: This is called even when the mouse down event is prevent default. | 185 // Note: This is called even when the mouse down event is prevent default. |
173 virtual void onMouseDown(const WebNode& mouseDownNode) { } | 186 virtual void onMouseDown(const WebNode& mouseDownNode) { } |
174 protected: | 187 protected: |
175 ~WebWidgetClient() { } | 188 ~WebWidgetClient() { } |
176 }; | 189 }; |
177 | 190 |
178 } // namespace blink | 191 } // namespace blink |
179 | 192 |
180 #endif | 193 #endif |
OLD | NEW |