OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.chrome.browser.appmenu; | 5 package org.chromium.chrome.browser.appmenu; |
6 | 6 |
7 /** | 7 /** |
8 * Allows monitoring of application menu actions. | 8 * Allows monitoring of application menu actions. |
9 */ | 9 */ |
10 public interface AppMenuObserver { | 10 public interface AppMenuObserver { |
11 /** | 11 /** |
12 * Informs when the App Menu visibility changes. | 12 * Informs when the App Menu visibility changes. |
13 * @param isVisible Whether the menu is now visible. | 13 * @param isVisible Whether the menu is now visible. |
14 */ | 14 */ |
15 public void onMenuVisibilityChanged(boolean isVisible); | 15 public void onMenuVisibilityChanged(boolean isVisible); |
| 16 |
| 17 /** |
| 18 * Note that this will be called with {@code false} once the menu is opened. |
| 19 * @param highlighting Whether or not the menu is highlighting (or planning
to highlight) an |
| 20 * item. |
| 21 */ |
| 22 public void onMenuHighlightChanged(boolean highlighting); |
16 } | 23 } |
OLD | NEW |