summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebCoreJni.h
Commit message (Collapse)AuthorAgeFilesLines
* Copy constructor for AutoJObject must increase the ref count on the ↵Steve Block2011-02-231-0/+4
| | | | | | | | | underlying object This is needed to balance the derefs in any temporary instance's d'tor. See https://chromereview.prom.corp.google.com/2013001 Change-Id: I8329f475ecbd1bc8669d0e8d368f1a385d891fb3
* Add a stdStringToJstring() helper functionSteve Block2011-01-061-1/+5
| | | | Change-Id: I323c753d7ce22e0e23928a126cfb99c781a074f1
* Fix naming of wtfStringToJstring()Steve Block2011-01-061-1/+1
| | | | Change-Id: I3e1a4fb110fc9d312cc608c86fcaf7cb27431685
* WtfStringToJString should be able to return a valid string on empty inputBen Murdoch2010-12-011-2/+4
| | | | | | | | | | It is sometimes desirable to return a valid but 0-length string created from a 0-length WTF string but currently the WtfStringToJString function will always return a null jstring on an empty input. Add a parameter to specify that it should return an empty jstring on empty WTF string and default it to false. Change-Id: Ia449f1f9ae9b37c3da7d0272424e4fd4878ceb31
* Fix WebCoreStringToJString() to not delete the local reference to the new ↵Steve Block2010-11-011-3/+5
| | | | | | | | | | | | | jstring The JNI spec allows for local objects to be GC'ed before the JNI frame returns, so this is dangerous. Also rename the method to WtfStringToJstring() to match the existing jstringToWtfString() and update call sites to JNIEnv::NewString() to make use of it. Change-Id: I84aa25ba1aca2aee346bf6e3d83a58afc3a95219
* Move jstringToStdString into WebCoreJni.hIain Merrick2010-10-211-0/+2
| | | | | | | Also tweaked the implementation slightly to match jstringToString16, which is more robust. Change-Id: I614576615a6f429ea1632c395d5bc4e068c32cfb
* Rename to_string() to jstringToWtfString() for greater claritySteve Block2010-10-151-1/+1
| | | | Change-Id: I8516c4f39a38e236d0bff38a91fe8657cfcf8ad4
* Sync autofill profile data from java.Ben Murdoch2010-10-131-0/+5
| | | | | | | | | | | | | | Add the JNI bindings so that we can get the AutoFill profile data that the user entered in the Browser UI and inject that data into the WebAutoFill object. This eliminates the John Smith profile! Note that additional profile data such as addresses and phone numbers will be added very shortly. Requires a corresponding change to frameworks/base, see https://android-git.corp.google.com/g/#change,72204 Change-Id: Ie32100123ef0d868e1f7efb5604c6fac48725967
* Merge WebKit at r65072: String class has moved to the WTF namespace.Ben Murdoch2010-08-131-2/+2
| | | | | | See http://trac.webkit.org/changeset/65021 Change-Id: I779a8ec0c3e1e0aed8f8d1894cfc1e5ca33ee549
* am 7063c3ef: Merge change I67ad4b89 into eclair-mr2Steve Block2009-11-131-1/+1
|\ | | | | | | | | | | | | Merge commit '7063c3efe30d0ec965ac48439917030f62f50489' * commit '7063c3efe30d0ec965ac48439917030f62f50489': Fixes license headers for all files in WebKit/android, other than those in stl/.
| * Fixes license headers for all files in WebKit/android, other than those in stl/.Steve Block2009-11-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | These files have not yet been upstreamed to webkit.org. WebKit requires either a BSD-style or LGPL 2.1 license for all code. We use a BSD-style 2-clause license for Android-specific files that will be upstreamed to webkit.org. This change adds licenses where absent or simply fixes the names of copyright holders in the license text to 'THE COPYRIGHT OWNER' and cleans up formatting. Files in stl/ currently use licenses other than BSD-style and will require more careful treatment. Change-Id: I67ad4b8932e432d3eaaeecdfeb0d09418496228d
* | Use native weak references instead of our wrapper.Patrick Scott2009-10-271-5/+1
|/ | | | | | | | | | | | | | Revert "Add check null of getRealObject(). When a WebView is" This reverts commit b47ea2b1184167767692f88c1e5f3e4e89db04b2. Revert "Update the comment for checking null in needtouchevents." This reverts commit 1e67e45d20ead40b0407618abbc5e20840dc3c80. Revert "Check null for WebViewCore's nativeClass before calling" This reverts commit 992afbebfb735ec2dd52b4166c22ab55827d88ed. Fix a few places where DeleteLocalRef and DeleteGlobalRef were used incorrectly. Fix a compilation warning as well.
* Automated import from //branches/master/...@142404,142404Patrick Scott2009-03-241-0/+7
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+74
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-74/+0
|
* auto import from //branches/cupcake/...@127101The Android Open Source Project2009-01-201-6/+0
|
* auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-151-10/+19
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+71