| 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 struct WebFloatPoint; | 51 struct WebFloatPoint; |
| 52 struct WebFloatRect; | 52 struct WebFloatRect; |
| 53 struct WebFloatSize; | 53 struct WebFloatSize; |
| 54 struct WebSize; | 54 struct WebSize; |
| 55 | 55 |
| 56 class WebWidgetClient { | 56 class WebWidgetClient { |
| 57 public: | 57 public: |
| 58 // Called when a region of the WebWidget needs to be re-painted. | 58 // Called when a region of the WebWidget needs to be re-painted. |
| 59 virtual void didInvalidateRect(const WebRect&) { } | 59 virtual void didInvalidateRect(const WebRect&) { } |
| 60 | 60 |
| 61 // Called when the Widget has changed size as a result of an auto-resize. | |
| 62 virtual void didAutoResize(const WebSize& newSize) { } | |
| 63 | |
| 64 // Attempt to initialize compositing for this widget. If this is successful, | 61 // Attempt to initialize compositing for this widget. If this is successful, |
| 65 // layerTreeView() will return a valid WebLayerTreeView. | 62 // layerTreeView() will return a valid WebLayerTreeView. |
| 66 virtual void initializeLayerTreeView() { } | 63 virtual void initializeLayerTreeView() { } |
| 67 | 64 |
| 68 // 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 |
| 69 // WebWidgetClient. | 66 // WebWidgetClient. |
| 70 virtual WebLayerTreeView* layerTreeView() { return 0; } | 67 virtual WebLayerTreeView* layerTreeView() { return 0; } |
| 71 // 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. |
| 72 virtual bool allowsBrokenNullLayerTreeView() const { return false; } | 69 virtual bool allowsBrokenNullLayerTreeView() const { return false; } |
| 73 | 70 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // migration is completed. | 188 // migration is completed. |
| 192 virtual void convertWindowToViewport(WebFloatRect* rect) {} | 189 virtual void convertWindowToViewport(WebFloatRect* rect) {} |
| 193 | 190 |
| 194 protected: | 191 protected: |
| 195 ~WebWidgetClient() { } | 192 ~WebWidgetClient() { } |
| 196 }; | 193 }; |
| 197 | 194 |
| 198 } // namespace blink | 195 } // namespace blink |
| 199 | 196 |
| 200 #endif | 197 #endif |
| OLD | NEW |