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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // Called when a region of the WebWidget needs to be re-painted. | 51 // Called when a region of the WebWidget needs to be re-painted. |
52 virtual void didInvalidateRect(const WebRect&) { } | 52 virtual void didInvalidateRect(const WebRect&) { } |
53 | 53 |
54 // Called when a region of the WebWidget, given by clipRect, should be | 54 // Called when a region of the WebWidget, given by clipRect, should be |
55 // scrolled by the specified dx and dy amounts. | 55 // scrolled by the specified dx and dy amounts. |
56 virtual void didScrollRect(int dx, int dy, const WebRect& clipRect) { } | 56 virtual void didScrollRect(int dx, int dy, const WebRect& clipRect) { } |
57 | 57 |
58 // Called when the Widget has changed size as a result of an auto-resize. | 58 // Called when the Widget has changed size as a result of an auto-resize. |
59 virtual void didAutoResize(const WebSize& newSize) { } | 59 virtual void didAutoResize(const WebSize& newSize) { } |
60 | 60 |
61 // Called when the compositor is enabled or disabled. | |
62 virtual void didActivateCompositor() { } | |
63 virtual void didDeactivateCompositor() { } | |
64 | |
65 // Attempt to initialize compositing for this widget. If this is successful, | 61 // Attempt to initialize compositing for this widget. If this is successful, |
66 // layerTreeView() will return a valid WebLayerTreeView. | 62 // layerTreeView() will return a valid WebLayerTreeView. |
67 virtual void initializeLayerTreeView() { } | 63 virtual void initializeLayerTreeView() { } |
68 | 64 |
69 // Return a compositing view used for this widget. This is owned by the | 65 // Return a compositing view used for this widget. This is owned by the |
70 // WebWidgetClient. | 66 // WebWidgetClient. |
71 virtual WebLayerTreeView* layerTreeView() { return 0; } | 67 virtual WebLayerTreeView* layerTreeView() { return 0; } |
72 // FIXME: Remove all overrides of this and change layerTreeView() above to A
SSERT_NOT_REACHED. | 68 // FIXME: Remove all overrides of this and change layerTreeView() above to A
SSERT_NOT_REACHED. |
73 virtual bool allowsBrokenNullLayerTreeView() const { return false; } | 69 virtual bool allowsBrokenNullLayerTreeView() const { return false; } |
74 | 70 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // modified by script, not by user input. | 177 // modified by script, not by user input. |
182 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } | 178 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } |
183 | 179 |
184 protected: | 180 protected: |
185 ~WebWidgetClient() { } | 181 ~WebWidgetClient() { } |
186 }; | 182 }; |
187 | 183 |
188 } // namespace blink | 184 } // namespace blink |
189 | 185 |
190 #endif | 186 #endif |
OLD | NEW |