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

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: Handle shared-renderer case. Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 setFocus(bool) OVERRIDE; 88 virtual void setFocus(bool) OVERRIDE;
89 virtual void show() OVERRIDE; 89 virtual void show() OVERRIDE;
90 virtual void hide() OVERRIDE; 90 virtual void hide() OVERRIDE;
91 virtual void handleEvent(WebCore::Event*) OVERRIDE; 91 virtual void handleEvent(WebCore::Event*) OVERRIDE;
92 virtual void frameRectsChanged() OVERRIDE; 92 virtual void frameRectsChanged() OVERRIDE;
93 virtual void setParentVisible(bool) OVERRIDE; 93 virtual void setParentVisible(bool) OVERRIDE;
94 virtual void setParent(WebCore::Widget*) OVERRIDE; 94 virtual void setParent(WebCore::Widget*) OVERRIDE;
95 virtual void widgetPositionsUpdated() OVERRIDE; 95 virtual void widgetPositionsUpdated() OVERRIDE;
96 virtual bool isPluginContainer() const OVERRIDE { return true; } 96 virtual bool isPluginContainer() const OVERRIDE { return true; }
97 virtual void eventListenersRemoved() OVERRIDE; 97 virtual void eventListenersRemoved() OVERRIDE;
98 virtual bool pluginShouldPersist() const OVERRIDE;
98 99
99 // WebPluginContainer methods 100 // WebPluginContainer methods
100 virtual WebElement element() OVERRIDE; 101 virtual WebElement element() OVERRIDE;
101 virtual void invalidate() OVERRIDE; 102 virtual void invalidate() OVERRIDE;
102 virtual void invalidateRect(const WebRect&) OVERRIDE; 103 virtual void invalidateRect(const WebRect&) OVERRIDE;
103 virtual void scrollRect(int dx, int dy, const WebRect&) OVERRIDE; 104 virtual void scrollRect(int dx, int dy, const WebRect&) OVERRIDE;
104 virtual void reportGeometry() OVERRIDE; 105 virtual void reportGeometry() OVERRIDE;
105 virtual void allowScriptObjects() OVERRIDE; 106 virtual void allowScriptObjects() OVERRIDE;
106 virtual void clearScriptObjects() OVERRIDE; 107 virtual void clearScriptObjects() OVERRIDE;
107 virtual NPObject* scriptableObjectForElement() OVERRIDE; 108 virtual NPObject* scriptableObjectForElement() OVERRIDE;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 }; 200 };
200 201
201 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebCore::Widget, widget, widget->isPlu ginContainer(), widget.isPluginContainer()); 202 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebCore::Widget, widget, widget->isPlu ginContainer(), widget.isPluginContainer());
202 // Unlike Widget, we need not worry about object type for container. 203 // Unlike Widget, we need not worry about object type for container.
203 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 204 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
204 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue); 205 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue);
205 206
206 } // namespace blink 207 } // namespace blink
207 208
208 #endif 209 #endif
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698