Chromium Code Reviews| Index: ppapi/c/dev/ppb_scrollbar_group_dev.h |
| =================================================================== |
| --- ppapi/c/dev/ppb_scrollbar_group_dev.h (revision 0) |
| +++ ppapi/c/dev/ppb_scrollbar_group_dev.h (revision 0) |
| @@ -0,0 +1,32 @@ |
| +/* Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| + * Use of this source code is governed by a BSD-style license that can be |
| + * found in the LICENSE file. |
| + */ |
| +#ifndef PPAPI_C_DEV_PPB_SCROLLBAR_GROUP_DEV_H_ |
| +#define PPAPI_C_DEV_PPB_SCROLLBAR_GROUP_DEV_H_ |
| + |
| +#include "ppapi/c/pp_instance.h" |
| +#include "ppapi/c/pp_resource.h" |
| + |
| +#define PPB_SCROLLBAR_GROUP_DEV_INTERFACE_0_1 "PPP_Scrollbar_Group(Dev);0.1" |
| +#define PPB_SCROLLBAR_GROUP_DEV_INTERFACE PPB_SCROLLBAR_GROUP_DEV_INTERFACE_0_1 |
| + |
| +// The interface for a scrollbar group. Horizontal and vertical scrollbars for |
| +// the same region need to be associated together with one group. This is |
| +// necessary for some platforms in which changes to one scrollbar lead to |
| +// animation changes for the other. |
| +struct PPB_ScrollbarGroup_Dev { |
| + // Create a new scrollbar group. Returns 0 if the instance is invalid. |
| + PP_Resource (*Create)(PP_Instance instance); |
| + |
| + // Used on platforms that animate the scrollbars when resizing or when the |
|
darin (slow to review)
2011/08/05 15:24:00
when we discussed what to call this interface, i h
jam
2011/08/05 17:07:01
I agree. It seems cumbersome for the embedder to c
jam
2011/08/06 02:15:58
Rereading what you wrote, I realize I might have m
jam
2011/08/06 15:57:47
actually, thinking more about this, we probably do
jam
2011/08/06 17:29:47
ok, patch uploaded. what do you think of this appr
|
| + // mouse is moving in the content area. Harmless to call on other platforms. |
| + void (*MouseEnteredContentArea)(PP_Resource scrollbar_group); |
| + void (*MouseMovedInContentArea)(PP_Resource scrollbar_group); |
| + void (*MouseExitedContentArea)(PP_Resource scrollbar_group); |
| + void (*WillStartLiveResize)(PP_Resource scrollbar_group); |
| + void (*ContentResized)(PP_Resource scrollbar_group); |
| + void (*WillEndLiveResize)(PP_Resource scrollbar_group); |
| +}; |
| + |
| +#endif /* PPAPI_C_DEV_PPB_SCROLLBAR_GROUP_DEV_H_ */ |
| Property changes on: ppapi\c\dev\ppb_scrollbar_group_dev.h |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |