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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabContentHandler.java

Issue 1688603004: AGSA-initiated weblite intents should be rewritten if Chrome can use weblite (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yusufo comments Created 4 years, 10 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.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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698