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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/profiles/Profile.java

Issue 11473027: [Android] Should not update IME status when gesture needs to be disambiguated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add prerendering utilities to profile_android Created 7 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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.profiles; 5 package org.chromium.chrome.browser.profiles;
6 6
7 import org.chromium.base.CalledByNative; 7 import org.chromium.base.CalledByNative;
8 8
9 /** 9 /**
10 * Wrapper that allows passing a Profile reference around in the Java layer. 10 * Wrapper that allows passing a Profile reference around in the Java layer.
(...skipping 13 matching lines...) Expand all
24 24
25 @CalledByNative 25 @CalledByNative
26 private void destroy() { 26 private void destroy() {
27 mNativeProfileAndroid = 0; 27 mNativeProfileAndroid = 0;
28 } 28 }
29 29
30 @CalledByNative 30 @CalledByNative
31 private int getNativePointer() { 31 private int getNativePointer() {
32 return mNativeProfileAndroid; 32 return mNativeProfileAndroid;
33 } 33 }
34
35 /**
36 * Check whether a given url has finished prerendering using the prerender
37 * manager associated with this profile
38 * @param url The url to check.
39 * @return Whether the given url has finished prerendering.
40 */
41 public boolean hasPrerenderedUrl(String url) {
42 return nativeHasPrerenderedUrl(mNativeProfileAndroid, url);
43 }
44
45 /**
46 * @return The java profile with the default native profile.
47 */
48 public static Profile getDefaultProfile() {
49 return new Profile(nativeGetDefaultProfile());
50 }
51
52 private static native int nativeGetDefaultProfile();
53 private static native boolean nativeHasPrerenderedUrl(int nativeProfileAndro id, String url);
34 } 54 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698