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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 61 // Called when the compositor is enabled or disabled. |
62 // The parameter to didActivateCompositor() is meaningless. | |
63 // FIXME: The older definiton of didActivateCompositor (i.e with arguments) | |
64 // and all its corresponding call is to removed once the dependent chromium | |
65 // side patch https://codereview.chromium.org/137893025/ lands and all overr
ides | |
66 // of older definition are removed from chromium side. | |
67 virtual void didActivateCompositor() { } | 62 virtual void didActivateCompositor() { } |
68 virtual void didActivateCompositor(int deprecated) { } | |
69 virtual void didDeactivateCompositor() { } | 63 virtual void didDeactivateCompositor() { } |
70 | 64 |
71 // Attempt to initialize compositing for this widget. If this is successful, | 65 // Attempt to initialize compositing for this widget. If this is successful, |
72 // layerTreeView() will return a valid WebLayerTreeView. | 66 // layerTreeView() will return a valid WebLayerTreeView. |
73 virtual void initializeLayerTreeView() { } | 67 virtual void initializeLayerTreeView() { } |
74 | 68 |
75 // Return a compositing view used for this widget. This is owned by the | 69 // Return a compositing view used for this widget. This is owned by the |
76 // WebWidgetClient. | 70 // WebWidgetClient. |
77 virtual WebLayerTreeView* layerTreeView() { return 0; } | 71 virtual WebLayerTreeView* layerTreeView() { return 0; } |
78 | 72 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // modified by script, not by user input. | 184 // modified by script, not by user input. |
191 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } | 185 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } |
192 | 186 |
193 protected: | 187 protected: |
194 ~WebWidgetClient() { } | 188 ~WebWidgetClient() { } |
195 }; | 189 }; |
196 | 190 |
197 } // namespace blink | 191 } // namespace blink |
198 | 192 |
199 #endif | 193 #endif |
OLD | NEW |