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 3 * found in the LICENSE file. 4 */ 5 6 /** 7 * Implementation of the Zoom interface. 8 */ 9 10 [generate_thunk] 11 12 label Chrome { 13 M14 = 0.2 14 }; 15 16 /** 17 * Zoom interface should only apply to those full-page "plugin-document". 18 */ 19 interface PPB_Zoom_Dev { 20 /** 21 * Informs the browser about the new zoom factor for the plugin (see 22 * ppp_zoom_dev.h for a description of zoom factor). The plugin should only 23 * call this function if the zoom change was triggered by the browser, it's 24 * only needed in case a plugin can update its own zoom, say because of its 25 * own UI. 26 */ 27 void ZoomChanged([in] PP_Instance instance, 28 [in] double_t factor); 29 /** 30 * Sets the minimum and maximum zoom factors. 31 */ 32 void ZoomLimitsChanged([in] PP_Instance instance, 33 [in] double_t minimum_factor, 34 [in] double_t maximum_factor); 35 }; 36 37