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

Side by Side Diff: ppapi/c/dev/ppb_scrollbar_dev.h

Issue 5340003: Make a new test to enforce the sizes of all structs and enums in the C API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/c/dev/ppb_opengles_dev.h ('k') | ppapi/c/dev/ppb_url_util_dev.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef PPAPI_C_DEV_PPB_SCROLLBAR_DEV_H_ 5 #ifndef PPAPI_C_DEV_PPB_SCROLLBAR_DEV_H_
6 #define PPAPI_C_DEV_PPB_SCROLLBAR_DEV_H_ 6 #define PPAPI_C_DEV_PPB_SCROLLBAR_DEV_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_resource.h" 10 #include "ppapi/c/pp_resource.h"
11 #include "ppapi/c/pp_stdint.h" 11 #include "ppapi/c/pp_stdint.h"
12 12
13 struct PP_Rect; 13 struct PP_Rect;
14 14
15 typedef enum { 15 typedef enum {
16 PP_SCROLLBY_PIXEL = 0, 16 PP_SCROLLBY_PIXEL = 0,
17 PP_SCROLLBY_LINE = 1, 17 PP_SCROLLBY_LINE = 1,
18 PP_SCROLLBY_PAGE = 2, 18 PP_SCROLLBY_PAGE = 2,
19 PP_SCROLLBY_DOCUMENT = 3 19 PP_SCROLLBY_DOCUMENT = 3
20 } PP_ScrollBy_Dev; 20 } PP_ScrollBy_Dev;
21 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_ScrollBy_Dev, 4);
21 22
22 #define PPB_SCROLLBAR_DEV_INTERFACE "PPB_Scrollbar(Dev);0.2" 23 #define PPB_SCROLLBAR_DEV_INTERFACE "PPB_Scrollbar(Dev);0.2"
23 24
24 // The interface for a scrollbar. A scrollbar is a widget, so the functions 25 // The interface for a scrollbar. A scrollbar is a widget, so the functions
25 // in PPB_Widget can also be used with scrollbar objects. 26 // in PPB_Widget can also be used with scrollbar objects.
26 struct PPB_Scrollbar_Dev { 27 struct PPB_Scrollbar_Dev {
27 // Create a new scrollbar. Returns 0 if the instance is invalid. 28 // Create a new scrollbar. Returns 0 if the instance is invalid.
28 PP_Resource (*Create)(PP_Instance instance, 29 PP_Resource (*Create)(PP_Instance instance,
29 PP_Bool vertical); 30 PP_Bool vertical);
30 31
(...skipping 23 matching lines...) Expand all
54 55
55 // Scroll by "multiplier" pixels/lines/pages units. Positive values are 56 // Scroll by "multiplier" pixels/lines/pages units. Positive values are
56 // forward and negative are backward. If "unit" is document then any positive 57 // forward and negative are backward. If "unit" is document then any positive
57 // value goes to the end while any negative value goes to the beginning. 58 // value goes to the end while any negative value goes to the beginning.
58 void (*ScrollBy)(PP_Resource scrollbar, 59 void (*ScrollBy)(PP_Resource scrollbar,
59 PP_ScrollBy_Dev unit, 60 PP_ScrollBy_Dev unit,
60 int32_t multiplier); 61 int32_t multiplier);
61 }; 62 };
62 63
63 #endif // PPAPI_C_DEV_PPB_SCROLLBAR_DEV_H_ 64 #endif // PPAPI_C_DEV_PPB_SCROLLBAR_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_opengles_dev.h ('k') | ppapi/c/dev/ppb_url_util_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698