1// Copyright 2019 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 5syntax = "proto2"; 6 7package components.feed.core.proto.ui.piet; 8 9option optimize_for = LITE_RUNTIME; 10 11option java_package = "org.chromium.components.feed.core.proto.ui.piet"; 12option java_outer_classname = "PietAndroidSupport"; 13option cc_enable_arenas = true; 14 15// Define extensions and other supporting messages used by the Android 16// implementation of the Piet protocol. 17 18// This allows the Host to control the granularity of slices by returning 19// only slices specified instead of generating all the slices within the 20// full Card message. 21// TODO: Is this still relevant? 22message ShardingControl { 23 // The first slice to render, if this is undefined we will render the 24 // full card. 25 optional int32 start_slice = 1; 26 27 // The last slice to render. 28 optional int32 end_slice = 2; 29 30 // If we are rendering a list, this is the first index in the list. 31 optional int32 list_start = 3; 32 33 // if we are rendering a list, this is the last index in the list. 34 optional int32 list_end = 4; 35} 36