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

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

Issue 23618022: BrowserPlugin/WebView - Move plugin lifetime to DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised method for widget lifetime management. Created 7 years 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 virtual void show(); 88 virtual void show();
89 virtual void hide(); 89 virtual void hide();
90 virtual void handleEvent(WebCore::Event*); 90 virtual void handleEvent(WebCore::Event*);
91 virtual void frameRectsChanged(); 91 virtual void frameRectsChanged();
92 virtual void setParentVisible(bool); 92 virtual void setParentVisible(bool);
93 virtual void setParent(WebCore::Widget*); 93 virtual void setParent(WebCore::Widget*);
94 virtual void widgetPositionsUpdated(); 94 virtual void widgetPositionsUpdated();
95 virtual void clipRectChanged() OVERRIDE; 95 virtual void clipRectChanged() OVERRIDE;
96 virtual bool isPluginContainer() const { return true; } 96 virtual bool isPluginContainer() const { return true; }
97 virtual void eventListenersRemoved() OVERRIDE; 97 virtual void eventListenersRemoved() OVERRIDE;
98 virtual bool pluginShouldPersist() const;
eseidel 2013/12/02 16:28:34 OVERRIDE?
wjmaclean 2013/12/02 21:51:55 Thanks, I missed that!
98 99
99 // WebPluginContainer methods 100 // WebPluginContainer methods
100 virtual WebElement element(); 101 virtual WebElement element();
101 virtual void invalidate(); 102 virtual void invalidate();
102 virtual void invalidateRect(const WebRect&); 103 virtual void invalidateRect(const WebRect&);
103 virtual void scrollRect(int dx, int dy, const WebRect&); 104 virtual void scrollRect(int dx, int dy, const WebRect&);
104 virtual void reportGeometry(); 105 virtual void reportGeometry();
105 virtual void allowScriptObjects(); 106 virtual void allowScriptObjects();
106 virtual void clearScriptObjects(); 107 virtual void clearScriptObjects();
107 virtual NPObject* scriptableObjectForElement(); 108 virtual NPObject* scriptableObjectForElement();
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 213 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
213 return static_cast<WebPluginContainerImpl*>(container); 214 return static_cast<WebPluginContainerImpl*>(container);
214 } 215 }
215 216
216 // This will catch anyone doing an unnecessary cast. 217 // This will catch anyone doing an unnecessary cast.
217 void toPluginContainerImpl(const WebPluginContainerImpl*); 218 void toPluginContainerImpl(const WebPluginContainerImpl*);
218 219
219 } // namespace blink 220 } // namespace blink
220 221
221 #endif 222 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698