OLD | NEW |
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; |
11 import org.chromium.chrome.browser.widget.BottomSheet; | 11 import org.chromium.chrome.browser.widget.bottomsheet.BottomSheet; |
12 | 12 |
13 /** | 13 /** |
14 * An interface for outside packages to interact with ToolbarLayout. Other than
for testing purposes | 14 * An interface for outside packages to interact with ToolbarLayout. Other than
for testing purposes |
15 * this interface should be used rather than {@link ToolbarLayout} and extending
classes. | 15 * this interface should be used rather than {@link ToolbarLayout} and extending
classes. |
16 */ | 16 */ |
17 public interface Toolbar { | 17 public interface Toolbar { |
18 | 18 |
19 /** | 19 /** |
20 * Calculates the {@link Rect} that represents the content area of the locat
ion bar. This | 20 * Calculates the {@link Rect} that represents the content area of the locat
ion bar. This |
21 * rect will be relative to the toolbar. | 21 * rect will be relative to the toolbar. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 * Remove the update badge on the app menu button. Initially the badge is in
visible so that it | 93 * 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 | 94 * 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 | 95 * 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 | 96 * 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. | 97 * badge is optionally animated if it was previously visible. |
98 * | 98 * |
99 * @param animate Whether the removal of the badge should be animated. | 99 * @param animate Whether the removal of the badge should be animated. |
100 */ | 100 */ |
101 void removeAppMenuUpdateBadge(boolean animate); | 101 void removeAppMenuUpdateBadge(boolean animate); |
102 } | 102 } |
OLD | NEW |