diff options
Diffstat (limited to 'webkit/glue/webplugin_impl.h')
-rw-r--r-- | webkit/glue/webplugin_impl.h | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/webkit/glue/webplugin_impl.h b/webkit/glue/webplugin_impl.h index 4736510..e5a526d 100644 --- a/webkit/glue/webplugin_impl.h +++ b/webkit/glue/webplugin_impl.h @@ -200,7 +200,7 @@ class WebPluginImpl : public WebPlugin, void InvalidateRect(const gfx::Rect& rect); // Widget implementation: - virtual WebCore::IntRect windowClipRect() const; + WebCore::IntRect windowClipRect() const; // Returns window-relative rectangles that should clip this widget. // Only rects that intersect the given bounds are relevant. @@ -211,24 +211,28 @@ class WebPluginImpl : public WebPlugin, void windowCutoutRects(const WebCore::IntRect& bounds, WTF::Vector<WebCore::IntRect>* rects) const; - // Override for when our window changes size or position. + // Called by WebPluginContainer::setFrameRect, which overrides + // Widget setFrameRect when our window changes size or position. // Used to notify the plugin when the size or position changes. - virtual void setFrameRect(const WebCore::IntRect& rect); + void setFrameRect(const WebCore::IntRect& rect, + bool widget_dimensions_changed); - // Overrides paint so we can notify the underlying widget to repaint. - virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect& rect); - virtual void print(WebCore::GraphicsContext*); + // Called by WebPluginContainer::paint, which overrides Widget::paint so we + // can notify the underlying widget to repaint. + void paint(WebCore::GraphicsContext*, const WebCore::IntRect& rect); + void print(WebCore::GraphicsContext*); - // Override setFocus so we can notify the Plugin. - virtual void setFocus(); + // Called by WebPluginContainer::setFocus, which overrides Widget::setFocus. + // Notifies the plugin about focus changes. + void setFocus(); - // Override show and hide to be able to control the visible state of the - // plugin window. - virtual void show(); - virtual void hide(); + // Called by WebPluginContainer::show/hide, which overrides Widget show/hide. + // This allows us to control the visible state of the plugin window. + void show(); + void hide(); // Handle widget events. - virtual void handleEvent(WebCore::Event* event); + void handleEvent(WebCore::Event* event); void handleMouseEvent(WebCore::MouseEvent* event); void handleKeyboardEvent(WebCore::KeyboardEvent* event); |