OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_INSTANCE_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_INSTANCE_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_INSTANCE_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_INSTANCE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 PP_Var GetOwnerElementObject(); | 60 PP_Var GetOwnerElementObject(); |
61 bool BindGraphicsDeviceContext(PP_Resource device_id); | 61 bool BindGraphicsDeviceContext(PP_Resource device_id); |
62 | 62 |
63 // PPP_Instance pass-through. | 63 // PPP_Instance pass-through. |
64 void Delete(); | 64 void Delete(); |
65 bool Initialize(WebKit::WebPluginContainer* container, | 65 bool Initialize(WebKit::WebPluginContainer* container, |
66 const std::vector<std::string>& arg_names, | 66 const std::vector<std::string>& arg_names, |
67 const std::vector<std::string>& arg_values); | 67 const std::vector<std::string>& arg_values); |
68 bool HandleInputEvent(const WebKit::WebInputEvent& event, | 68 bool HandleInputEvent(const WebKit::WebInputEvent& event, |
69 WebKit::WebCursorInfo* cursor_info); | 69 WebKit::WebCursorInfo* cursor_info); |
| 70 PP_Var GetInstanceObject(); |
70 void ViewChanged(const gfx::Rect& position, const gfx::Rect& clip); | 71 void ViewChanged(const gfx::Rect& position, const gfx::Rect& clip); |
71 | 72 |
72 private: | 73 private: |
73 PluginDelegate* delegate_; | 74 PluginDelegate* delegate_; |
74 scoped_refptr<PluginModule> module_; | 75 scoped_refptr<PluginModule> module_; |
75 const PPP_Instance* instance_interface_; | 76 const PPP_Instance* instance_interface_; |
76 | 77 |
77 // NULL until we have been initialized. | 78 // NULL until we have been initialized. |
78 WebKit::WebPluginContainer* container_; | 79 WebKit::WebPluginContainer* container_; |
79 | 80 |
80 // The current device context for painting in 2D. | 81 // The current device context for painting in 2D. |
81 scoped_refptr<DeviceContext2D> device_context_2d_; | 82 scoped_refptr<DeviceContext2D> device_context_2d_; |
82 | 83 |
83 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 84 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
84 }; | 85 }; |
85 | 86 |
86 } // namespace pepper | 87 } // namespace pepper |
87 | 88 |
88 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_INSTANCE_H_ | 89 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_INSTANCE_H_ |
OLD | NEW |