| Index: public/web/WebPlugin.h
|
| diff --git a/public/web/WebPlugin.h b/public/web/WebPlugin.h
|
| index 6b84860c21f2aa8de5ee6c1823fc30085a5bc02c..d9423e375dc84738edf704dba82d23330125984e 100644
|
| --- a/public/web/WebPlugin.h
|
| +++ b/public/web/WebPlugin.h
|
| @@ -89,10 +89,19 @@ public:
|
|
|
| virtual void paint(WebCanvas*, const WebRect&) = 0;
|
|
|
| + // DEPRECATED. TODO(tommycli): Remove once embedders migrate to the new interface.
|
| + virtual void updateGeometry(
|
| + const WebRect& windowRect, const WebRect& clipRect,
|
| + const WebVector<WebRect>& cutOutsRects, bool isVisible) { }
|
| +
|
| // Coordinates are relative to the containing window.
|
| virtual void updateGeometry(
|
| - const WebRect& frameRect, const WebRect& clipRect,
|
| - const WebVector<WebRect>& cutOutsRects, bool isVisible) = 0;
|
| + const WebRect& windowRect, const WebRect& clipRect,
|
| + const WebRect& unobscuredRect, const WebVector<WebRect>& cutOutsRects,
|
| + bool isVisible) {
|
| + // TODO(tommycli): This default implementation calls the old, deprecated interface. This method should be pure virtual after the deprecated interface is removed.
|
| + updateGeometry(windowRect, clipRect, cutOutsRects, isVisible);
|
| + }
|
|
|
| virtual void updateFocus(bool focused, WebFocusType) = 0;
|
|
|
|
|