Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: ppapi/api/dev/ppb_widget_dev.idl

Issue 11417010: Add support for generating thunk source from IDL. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed an unnecessary change Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ppapi/generators/generator.py » ('j') | ppapi/generators/idl_c_header.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 [generate_thunk]
11
10 label Chrome { 12 label Chrome {
11 M14 = 0.3, 13 M14 = 0.3,
12 M23 = 0.4 14 M23 = 0.4
13 }; 15 };
14 16
15 /** 17 /**
16 * The interface for reusing browser widgets. 18 * The interface for reusing browser widgets.
17 */ 19 */
18 interface PPB_Widget_Dev { 20 interface PPB_Widget_Dev {
19 /** 21 /**
20 * Returns PP_TRUE if the given resource is a Widget. Returns PP_FALSE if the 22 * Returns PP_TRUE if the given resource is a Widget. Returns PP_FALSE if the
21 * resource is invalid or some type other than an Widget. 23 * resource is invalid or some type other than an Widget.
22 */ 24 */
23 PP_Bool IsWidget([in] PP_Resource resource); 25 PP_Bool IsWidget([in] PP_Resource resource);
24 26
25 /** 27 /**
26 * Paint the given rectangle of the widget into the given image. 28 * Paint the given rectangle of the widget into the given image.
27 * Returns PP_TRUE on success, PP_FALSE on failure. 29 * Returns PP_TRUE on success, PP_FALSE on failure.
28 */ 30 */
31 [report_errors=False]
29 PP_Bool Paint([in] PP_Resource widget, 32 PP_Bool Paint([in] PP_Resource widget,
30 [in] PP_Rect rect, 33 [in] PP_Rect rect,
31 [in] PP_Resource image); 34 [in] PP_Resource image);
32 35
33 /** 36 /**
34 * Pass in an event to a widget. It'll return PP_TRUE if the event was 37 * Pass in an event to a widget. It'll return PP_TRUE if the event was
35 * consumed. 38 * consumed.
36 */ 39 */
40 [report_errors=False]
37 PP_Bool HandleEvent([in] PP_Resource widget, [in] PP_Resource input_event); 41 PP_Bool HandleEvent([in] PP_Resource widget, [in] PP_Resource input_event);
38 42
39 /** 43 /**
40 * Get the location of the widget. 44 * Get the location of the widget.
41 */ 45 */
46 [report_errors=False]
42 PP_Bool GetLocation([in] PP_Resource widget, 47 PP_Bool GetLocation([in] PP_Resource widget,
43 [out] PP_Rect location); 48 [out] PP_Rect location);
44 49
45 /** 50 /**
46 * Set the location of the widget. 51 * Set the location of the widget.
47 */ 52 */
53 [report_errors=False]
48 void SetLocation([in] PP_Resource widget, 54 void SetLocation([in] PP_Resource widget,
49 [in] PP_Rect location); 55 [in] PP_Rect location);
50 56
51 /** 57 /**
52 * Set scale used during paint operations. 58 * Set scale used during paint operations.
53 */ 59 */
54 [version=0.4] 60 [version=0.4, report_errors=False]
55 void SetScale([in] PP_Resource widget, 61 void SetScale([in] PP_Resource widget,
56 [in] float_t scale); 62 [in] float_t scale);
57 }; 63 };
OLDNEW
« no previous file with comments | « no previous file | ppapi/generators/generator.py » ('j') | ppapi/generators/idl_c_header.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698