OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_PEPPER_PLUGIN_INSTANCE_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ |
6 #define CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ | 6 #define CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/process/process_handle.h" | 10 #include "base/process/process_handle.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 namespace blink { | 40 namespace blink { |
41 class WebPluginContainer; | 41 class WebPluginContainer; |
42 } | 42 } |
43 | 43 |
44 namespace v8 { | 44 namespace v8 { |
45 class Isolate; | 45 class Isolate; |
46 } | 46 } |
47 | 47 |
48 namespace content { | 48 namespace content { |
49 class RenderFrame; | 49 class RenderFrame; |
50 class RenderView; | |
51 | 50 |
52 class PepperPluginInstance { | 51 class PepperPluginInstance { |
53 public: | 52 public: |
54 // Return the PepperPluginInstance for the given |instance_id|. Will return | 53 // Return the PepperPluginInstance for the given |instance_id|. Will return |
55 // null if the instance is in the process of being deleted. | 54 // null if the instance is in the process of being deleted. |
56 static CONTENT_EXPORT PepperPluginInstance* Get(PP_Instance instance_id); | 55 static CONTENT_EXPORT PepperPluginInstance* Get(PP_Instance instance_id); |
57 | 56 |
58 virtual ~PepperPluginInstance() {} | 57 virtual ~PepperPluginInstance() {} |
59 | 58 |
60 virtual content::RenderFrame* GetRenderFrame() = 0; | 59 virtual content::RenderFrame* GetRenderFrame() = 0; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Sets the text input type for this plugin. | 119 // Sets the text input type for this plugin. |
121 virtual void SetTextInputType(ui::TextInputType type) = 0; | 120 virtual void SetTextInputType(ui::TextInputType type) = 0; |
122 | 121 |
123 // Posts a message to the JavaScript object for this instance. | 122 // Posts a message to the JavaScript object for this instance. |
124 virtual void PostMessageToJavaScript(PP_Var message) = 0; | 123 virtual void PostMessageToJavaScript(PP_Var message) = 0; |
125 }; | 124 }; |
126 | 125 |
127 } // namespace content | 126 } // namespace content |
128 | 127 |
129 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ | 128 #endif // CONTENT_PUBLIC_RENDERER_PEPPER_PLUGIN_INSTANCE_H_ |
OLD | NEW |