OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 // Called when plugin document receives data. | 40 // Called when plugin document receives data. |
41 virtual void DidReceiveData(const char* data, int data_length) {} | 41 virtual void DidReceiveData(const char* data, int data_length) {} |
42 | 42 |
43 // Sets the instance ID that idenfies the plugin within current render | 43 // Sets the instance ID that idenfies the plugin within current render |
44 // process. | 44 // process. |
45 virtual void SetElementInstanceID(int element_instance_id) {} | 45 virtual void SetElementInstanceID(int element_instance_id) {} |
46 | 46 |
47 // Called when the plugin resizes. | 47 // Called when the plugin resizes. |
48 virtual void DidResizeElement(const gfx::Size& new_size) {} | 48 virtual void DidResizeElement(const gfx::Size& new_size) {} |
49 | 49 |
| 50 // Called when the plugin is about to be destroyed. |
| 51 virtual void WillDestroy() {} |
| 52 |
50 // Return a scriptable object for the plugin. | 53 // Return a scriptable object for the plugin. |
51 virtual v8::Local<v8::Object> V8ScriptableObject(v8::Isolate* isolate); | 54 virtual v8::Local<v8::Object> V8ScriptableObject(v8::Isolate* isolate); |
52 }; | 55 }; |
53 | 56 |
54 } // namespace content | 57 } // namespace content |
55 | 58 |
56 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ | 59 #endif // CONTENT_PUBLIC_RENDERER_BROWSER_PLUGIN_DELEGATE_H_ |
OLD | NEW |