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 * 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 158 | 158 |
| 159 DECLARE_VIRTUAL_TRACE(); | 159 DECLARE_VIRTUAL_TRACE(); |
| 160 void dispose() override; | 160 void dispose() override; |
| 161 | 161 |
| 162 #if ENABLE(OILPAN) | 162 #if ENABLE(OILPAN) |
| 163 LocalFrame* pluginFrame() const override { return frame(); } | 163 LocalFrame* pluginFrame() const override { return frame(); } |
| 164 void shouldDisposePlugin() override; | 164 void shouldDisposePlugin() override; |
| 165 #endif | 165 #endif |
| 166 | 166 |
| 167 private: | 167 private: |
| 168 // Sets |clippedAbsoluteRect| to the absolute visible rect for the plugin, c lipped to the visible screen of the root frame. | |
|
chrishtr
2015/11/03 19:22:55
This is my understanding of what is intended after
tommycli
2015/11/03 20:10:22
Exactly. One is clipped to the visible viewport, t
| |
| 169 // If not null, sets |unclippedAbsoluteRect| tp the absolute visible rect fo r the plugin (but without also clipping to the screen). | |
|
tommycli
2015/11/03 20:10:22
Tiny typo.
chrishtr
2015/11/03 21:24:56
Fixed.
| |
| 170 void computeClipRectsForPlugin(const HTMLFrameOwnerElement* pluginOwnerEleme nt, IntRect& clippedAbsoluteRect, IntRect* unclippedAbsoluteRect) const; | |
| 171 | |
| 168 WebPluginContainerImpl(HTMLPlugInElement*, WebPlugin*); | 172 WebPluginContainerImpl(HTMLPlugInElement*, WebPlugin*); |
| 169 ~WebPluginContainerImpl() override; | 173 ~WebPluginContainerImpl() override; |
| 170 | 174 |
| 171 void handleMouseEvent(MouseEvent*); | 175 void handleMouseEvent(MouseEvent*); |
| 172 void handleDragEvent(MouseEvent*); | 176 void handleDragEvent(MouseEvent*); |
| 173 void handleWheelEvent(WheelEvent*); | 177 void handleWheelEvent(WheelEvent*); |
| 174 void handleKeyboardEvent(KeyboardEvent*); | 178 void handleKeyboardEvent(KeyboardEvent*); |
| 175 void handleTouchEvent(TouchEvent*); | 179 void handleTouchEvent(TouchEvent*); |
| 176 void handleGestureEvent(GestureEvent*); | 180 void handleGestureEvent(GestureEvent*); |
| 177 | 181 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 210 }; | 214 }; |
| 211 | 215 |
| 212 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer()); | 216 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer()); |
| 213 // Unlike Widget, we need not worry about object type for container. | 217 // Unlike Widget, we need not worry about object type for container. |
| 214 // WebPluginContainerImpl is the only subclass of WebPluginContainer. | 218 // WebPluginContainerImpl is the only subclass of WebPluginContainer. |
| 215 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue); | 219 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue); |
| 216 | 220 |
| 217 } // namespace blink | 221 } // namespace blink |
| 218 | 222 |
| 219 #endif | 223 #endif |
| OLD | NEW |