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.
5 package org.chromium.chrome.browser.appmenu;
7 import android.view.Menu;
10 * Interface for the App Handler to query the desired state of the App Menu.
12 public interface AppMenuPropertiesDelegate {
15 * @return Whether the App Menu should be shown.
17 boolean shouldShowAppMenu();
20 * Allows the delegate to show and hide items before the App Menu is shown.
21 * @param mMenu Menu that will be used as the source for the App Menu pop up.
23 void prepareMenu(Menu mMenu);
26 * @return The theme resource to use for displaying the App Menu.
28 int getMenuThemeResourceId();