Chromium Code Reviews| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 44 class WebString; | 44 class WebString; |
| 45 class WebWidget; | 45 class WebWidget; |
| 46 struct WebCursorInfo; | 46 struct WebCursorInfo; |
| 47 struct WebSize; | 47 struct WebSize; |
| 48 | 48 |
| 49 class WebWidgetClient { | 49 class WebWidgetClient { |
| 50 public: | 50 public: |
| 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 | |
| 55 // scrolled by the specified dx and dy amounts. | |
| 56 virtual void didScrollRect(int dx, int dy, const WebRect& clipRect) { } | |
|
Ian Vollick
2014/06/23 15:07:58
I'm not sure when it disappeared, but there's no d
| |
| 57 | |
| 58 // Called when the Widget has changed size as a result of an auto-resize. | 54 // Called when the Widget has changed size as a result of an auto-resize. |
| 59 virtual void didAutoResize(const WebSize& newSize) { } | 55 virtual void didAutoResize(const WebSize& newSize) { } |
| 60 | 56 |
| 61 // Attempt to initialize compositing for this widget. If this is successful, | 57 // Attempt to initialize compositing for this widget. If this is successful, |
| 62 // layerTreeView() will return a valid WebLayerTreeView. | 58 // layerTreeView() will return a valid WebLayerTreeView. |
| 63 virtual void initializeLayerTreeView() { } | 59 virtual void initializeLayerTreeView() { } |
| 64 | 60 |
| 65 // Return a compositing view used for this widget. This is owned by the | 61 // Return a compositing view used for this widget. This is owned by the |
| 66 // WebWidgetClient. | 62 // WebWidgetClient. |
| 67 virtual WebLayerTreeView* layerTreeView() { return 0; } | 63 virtual WebLayerTreeView* layerTreeView() { return 0; } |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 180 // Request the browser to show the IME for current input type. | 176 // Request the browser to show the IME for current input type. |
| 181 virtual void showImeIfNeeded() { } | 177 virtual void showImeIfNeeded() { } |
| 182 | 178 |
| 183 protected: | 179 protected: |
| 184 ~WebWidgetClient() { } | 180 ~WebWidgetClient() { } |
| 185 }; | 181 }; |
| 186 | 182 |
| 187 } // namespace blink | 183 } // namespace blink |
| 188 | 184 |
| 189 #endif | 185 #endif |
| OLD | NEW |