OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 TouchEventRequestTypeSynthesizedMouse, | 56 TouchEventRequestTypeSynthesizedMouse, |
57 }; | 57 }; |
58 | 58 |
59 // Returns the element containing this plugin. | 59 // Returns the element containing this plugin. |
60 virtual WebElement element() = 0; | 60 virtual WebElement element() = 0; |
61 | 61 |
62 virtual void invalidate() = 0; | 62 virtual void invalidate() = 0; |
63 virtual void invalidateRect(const WebRect&) = 0; | 63 virtual void invalidateRect(const WebRect&) = 0; |
64 virtual void scrollRect(const WebRect&) = 0; | 64 virtual void scrollRect(const WebRect&) = 0; |
65 | 65 |
| 66 // Causes the container to be marked as needing layout, which in turn will c
ause |
| 67 // layoutIfNeeded() to be called on any contained WebPlugin during the conta
iner's |
| 68 // web view's lifecycle update, and in particular before calling paint() on
the |
| 69 // WebPlugin. |
| 70 virtual void setNeedsLayout() = 0; |
| 71 |
66 // Causes the container to report its current geometry via | 72 // Causes the container to report its current geometry via |
67 // WebPlugin::updateGeometry. | 73 // WebPlugin::updateGeometry. |
68 virtual void reportGeometry() = 0; | 74 virtual void reportGeometry() = 0; |
69 | 75 |
70 // Allow the plugin to pass script objects to the browser. The container | 76 // Allow the plugin to pass script objects to the browser. The container |
71 // tracks ownership of script objects in order to allow browser references | 77 // tracks ownership of script objects in order to allow browser references |
72 // to them to be dropped when clearScriptObjects is called. | 78 // to them to be dropped when clearScriptObjects is called. |
73 virtual void allowScriptObjects() = 0; | 79 virtual void allowScriptObjects() = 0; |
74 | 80 |
75 // Drop any references to script objects allocated by the plugin. | 81 // Drop any references to script objects allocated by the plugin. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // WebPluginContainer does *not* take ownership. | 140 // WebPluginContainer does *not* take ownership. |
135 virtual void setWebLayer(WebLayer*) = 0; | 141 virtual void setWebLayer(WebLayer*) = 0; |
136 | 142 |
137 protected: | 143 protected: |
138 ~WebPluginContainer() { } | 144 ~WebPluginContainer() { } |
139 }; | 145 }; |
140 | 146 |
141 } // namespace blink | 147 } // namespace blink |
142 | 148 |
143 #endif | 149 #endif |
OLD | NEW |