1/* 2 * Copyright (C) 2024 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17syntax = "proto2"; 18 19package android.pdf; 20 21option java_outer_classname = "PdfEnums"; 22option java_multiple_files = true; 23 24// The response of a PdfViewer API calls. 25enum ApiResponseStatus { 26 RESPONSE_UNKNOWN = 0; 27 RESPONSE_SUCCESS = 1; 28 RESPONSE_FAILURE = 2; 29} 30 31// The type of the PdfViewer API called. 32enum ApiType { 33 API_TYPE_UNKNOWN = 0; 34 // PDF Text selected 35 API_TYPE_SELECT_CONTENT = 1; 36} 37 38enum PdfLinearizedType { 39 UNKNOWN_TYPE = 0; 40 LINEARIZED_TYPE = 1; 41 NON_LINEARIZED_TYPE = 2; 42} 43 44// The result of a pdf load called on a document. 45enum PdfLoadResult { 46 RESULT_UNKNOWN = 0; 47 // PDF loaded successfully. 48 RESULT_LOADED = 1; 49 // PDF loading failed. 50 RESULT_ERROR = 2; 51 // Loaded with wrong password. 52 RESULT_WRONG_PASSWORD = 3; 53} 54