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

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

Issue 1033603007: Blink: Pass 'unobscured' rect to WebPlugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 months 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void handleWheelEvent(WheelEvent*); 180 void handleWheelEvent(WheelEvent*);
181 void handleKeyboardEvent(KeyboardEvent*); 181 void handleKeyboardEvent(KeyboardEvent*);
182 void handleTouchEvent(TouchEvent*); 182 void handleTouchEvent(TouchEvent*);
183 void handleGestureEvent(GestureEvent*); 183 void handleGestureEvent(GestureEvent*);
184 184
185 void synthesizeMouseEventIfPossible(TouchEvent*); 185 void synthesizeMouseEventIfPossible(TouchEvent*);
186 186
187 void focusPlugin(); 187 void focusPlugin();
188 188
189 void calculateGeometry( 189 void calculateGeometry(
190 const IntRect& frameRect,
191 IntRect& windowRect, 190 IntRect& windowRect,
192 IntRect& clipRect, 191 IntRect& clipRect,
192 IntRect& unobscuredRect,
193 Vector<IntRect>& cutOutRects); 193 Vector<IntRect>& cutOutRects);
194 IntRect windowClipRect() const;
195 void windowCutOutRects( 194 void windowCutOutRects(
196 const IntRect& frameRect, 195 const IntRect& frameRect,
197 Vector<IntRect>& cutOutRects); 196 Vector<IntRect>& cutOutRects);
198 197
199 RawPtrWillBeMember<HTMLPlugInElement> m_element; 198 RawPtrWillBeMember<HTMLPlugInElement> m_element;
200 WebPlugin* m_webPlugin; 199 WebPlugin* m_webPlugin;
201 Vector<WebPluginLoadObserver*> m_pluginLoadObservers; 200 Vector<WebPluginLoadObserver*> m_pluginLoadObservers;
202 201
203 WebLayer* m_webLayer; 202 WebLayer* m_webLayer;
204 203
(...skipping 12 matching lines...) Expand all
217 }; 216 };
218 217
219 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer()); 218 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer());
220 // Unlike Widget, we need not worry about object type for container. 219 // Unlike Widget, we need not worry about object type for container.
221 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 220 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
222 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue); 221 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue);
223 222
224 } // namespace blink 223 } // namespace blink
225 224
226 #endif 225 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698