• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.chrome.browser.appmenu;
6 
7 import android.view.Menu;
8 
9 /**
10  * Interface for the App Handler to query the desired state of the App Menu.
11  */
12 public interface AppMenuPropertiesDelegate {
13 
14     /**
15      * @return Whether the App Menu should be shown.
16      */
shouldShowAppMenu()17     boolean shouldShowAppMenu();
18 
19     /**
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.
22      */
prepareMenu(Menu mMenu)23     void prepareMenu(Menu mMenu);
24 
25     /**
26      * @return The theme resource to use for displaying the App Menu.
27      */
getMenuThemeResourceId()28     int getMenuThemeResourceId();
29 }
30