130837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell/* 26e6abe6eb358db4c3932752249c8ac61dd3dab21Jeff Brown * Copyright (C) 2013 The Android Open Source Project 330837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * 430837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * Licensed under the Apache License, Version 2.0 (the "License"); 530837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * you may not use this file except in compliance with the License. 630837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * You may obtain a copy of the License at 730837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * 830837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * http://www.apache.org/licenses/LICENSE-2.0 930837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * 1030837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * Unless required by applicable law or agreed to in writing, software 1130837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * distributed under the License is distributed on an "AS IS" BASIS, 1230837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1330837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * See the License for the specific language governing permissions and 1430837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * limitations under the License. 1530837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell */ 1630837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell 1730837f1095c803f332f4a1c3f0917c8afdd50156Adam Powellpackage android.support.v4.internal.view; 1830837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell 1930837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell/** 2030837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * Interface for managing the items in a menu. 2130837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * 2279c1dba5b509ae3e7c867827949d8fdfd37e8f52Chris Banes * This version extends the one available in the framework to ensures that any necessary 2379c1dba5b509ae3e7c867827949d8fdfd37e8f52Chris Banes * elements added in later versions of the framework, are available for all platforms. 2430837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * 2579c1dba5b509ae3e7c867827949d8fdfd37e8f52Chris Banes * @see android.view.Menu 2679c1dba5b509ae3e7c867827949d8fdfd37e8f52Chris Banes * @hide 2730837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell */ 2830837f1095c803f332f4a1c3f0917c8afdd50156Adam Powellpublic interface SupportMenu extends android.view.Menu { 2930837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell 3030837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell /** 3130837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * This is the part of an order integer that the user can provide. 3230837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * 3330837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * @hide 3430837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell */ 3530837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell static final int USER_MASK = 0x0000ffff; 3630837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell /** 3730837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * Bit shift of the user portion of the order integer. 3830837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * 3930837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * @hide 4030837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell */ 4130837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell static final int USER_SHIFT = 0; 4230837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell 4330837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell /** 4430837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * This is the part of an order integer that supplies the category of the item. 4530837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * 4630837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * @hide 4730837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell */ 4830837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell static final int CATEGORY_MASK = 0xffff0000; 4930837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell /** 5030837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * Bit shift of the category portion of the order integer. 5130837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * 5230837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell * @hide 5330837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell */ 5430837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell static final int CATEGORY_SHIFT = 16; 5530837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell} 5630837f1095c803f332f4a1c3f0917c8afdd50156Adam Powell 57