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

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

Issue 5837001: Resource width 64->32 change. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/ppapi
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
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.1" 11 #define PPB_ZOOM_DEV_INTERFACE "PPB_Zoom(Dev);0.2"
12 12
13 struct PPB_Zoom_Dev { 13 struct PPB_Zoom_Dev {
14 // Informs the browser about the new zoom factor for the plugin (see 14 // 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 15 // 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 16 // 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 17 // only needed in case a plugin can update its own zoom, say because of its
18 // own UI. 18 // own UI.
19 void (*ZoomChanged)(PP_Instance instance, 19 void (*ZoomChanged)(PP_Instance instance,
20 double factor); 20 double factor);
21 21
22 // Sets the mininum and maximium zoom factors. 22 // Sets the mininum and maximium zoom factors.
23 void (*ZoomLimitsChanged)(PP_Instance instance, 23 void (*ZoomLimitsChanged)(PP_Instance instance,
24 double minimum_factor, 24 double minimum_factor,
25 double maximium_factor); 25 double maximium_factor);
26 }; 26 };
27 27
28 #endif // PPAPI_C_DEV_PPB_ZOOM_DEV_H_ 28 #endif // PPAPI_C_DEV_PPB_ZOOM_DEV_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698