Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuObserver.java

Issue 79573003: Upstreaming AppMenu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Actually add tvdpi Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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 com.google.common.annotations.VisibleForTesting;
8
9 /**
10 * Allows monitoring of application menu actions.
11 */
12 public interface AppMenuObserver {
13 /**
14 * Informs when the App Menu visibility changes.
15 * @param newState Whether the menu is now visible.
16 * @param focusedPosition The position that is currently in focus.
17 */
18 public void onMenuVisibilityChanged(boolean newState, int focusedPosition);
19
20 /**
21 * Notifies that the keyboard focus has changed within the App Menu.
22 * @param focusedPosition The position that is currently in focus.
23 */
24 @VisibleForTesting
25 public void onKeyboardFocusChanged(int focusedPosition);
26
27 /**
28 * Notifies that the keyboard has activated an item in the App Menu.
29 * @param focusedPosition The position of the item that was activated.
30 */
31 @VisibleForTesting
32 public void onKeyboardActivatedItem(int focusedPosition);
33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698