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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 ~PluginInstance(); | 43 ~PluginInstance(); |
44 | 44 |
45 static const PPB_Instance* GetInterface(); | 45 static const PPB_Instance* GetInterface(); |
46 | 46 |
47 // Converts the given instance ID to an actual instance object. | 47 // Converts the given instance ID to an actual instance object. |
48 static PluginInstance* FromPPInstance(PP_Instance instance); | 48 static PluginInstance* FromPPInstance(PP_Instance instance); |
49 | 49 |
50 PluginDelegate* delegate() const { return delegate_; } | 50 PluginDelegate* delegate() const { return delegate_; } |
51 PluginModule* module() const { return module_.get(); } | 51 PluginModule* module() const { return module_.get(); } |
52 | 52 |
| 53 WebKit::WebPluginContainer* container() const { return container_; } |
| 54 |
53 const gfx::Rect& position() const { return position_; } | 55 const gfx::Rect& position() const { return position_; } |
54 const gfx::Rect& clip() const { return clip_; } | 56 const gfx::Rect& clip() const { return clip_; } |
55 | 57 |
56 PP_Instance GetPPInstance(); | 58 PP_Instance GetPPInstance(); |
57 | 59 |
58 // Paints the current backing store to the web page. | 60 // Paints the current backing store to the web page. |
59 void Paint(WebKit::WebCanvas* canvas, | 61 void Paint(WebKit::WebCanvas* canvas, |
60 const gfx::Rect& plugin_rect, | 62 const gfx::Rect& plugin_rect, |
61 const gfx::Rect& paint_rect); | 63 const gfx::Rect& paint_rect); |
62 | 64 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 109 |
108 // The current device context for painting in 2D. | 110 // The current device context for painting in 2D. |
109 scoped_refptr<DeviceContext2D> device_context_2d_; | 111 scoped_refptr<DeviceContext2D> device_context_2d_; |
110 | 112 |
111 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 113 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
112 }; | 114 }; |
113 | 115 |
114 } // namespace pepper | 116 } // namespace pepper |
115 | 117 |
116 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_INSTANCE_H_ | 118 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_INSTANCE_H_ |
OLD | NEW |