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.customtabs; | 5 package org.chromium.chrome.browser.customtabs; |
6 | 6 |
7 import android.content.Intent; | 7 import android.content.Intent; |
8 import android.graphics.Bitmap; | 8 import android.graphics.Bitmap; |
9 import android.os.IBinder; | 9 import android.os.IBinder; |
10 import android.os.SystemClock; | |
Yusuf
2016/02/24 00:42:10
not needed
megjablon
2016/02/24 02:42:58
Done.
| |
10 | 11 |
11 import org.chromium.content_public.browser.LoadUrlParams; | 12 import org.chromium.content_public.browser.LoadUrlParams; |
12 | 13 |
13 /** | 14 /** |
14 * Interface to handle custom tab calls whenever the session id matched. | 15 * Interface to handle custom tab calls whenever the session id matched. |
15 * TODO(yusufo): Add a way to handle mayLaunchUrl as well. | 16 * TODO(yusufo): Add a way to handle mayLaunchUrl as well. |
16 */ | 17 */ |
17 public interface CustomTabContentHandler { | 18 public interface CustomTabContentHandler { |
18 /** | 19 /** |
19 * Loads a new url inside the {@link CustomTabContentHandler}, and tracks | 20 * Loads a new url inside the {@link CustomTabContentHandler}, and tracks |
(...skipping 16 matching lines...) Expand all Loading... | |
36 * @return Whether the intent should be ignored. | 37 * @return Whether the intent should be ignored. |
37 */ | 38 */ |
38 boolean shouldIgnoreIntent(Intent intent); | 39 boolean shouldIgnoreIntent(Intent intent); |
39 | 40 |
40 /** | 41 /** |
41 * Finds the action button with the given id, and updates it with the new co ntent. | 42 * Finds the action button with the given id, and updates it with the new co ntent. |
42 * @return Whether the action button has been updated. | 43 * @return Whether the action button has been updated. |
43 */ | 44 */ |
44 boolean updateCustomButton(int id, Bitmap bitmap, String description); | 45 boolean updateCustomButton(int id, Bitmap bitmap, String description); |
45 } | 46 } |
OLD | NEW |