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

Unified Diff: webkit/glue/webplugin_impl.h

Issue 42413: The street view in Google maps, which is implemented with a windowed flash pl... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/glue/webplugin_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webplugin_impl.h
===================================================================
--- webkit/glue/webplugin_impl.h (revision 12166)
+++ webkit/glue/webplugin_impl.h (working copy)
@@ -200,7 +200,7 @@
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 @@
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);
« no previous file with comments | « no previous file | webkit/glue/webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698