| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 * Implementation of the widgets interface. | 7 * Implementation of the widgets interface. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 label Chrome { | 10 label Chrome { |
| 11 M14 = 0.3 | 11 M14 = 0.3, |
| 12 M23 = 0.4 |
| 12 }; | 13 }; |
| 13 | 14 |
| 14 /** | 15 /** |
| 15 * The interface for reusing browser widgets. | 16 * The interface for reusing browser widgets. |
| 16 */ | 17 */ |
| 17 interface PPB_Widget_Dev { | 18 interface PPB_Widget_Dev { |
| 18 /** | 19 /** |
| 19 * Returns PP_TRUE if the given resource is a Widget. Returns PP_FALSE if the | 20 * Returns PP_TRUE if the given resource is a Widget. Returns PP_FALSE if the |
| 20 * resource is invalid or some type other than an Widget. | 21 * resource is invalid or some type other than an Widget. |
| 21 */ | 22 */ |
| (...skipping 17 matching lines...) Expand all Loading... |
| 39 * Get the location of the widget. | 40 * Get the location of the widget. |
| 40 */ | 41 */ |
| 41 PP_Bool GetLocation([in] PP_Resource widget, | 42 PP_Bool GetLocation([in] PP_Resource widget, |
| 42 [out] PP_Rect location); | 43 [out] PP_Rect location); |
| 43 | 44 |
| 44 /** | 45 /** |
| 45 * Set the location of the widget. | 46 * Set the location of the widget. |
| 46 */ | 47 */ |
| 47 void SetLocation([in] PP_Resource widget, | 48 void SetLocation([in] PP_Resource widget, |
| 48 [in] PP_Rect location); | 49 [in] PP_Rect location); |
| 50 |
| 51 /** |
| 52 * Set scale used during paint operations. |
| 53 */ |
| 54 [version=0.4] |
| 55 void SetScale([in] PP_Resource widget, |
| 56 [in] float_t scale); |
| 49 }; | 57 }; |
| OLD | NEW |