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

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

Issue 1284403003: Persist plugins over reattach. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master Created 5 years, 4 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/platform/Widget.h ('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 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 void setFocus(bool, WebFocusType) override; 87 void setFocus(bool, WebFocusType) override;
88 void show() override; 88 void show() override;
89 void hide() override; 89 void hide() override;
90 void handleEvent(Event*) override; 90 void handleEvent(Event*) override;
91 void frameRectsChanged() override; 91 void frameRectsChanged() override;
92 void setParentVisible(bool) override; 92 void setParentVisible(bool) override;
93 void setParent(Widget*) override; 93 void setParent(Widget*) override;
94 void widgetPositionsUpdated() override; 94 void widgetPositionsUpdated() override;
95 bool isPluginContainer() const override { return true; } 95 bool isPluginContainer() const override { return true; }
96 void eventListenersRemoved() override; 96 void eventListenersRemoved() override;
97 bool pluginShouldPersist() const override;
98 97
99 // WebPluginContainer methods 98 // WebPluginContainer methods
100 WebElement element() override; 99 WebElement element() override;
101 void invalidate() override; 100 void invalidate() override;
102 void invalidateRect(const WebRect&) override; 101 void invalidateRect(const WebRect&) override;
103 void scrollRect(const WebRect&) override; 102 void scrollRect(const WebRect&) override;
104 void setNeedsLayout() override; 103 void setNeedsLayout() override;
105 void reportGeometry() override; 104 void reportGeometry() override;
106 void allowScriptObjects() override; 105 void allowScriptObjects() override;
107 void clearScriptObjects() override; 106 void clearScriptObjects() override;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 }; 210 };
212 211
213 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer()); 212 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer());
214 // Unlike Widget, we need not worry about object type for container. 213 // Unlike Widget, we need not worry about object type for container.
215 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 214 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
216 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue); 215 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue);
217 216
218 } // namespace blink 217 } // namespace blink
219 218
220 #endif 219 #endif
OLDNEW
« no previous file with comments | « Source/platform/Widget.h ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698