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.Bitmap; | 7 import android.graphics.Bitmap; |
8 import android.graphics.Rect; | 8 import android.graphics.Rect; |
9 import android.view.View; | 9 import android.view.View; |
10 import android.view.View.OnClickListener; | 10 import android.view.View.OnClickListener; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 */ | 55 */ |
56 void setOnNewTabClickHandler(OnClickListener listener); | 56 void setOnNewTabClickHandler(OnClickListener listener); |
57 | 57 |
58 /** | 58 /** |
59 * Sets the OnClickListener that will be notified when the bookmark button i
s pressed. | 59 * Sets the OnClickListener that will be notified when the bookmark button i
s pressed. |
60 * @param listener The callback that will be notified when the bookmark butt
on is pressed. | 60 * @param listener The callback that will be notified when the bookmark butt
on is pressed. |
61 */ | 61 */ |
62 void setBookmarkClickHandler(OnClickListener listener); | 62 void setBookmarkClickHandler(OnClickListener listener); |
63 | 63 |
64 /** | 64 /** |
65 * Sets the OnClickListener to notify when the back button is pressed in a c
ustom tab. | |
66 * @param listener The callback that will be notified when the back button i
s pressed. | |
67 */ | |
68 void setCustomTabReturnClickHandler(OnClickListener listener); | |
69 | |
70 /** | |
71 * Calculates the {@link Rect} that represents the content area of the locat
ion bar. This | 65 * Calculates the {@link Rect} that represents the content area of the locat
ion bar. This |
72 * rect will be relative to the toolbar. | 66 * rect will be relative to the toolbar. |
73 * @param outRect The Rect that represents the content area of the location
bar. | 67 * @param outRect The Rect that represents the content area of the location
bar. |
74 */ | 68 */ |
75 void getLocationBarContentRect(Rect outRect); | 69 void getLocationBarContentRect(Rect outRect); |
76 | 70 |
77 /** | 71 /** |
78 * @return Whether any swipe gestures should be ignored for the current Tool
bar state. | 72 * @return Whether any swipe gestures should be ignored for the current Tool
bar state. |
79 */ | 73 */ |
80 boolean shouldIgnoreSwipeGesture(); | 74 boolean shouldIgnoreSwipeGesture(); |
(...skipping 27 matching lines...) Expand all Loading... |
108 * or animations). | 102 * or animations). |
109 * @param textureMode Whether or not to be in texture capture mode. | 103 * @param textureMode Whether or not to be in texture capture mode. |
110 */ | 104 */ |
111 void setTextureCaptureMode(boolean textureMode); | 105 void setTextureCaptureMode(boolean textureMode); |
112 | 106 |
113 /** | 107 /** |
114 * @return Whether a dirty check for invalidation makes sense at this time. | 108 * @return Whether a dirty check for invalidation makes sense at this time. |
115 */ | 109 */ |
116 boolean isReadyForTextureCapture(); | 110 boolean isReadyForTextureCapture(); |
117 } | 111 } |
OLD | NEW |