OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Must also return nullptr this plugin is scheduled for deletion. | 78 // Must also return nullptr this plugin is scheduled for deletion. |
79 // | 79 // |
80 // Note: This container doesn't necessarily own this plugin. For example, | 80 // Note: This container doesn't necessarily own this plugin. For example, |
81 // if the container has been assigned a new plugin, then the container will | 81 // if the container has been assigned a new plugin, then the container will |
82 // own the new plugin, not this old plugin. | 82 // own the new plugin, not this old plugin. |
83 virtual WebPluginContainer* container() const { return nullptr; } | 83 virtual WebPluginContainer* container() const { return nullptr; } |
84 virtual void containerDidDetachFromParent() { } | 84 virtual void containerDidDetachFromParent() { } |
85 | 85 |
86 virtual v8::Local<v8::Object> v8ScriptableObject(v8::Isolate*) { return v8::
Local<v8::Object>(); } | 86 virtual v8::Local<v8::Object> v8ScriptableObject(v8::Isolate*) { return v8::
Local<v8::Object>(); } |
87 | 87 |
88 // Returns true if the form submission value is successfully obtained | |
89 // from the plugin. The value would be associated with the name attribute | |
90 // of the corresponding object element. | |
91 virtual bool getFormValue(WebString&) { return false; } | |
92 virtual bool supportsKeyboardFocus() const { return false; } | 88 virtual bool supportsKeyboardFocus() const { return false; } |
93 virtual bool supportsEditCommands() const { return false; } | 89 virtual bool supportsEditCommands() const { return false; } |
94 // Returns true if this plugin supports input method, which implements | 90 // Returns true if this plugin supports input method, which implements |
95 // setComposition() and confirmComposition() below. | 91 // setComposition() and confirmComposition() below. |
96 virtual bool supportsInputMethod() const { return false; } | 92 virtual bool supportsInputMethod() const { return false; } |
97 | 93 |
98 virtual bool canProcessDrag() const { return false; } | 94 virtual bool canProcessDrag() const { return false; } |
99 | 95 |
100 virtual void updateAllLifecyclePhases() = 0; | 96 virtual void updateAllLifecyclePhases() = 0; |
101 virtual void paint(WebCanvas*, const WebRect&) = 0; | 97 virtual void paint(WebCanvas*, const WebRect&) = 0; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 178 |
183 virtual bool isPlaceholder() { return true; } | 179 virtual bool isPlaceholder() { return true; } |
184 | 180 |
185 protected: | 181 protected: |
186 ~WebPlugin() { } | 182 ~WebPlugin() { } |
187 }; | 183 }; |
188 | 184 |
189 } // namespace blink | 185 } // namespace blink |
190 | 186 |
191 #endif | 187 #endif |
OLD | NEW |