Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(825)

Side by Side Diff: third_party/WebKit/Source/web/WebPluginContainerImpl.h

Issue 1413523007: Simplify computation of the invalidation rect for a frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 |windowRect| to the content rect of the plugin in screen space.
169 // Sets |clippedAbsoluteRect| to the visible rect for the plugin, clipped to the visible screen of the root frame, in local space of the plugin.
170 // Sets |unclippedAbsoluteRect| to the visible rect for the plugin (but with out also clipping to the screen), in local space of the plugin.
171 void computeClipRectsForPlugin(
172 const HTMLFrameOwnerElement* pluginOwnerElement, IntRect& windowRect, In tRect& clippedLocalRect, IntRect& unclippedIntLocalRect) const;
173
168 WebPluginContainerImpl(HTMLPlugInElement*, WebPlugin*); 174 WebPluginContainerImpl(HTMLPlugInElement*, WebPlugin*);
169 ~WebPluginContainerImpl() override; 175 ~WebPluginContainerImpl() override;
170 176
171 void handleMouseEvent(MouseEvent*); 177 void handleMouseEvent(MouseEvent*);
172 void handleDragEvent(MouseEvent*); 178 void handleDragEvent(MouseEvent*);
173 void handleWheelEvent(WheelEvent*); 179 void handleWheelEvent(WheelEvent*);
174 void handleKeyboardEvent(KeyboardEvent*); 180 void handleKeyboardEvent(KeyboardEvent*);
175 void handleTouchEvent(TouchEvent*); 181 void handleTouchEvent(TouchEvent*);
176 void handleGestureEvent(GestureEvent*); 182 void handleGestureEvent(GestureEvent*);
177 183
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 }; 216 };
211 217
212 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer()); 218 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer());
213 // Unlike Widget, we need not worry about object type for container. 219 // Unlike Widget, we need not worry about object type for container.
214 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 220 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
215 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue); 221 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue);
216 222
217 } // namespace blink 223 } // namespace blink
218 224
219 #endif 225 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp ('k') | third_party/WebKit/Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698