| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 | 5 |
| 6 /** | 6 /** |
| 7 * This file defines the PPB_Instance interface implemented by the | 7 * This file defines the <code>PPB_Instance</code> interface implemented by the |
| 8 * browser and containing pointers to functions related to | 8 * browser and containing pointers to functions related to |
| 9 * the module instance on a web page. | 9 * the module instance on a web page. |
| 10 */ | 10 */ |
| 11 | 11 |
| 12 label Chrome { | 12 label Chrome { |
| 13 M13 = 0.5, | 13 M13 = 0.5, |
| 14 M14 = 1.0 | 14 M14 = 1.0 |
| 15 }; | 15 }; |
| 16 | 16 |
| 17 /** | 17 /** |
| (...skipping 20 matching lines...) Expand all Loading... |
| 38 * and will do nothing. | 38 * and will do nothing. |
| 39 * | 39 * |
| 40 * Any previously-bound device will be released. It is an error to bind | 40 * Any previously-bound device will be released. It is an error to bind |
| 41 * a device when it is already bound to another instance. If you want | 41 * a device when it is already bound to another instance. If you want |
| 42 * to move a device between instances, first unbind it from the old one, and | 42 * to move a device between instances, first unbind it from the old one, and |
| 43 * then rebind it to the new one. | 43 * then rebind it to the new one. |
| 44 * | 44 * |
| 45 * Binding a device will invalidate that portion of the web page to flush the | 45 * Binding a device will invalidate that portion of the web page to flush the |
| 46 * contents of the new device to the screen. | 46 * contents of the new device to the screen. |
| 47 * | 47 * |
| 48 * @param[in] instance A PP_Instance indentifying one instance of a module. | 48 * @param[in] instance A PP_Instance identifying one instance of a module. |
| 49 * @param[in] device A PP_Resource representing the graphics device. | 49 * @param[in] device A PP_Resource corresponding to a graphics device. |
| 50 * | 50 * |
| 51 * @return <code>PP_Bool</code> containing <code>PP_TRUE</code> if bind was | 51 * @return <code>PP_Bool</code> containing <code>PP_TRUE</code> if bind was |
| 52 * successful or <code>PP_FALSE</code> if the device was not the correct | 52 * successful or <code>PP_FALSE</code> if the device was not the correct |
| 53 * type. On success, a reference to the device will be held by the | 53 * type. On success, a reference to the device will be held by the |
| 54 * instance, so the caller can release its reference if it chooses. | 54 * instance, so the caller can release its reference if it chooses. |
| 55 */ | 55 */ |
| 56 PP_Bool BindGraphics( | 56 PP_Bool BindGraphics( |
| 57 [in] PP_Instance instance, | 57 [in] PP_Instance instance, |
| 58 [in] PP_Resource device); | 58 [in] PP_Resource device); |
| 59 | 59 |
| 60 /** | 60 /** |
| 61 * IsFullFrame() determines if the instance is full-frame. Such an instance | 61 * IsFullFrame() determines if the instance is full-frame. Such an instance |
| 62 * represents the entire document in a frame rather than an embedded | 62 * represents the entire document in a frame rather than an embedded |
| 63 * resource. This can happen if the user does a top-level navigation or the | 63 * resource. This can happen if the user does a top-level navigation or the |
| 64 * page specifies an iframe to a resource with a MIME type registered by the | 64 * page specifies an iframe to a resource with a MIME type registered by the |
| 65 * module. | 65 * module. |
| 66 * | 66 * |
| 67 * @param[in] instance A <code>PP_Instance</code> indentifying one instance | 67 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 68 * of a module. | 68 * of a module. |
| 69 * | 69 * |
| 70 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the | 70 * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the |
| 71 * instance is full-frame. | 71 * instance is full-frame. |
| 72 */ | 72 */ |
| 73 PP_Bool IsFullFrame( | 73 PP_Bool IsFullFrame( |
| 74 [in] PP_Instance instance); | 74 [in] PP_Instance instance); |
| 75 | 75 |
| 76 /** Deprecated in 0.5 */ | 76 /** Deprecated in 0.5 */ |
| 77 [deprecate=0.5] | 77 [deprecate=0.5] |
| 78 PP_Var ExecuteScript([in] PP_Instance instance, | 78 PP_Var ExecuteScript([in] PP_Instance instance, |
| 79 [in] PP_Var script, | 79 [in] PP_Var script, |
| 80 [out] PP_Var exception); | 80 [out] PP_Var exception); |
| 81 }; | 81 }; |
| 82 | 82 |
| OLD | NEW |