Chromium Code Reviews| Index: plugin/idl/client.idl |
| =================================================================== |
| --- plugin/idl/client.idl (revision 20119) |
| +++ plugin/idl/client.idl (working copy) |
| @@ -94,6 +94,32 @@ |
| }; |
| %[ |
| + The ClientInfo is used to get information about the client. |
| +%] |
| +[binding_model=by_value, include="core/cross/client_info.h", nocpp, glue_iface] |
| +class ClientInfo { |
| + %[ |
| + The number of objects the client is currently tracking. |
| + %] |
| + [getter] int num_objects; |
| + |
| + %[ |
| + The amount of texture memory used. |
| + %] |
| + [getter] int texture_memory_used; |
| + |
| + %[ |
| + The amount of texture memory used. |
| + %] |
| + [getter] int buffer_memory_used; |
| + |
| + %[ |
| + Whether or not we are using the software renderer. |
| + %] |
| + [getter] bool software_renderer; |
| +}; |
| + |
| +%[ |
| The Client class is the main point of entry to O3D. It defines methods |
| for creating and deleting packs. Each new object created by the Client is |
| assigned a unique ID. |
| @@ -236,6 +262,12 @@ |
| [userglue, plugin_data] void CancelFullscreenDisplay(); |
| %[ |
| + Gets info about the client. |
| + %] |
| + [userglue_getter, getter, plugin_data] |
| + ClientInfo client_info; |
| + |
| + %[ |
| Whether content is displayed in full-screen mode or in a plugin window. The |
| default is false [not full-screen]. |
| %] |
| @@ -526,6 +558,14 @@ |
| o3d::Client* self) { |
| return self->GetByClass<o3d::ObjectBase>(); |
| } |
| + o3d::ClientInfo userglue_getter_client_info( |
| + void *plugin_data, o3d::Client *self) { |
| + glue::_o3d::PluginObject *plugin = |
| + static_cast<glue::_o3d::PluginObject*>(plugin_data); |
| + o3d::ServiceDependency<o3d::ClientInfoManager> |
|
apatrick
2009/07/09 18:22:00
GetService
|
| + client_info_manager(plugin->service_locator()); |
| + return client_info_manager->client_info(); |
| + } |
| std::vector<o3d::DisplayMode> userglue_method_GetDisplayModes( |
| void *plugin_data, o3d::Client *self) { |
| std::vector<o3d::DisplayMode> modes; |