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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 void calculateGeometry( | 193 void calculateGeometry( |
194 IntRect& windowRect, | 194 IntRect& windowRect, |
195 IntRect& clipRect, | 195 IntRect& clipRect, |
196 IntRect& unobscuredRect, | 196 IntRect& unobscuredRect, |
197 Vector<IntRect>& cutOutRects); | 197 Vector<IntRect>& cutOutRects); |
198 void windowCutOutRects( | 198 void windowCutOutRects( |
199 const IntRect& frameRect, | 199 const IntRect& frameRect, |
200 Vector<IntRect>& cutOutRects); | 200 Vector<IntRect>& cutOutRects); |
201 | 201 |
| 202 friend class WebPluginContainerTest; |
| 203 |
202 RawPtrWillBeMember<HTMLPlugInElement> m_element; | 204 RawPtrWillBeMember<HTMLPlugInElement> m_element; |
203 WebPlugin* m_webPlugin; | 205 WebPlugin* m_webPlugin; |
204 #if !ENABLE(OILPAN) | 206 #if !ENABLE(OILPAN) |
205 Vector<WebPluginLoadObserver*> m_pluginLoadObservers; | 207 Vector<WebPluginLoadObserver*> m_pluginLoadObservers; |
206 #endif | 208 #endif |
207 | 209 |
208 WebLayer* m_webLayer; | 210 WebLayer* m_webLayer; |
209 | 211 |
210 IntRect m_pendingInvalidationRect; | 212 IntRect m_pendingInvalidationRect; |
211 | 213 |
212 TouchEventRequestType m_touchEventRequestType; | 214 TouchEventRequestType m_touchEventRequestType; |
213 bool m_wantsWheelEvents; | 215 bool m_wantsWheelEvents; |
214 | 216 |
215 bool m_inDispose; | 217 bool m_inDispose; |
216 #if ENABLE(OILPAN) | 218 #if ENABLE(OILPAN) |
217 // Oilpan: if true, the plugin container must dispose | 219 // Oilpan: if true, the plugin container must dispose |
218 // of its plugin when being finalized. | 220 // of its plugin when being finalized. |
219 bool m_shouldDisposePlugin; | 221 bool m_shouldDisposePlugin; |
220 #endif | 222 #endif |
221 }; | 223 }; |
222 | 224 |
223 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai
ner(), widget.isPluginContainer()); | 225 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai
ner(), widget.isPluginContainer()); |
224 // Unlike Widget, we need not worry about object type for container. | 226 // Unlike Widget, we need not worry about object type for container. |
225 // WebPluginContainerImpl is the only subclass of WebPluginContainer. | 227 // WebPluginContainerImpl is the only subclass of WebPluginContainer. |
226 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t
rue); | 228 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t
rue); |
227 | 229 |
228 } // namespace blink | 230 } // namespace blink |
229 | 231 |
230 #endif | 232 #endif |
OLD | NEW |