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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/toolbar/Toolbar.java

Issue 2779543005: Add support for highlighting menu items (Closed)
Patch Set: Moved PulseDrawable Created 3 years, 8 months 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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.toolbar; 5 package org.chromium.chrome.browser.toolbar;
6 6
7 import android.graphics.Rect; 7 import android.graphics.Rect;
8 import android.view.View; 8 import android.view.View;
9 9
10 import org.chromium.chrome.browser.compositor.layouts.LayoutUpdateHost; 10 import org.chromium.chrome.browser.compositor.layouts.LayoutUpdateHost;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 boolean setForceTextureCapture(boolean forceTextureCapture); 72 boolean setForceTextureCapture(boolean forceTextureCapture);
73 73
74 /** 74 /**
75 * Sets the {@link LayoutUpdateHost} for use in requesting an update when th e toolbar texture 75 * Sets the {@link LayoutUpdateHost} for use in requesting an update when th e toolbar texture
76 * needs to be recaptured. 76 * needs to be recaptured.
77 * @param layoutUpdateHost The {@link LayoutUpdateHost} for requesting updat es. 77 * @param layoutUpdateHost The {@link LayoutUpdateHost} for requesting updat es.
78 */ 78 */
79 void setLayoutUpdateHost(LayoutUpdateHost layoutUpdateHost); 79 void setLayoutUpdateHost(LayoutUpdateHost layoutUpdateHost);
80 80
81 /** 81 /**
82 * Sets whether or not the menu button should be highlighted.
83 * @param highlight Whether or not the menu button should be highlighted.
84 */
85 void setMenuButtonHighlight(boolean highlight);
86
87 /**
82 * Show the update badge on the app menu button. Will have no effect if ther e is no app menu 88 * Show the update badge on the app menu button. Will have no effect if ther e is no app menu
83 * button for the current Activity. 89 * button for the current Activity.
84 */ 90 */
85 void showAppMenuUpdateBadge(); 91 void showAppMenuUpdateBadge();
86 92
87 /** 93 /**
88 * Whether the update badge that is displayed on top of the app menu button is showing. 94 * Whether the update badge that is displayed on top of the app menu button is showing.
89 */ 95 */
90 boolean isShowingAppMenuUpdateBadge(); 96 boolean isShowingAppMenuUpdateBadge();
91 97
92 /** 98 /**
93 * Remove the update badge on the app menu button. Initially the badge is in visible so that it 99 * Remove the update badge on the app menu button. Initially the badge is in visible so that it
94 * gets measured and the tab switcher animation looks correct when the badge is first shown. If 100 * gets measured and the tab switcher animation looks correct when the badge is first shown. If
95 * the badge will never be shown or should no longer be shown, this method s hould be called to 101 * the badge will never be shown or should no longer be shown, this method s hould be called to
96 * change the visibility to gone to avoid unnecessary layout work. The disap pearance of the 102 * change the visibility to gone to avoid unnecessary layout work. The disap pearance of the
97 * badge is optionally animated if it was previously visible. 103 * badge is optionally animated if it was previously visible.
98 * 104 *
99 * @param animate Whether the removal of the badge should be animated. 105 * @param animate Whether the removal of the badge should be animated.
100 */ 106 */
101 void removeAppMenuUpdateBadge(boolean animate); 107 void removeAppMenuUpdateBadge(boolean animate);
102 } 108 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698