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

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

Issue 6893022: Add version-specific defines for each C interface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months 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
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_ZOOM_DEV_H_ 5 #ifndef PPAPI_C_DEV_PPB_ZOOM_DEV_H_
6 #define PPAPI_C_DEV_PPB_ZOOM_DEV_H_ 6 #define PPAPI_C_DEV_PPB_ZOOM_DEV_H_
7 7
8 #include "ppapi/c/pp_instance.h" 8 #include "ppapi/c/pp_instance.h"
9 9
10 // Zoom interface should only apply to those full-page "plugin-document". 10 // Zoom interface should only apply to those full-page "plugin-document".
11 #define PPB_ZOOM_DEV_INTERFACE "PPB_Zoom(Dev);0.2" 11 #define PPB_ZOOM_DEV_INTERFACE_2_0 "PPB_Zoom(Dev);0.2"
polina 2011/04/27 03:40:26 _0_2
12 #define PPB_ZOOM_DEV_INTERFACE PPB_ZOOM_DEV_INTERFACE_2_0
polina 2011/04/27 03:40:26 0_2
12 13
13 struct PPB_Zoom_Dev { 14 struct PPB_Zoom_Dev {
14 // Informs the browser about the new zoom factor for the plugin (see 15 // Informs the browser about the new zoom factor for the plugin (see
15 // ppp_zoom_dev.h for a description of zoom factor). The plugin should only 16 // ppp_zoom_dev.h for a description of zoom factor). The plugin should only
16 // call this function if the zoom change was triggered by the browser, it's 17 // call this function if the zoom change was triggered by the browser, it's
17 // only needed in case a plugin can update its own zoom, say because of its 18 // only needed in case a plugin can update its own zoom, say because of its
18 // own UI. 19 // own UI.
19 void (*ZoomChanged)(PP_Instance instance, 20 void (*ZoomChanged)(PP_Instance instance,
20 double factor); 21 double factor);
21 22
22 // Sets the mininum and maximium zoom factors. 23 // Sets the mininum and maximium zoom factors.
23 void (*ZoomLimitsChanged)(PP_Instance instance, 24 void (*ZoomLimitsChanged)(PP_Instance instance,
24 double minimum_factor, 25 double minimum_factor,
25 double maximium_factor); 26 double maximium_factor);
26 }; 27 };
27 28
28 #endif /* PPAPI_C_DEV_PPB_ZOOM_DEV_H_ */ 29 #endif /* PPAPI_C_DEV_PPB_ZOOM_DEV_H_ */
29 30
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698