1 // Copyright 2013 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 package org.chromium.printing; 6 7 /** 8 * Defines an interface for PrintingContext. 9 */ 10 public interface PrintingContextInterface { 11 /** 12 * Updates file descriptor to class instance mapping. 13 * @param fileDescriptor The file descriptor to which the current PrintingContext will be 14 * mapped. 15 * @param delete If true, delete the entry (if it exists). If false, add it to the map. 16 */ updatePrintingContextMap(int fileDescriptor, boolean delete)17 void updatePrintingContextMap(int fileDescriptor, boolean delete); 18 19 /** 20 * Notifies the native side if the printing settings are successfully prepared. 21 * @param success True if the settings are successfully prepared to be used by the native side. 22 */ askUserForSettingsReply(boolean success)23 void askUserForSettingsReply(boolean success); 24 } 25