| 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 /* From ppb_view.idl modified Thu Dec 15 10:22:28 2011. */ | 6 /* From ppb_view.idl modified Wed Jan 4 04:40:12 2012. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_VIEW_H_ | 8 #ifndef PPAPI_C_PPB_VIEW_H_ |
| 9 #define PPAPI_C_PPB_VIEW_H_ | 9 #define PPAPI_C_PPB_VIEW_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_macros.h" | 12 #include "ppapi/c/pp_macros.h" |
| 13 #include "ppapi/c/pp_point.h" | 13 #include "ppapi/c/pp_point.h" |
| 14 #include "ppapi/c/pp_rect.h" | 14 #include "ppapi/c/pp_rect.h" |
| 15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
| 16 #include "ppapi/c/pp_size.h" | 16 #include "ppapi/c/pp_size.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 30 * @addtogroup Interfaces | 30 * @addtogroup Interfaces |
| 31 * @{ | 31 * @{ |
| 32 */ | 32 */ |
| 33 /** | 33 /** |
| 34 * <code>PPB_View</code> represents the state of the view of an instance. | 34 * <code>PPB_View</code> represents the state of the view of an instance. |
| 35 * You can get a View object with the <code>PPB_Instance.GetView()</code> | 35 * You can get a View object with the <code>PPB_Instance.GetView()</code> |
| 36 * function. Additionally, all </code>PPB_ViewChanged</code> objects are also | 36 * function. Additionally, all </code>PPB_ViewChanged</code> objects are also |
| 37 * <code>PPB_View</code> objects so you will receive new view information via | 37 * <code>PPB_View</code> objects so you will receive new view information via |
| 38 * <code>PPP_Instance.DidChangeView</code>. | 38 * <code>PPP_Instance.DidChangeView</code>. |
| 39 */ | 39 */ |
| 40 struct PPB_View { | 40 struct PPB_View_1_0 { |
| 41 /** | 41 /** |
| 42 * <code>IsView()</code> determines if the given resource is a valid | 42 * <code>IsView()</code> determines if the given resource is a valid |
| 43 * <code>PPB_View</code> resource. Note that <code>PPB_ViewChanged</code> | 43 * <code>PPB_View</code> resource. Note that <code>PPB_ViewChanged</code> |
| 44 * resources derive from <code>PPB_View</code> and will return true here | 44 * resources derive from <code>PPB_View</code> and will return true here |
| 45 * as well. | 45 * as well. |
| 46 * | 46 * |
| 47 * @return <code>PP_TRUE</code> if the given resource supports | 47 * @return <code>PP_TRUE</code> if the given resource supports |
| 48 * <code>PPB_View</code> or <code>PP_FALSE</code> if it is an invalid | 48 * <code>PPB_View</code> or <code>PP_FALSE</code> if it is an invalid |
| 49 * resource or is a resource of another type. | 49 * resource or is a resource of another type. |
| 50 */ | 50 */ |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 * a certain region outside the clip to reduce the visual distraction when | 139 * a certain region outside the clip to reduce the visual distraction when |
| 140 * this happens. | 140 * this happens. |
| 141 * | 141 * |
| 142 * @param clip Output argument receiving the clip rect on success. | 142 * @param clip Output argument receiving the clip rect on success. |
| 143 * | 143 * |
| 144 * @return Returns <code>PP_TRUE</code> if the resource was valid and the | 144 * @return Returns <code>PP_TRUE</code> if the resource was valid and the |
| 145 * clip rect was filled in, <code>PP_FALSE</code> if not. | 145 * clip rect was filled in, <code>PP_FALSE</code> if not. |
| 146 */ | 146 */ |
| 147 PP_Bool (*GetClipRect)(PP_Resource resource, struct PP_Rect* clip); | 147 PP_Bool (*GetClipRect)(PP_Resource resource, struct PP_Rect* clip); |
| 148 }; | 148 }; |
| 149 |
| 150 typedef struct PPB_View_1_0 PPB_View; |
| 149 /** | 151 /** |
| 150 * @} | 152 * @} |
| 151 */ | 153 */ |
| 152 | 154 |
| 153 #endif /* PPAPI_C_PPB_VIEW_H_ */ | 155 #endif /* PPAPI_C_PPB_VIEW_H_ */ |
| 154 | 156 |
| OLD | NEW |