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

Side by Side Diff: public/web/WebPlugin.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 | « public/web/WebFrameClient.h ('k') | no next file » | 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, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 struct WebTextInputInfo; 57 struct WebTextInputInfo;
58 struct WebURLError; 58 struct WebURLError;
59 template <typename T> class WebVector; 59 template <typename T> class WebVector;
60 60
61 class WebPlugin { 61 class WebPlugin {
62 public: 62 public:
63 virtual bool initialize(WebPluginContainer*) = 0; 63 virtual bool initialize(WebPluginContainer*) = 0;
64 virtual void destroy() = 0; 64 virtual void destroy() = 0;
65 65
66 virtual WebPluginContainer* container() const { return 0; } 66 virtual WebPluginContainer* container() const { return 0; }
67 virtual void containerDidDetachFromParent() { }
67 68
68 virtual NPObject* scriptableObject() = 0; 69 virtual NPObject* scriptableObject() = 0;
69 virtual struct _NPP* pluginNPP() { return 0; } 70 virtual struct _NPP* pluginNPP() { return 0; }
70 71
71 // Returns true if the form submission value is successfully obtained 72 // Returns true if the form submission value is successfully obtained
72 // from the plugin. The value would be associated with the name attribute 73 // from the plugin. The value would be associated with the name attribute
73 // of the corresponding object element. 74 // of the corresponding object element.
74 virtual bool getFormValue(WebString&) { return false; } 75 virtual bool getFormValue(WebString&) { return false; }
75 virtual bool supportsKeyboardFocus() const { return false; } 76 virtual bool supportsKeyboardFocus() const { return false; }
76 virtual bool supportsEditCommands() const { return false; } 77 virtual bool supportsEditCommands() const { return false; }
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 enum RotationType { 162 enum RotationType {
162 RotationType90Clockwise, 163 RotationType90Clockwise,
163 RotationType90Counterclockwise 164 RotationType90Counterclockwise
164 }; 165 };
165 // Whether the plugin can rotate the view of its content. 166 // Whether the plugin can rotate the view of its content.
166 virtual bool canRotateView() { return false; } 167 virtual bool canRotateView() { return false; }
167 // Rotates the plugin's view of its content. 168 // Rotates the plugin's view of its content.
168 virtual void rotateView(RotationType type) { } 169 virtual void rotateView(RotationType type) { }
169 170
170 virtual bool isPlaceholder() { return true; } 171 virtual bool isPlaceholder() { return true; }
172 virtual bool shouldPersist() const { return false; }
171 173
172 protected: 174 protected:
173 ~WebPlugin() { } 175 ~WebPlugin() { }
174 }; 176 };
175 177
176 } // namespace blink 178 } // namespace blink
177 179
178 #endif 180 #endif
OLDNEW
« no previous file with comments | « public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698