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

Side by Side Diff: android_webview/java/src/org/chromium/android_webview/AwFormDatabase.java

Issue 14503010: Implement WebViewDatabase's hasFormData API for chromium based webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typos Created 7 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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.android_webview; 5 package org.chromium.android_webview;
6 6
7 import org.chromium.base.JNINamespace; 7 import org.chromium.base.JNINamespace;
8 8
9 /** 9 /**
10 * Exposes a subset of Chromium form database to Webview database for managing a utocomplete 10 * Exposes a subset of Chromium form database to Webview database for managing a utocomplete
11 * functionality. 11 * functionality.
12 */ 12 */
13 @JNINamespace("android_webview") 13 @JNINamespace("android_webview")
14 public class AwFormDatabase { 14 public class AwFormDatabase {
15 15
16 public static boolean hasFormData() {
benm (inactive) 2013/04/29 18:00:03 Rather than having these as statics, can they call
sgurun-gerrit only 2013/04/29 19:32:39 We could. I think AwBrowserContext is the proper w
17 return nativeHasFormData();
18 }
19
16 public static void clearFormData() { 20 public static void clearFormData() {
17 nativeClearFormData(); 21 nativeClearFormData();
18 } 22 }
19 23
20 //-------------------------------------------------------------------------- ------------------ 24 //-------------------------------------------------------------------------- ------------------
21 // Native methods 25 // Native methods
22 //-------------------------------------------------------------------------- ------------------ 26 //-------------------------------------------------------------------------- ------------------
27 private static native boolean nativeHasFormData();
28
23 private static native void nativeClearFormData(); 29 private static native void nativeClearFormData();
24 } 30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698