Commit Graph

252 Commits

Author SHA1 Message Date
Android (Google) Code Review
f2c9b2c0b4 Merge change 20706
* changes:
  Improve Browser performance by 1-2%. To address domain sanity bug, http://b/issue?id=1022797, we decoded/encoded the url for each request. As the url can be long, getBytes() and String.init are taking 1.5% in nytimes.com and 2.4% in cnn.com. By doing a simple URL encoding test, we can shave 1-2 secs thread time during loading.
2009-08-12 09:27:01 -07:00
Android (Google) Code Review
97732c41c3 Merge change 20744
* changes:
  Adds Java side of browser GeolocationService.
2009-08-12 07:26:48 -07:00
Steve Block
67e1eb6864 Adds Java side of browser GeolocationService. 2009-08-12 15:23:11 +01:00
Android (Google) Code Review
ce6182fa49 Merge change 20788
* changes:
  make private inner classes static
2009-08-11 14:04:32 -07:00
Cary Clark
7ec19876c9 make private inner classes static
bug found by findbugs
http://b/issue?id=1856695
2009-08-11 16:57:43 -04:00
Android (Google) Code Review
2b7d44ed84 Merge change 20781
* changes:
  replace 'new String()' with ""
2009-08-11 13:14:16 -07:00
Cary Clark
686cf75d5c replace 'new String()' with ""
bug reported by findbugs
http://b/issue?id=1856909
2009-08-11 16:08:52 -04:00
Cary Clark
0867e69176 make final constants static
found by findbugs
http://b/issue?id=1857033
2009-08-11 15:44:31 -04:00
Grace Kloba
758bf41084 Improve Browser performance by 1-2%. To address domain sanity bug,
http://b/issue?id=1022797, we decoded/encoded the url for each request. As
the url can be long, getBytes() and String.init are taking 1.5% in nytimes.com
and 2.4% in cnn.com. By doing a simple URL encoding test, we can shave 1-2
secs thread time during loading.
2009-08-11 11:47:24 -07:00
Android (Google) Code Review
f280a1b830 Merge change 20750
* changes:
  remove unused locals
2009-08-11 10:55:24 -07:00
Cary Clark
a589419c04 remove unused locals
found by findbugs
http://b/issue?id=1857022
2009-08-11 13:45:28 -04:00
Android (Google) Code Review
44224695de Merge change 20632
* changes:
  call super.finalize() from WebView
2009-08-11 08:17:43 -07:00
Cary Clark
9a4c063874 call super.finalize() from WebView
found by findbugs
http://b/issue?id=1857144
this fixes ViewDebug which otherwise will report the
incorrect number of views
2009-08-10 17:09:51 -04:00
Android (Google) Code Review
07cbacc117 Merge change 20622
* changes:
  Remove unused member mHeaderValueIndex
2009-08-10 11:28:39 -07:00
Cary Clark
3db35b48cc Remove unused member mHeaderValueIndex
found by findBugs
fixes http://b/issue?id=1857163
2009-08-10 14:03:54 -04:00
Derek Sollenberger
fa32db15a0 setting the pixel format for a given surface 2009-08-10 10:41:35 -04:00
Alex Gruenstein
89325078db unhide postUrl 2009-08-07 16:31:12 -07:00
Grace Kloba
bf951c5afd As createCacheFile is called from WebCore instead of http thread now, remove
the endCacheTransaction/startTransaction pairs.
2009-08-06 18:44:02 -07:00
Grace Kloba
e397a88e4f Couple of tuning for the Browser zoom.
1. Added a setting to control whether a page is loaded with overview mode;
2. If there is no viewport metag tag, a page will be loaded in the viewport
   at least 800px wide.
3. When we adjust zoom scale in the overview mode, don't use animation.
4. When zoom out to close to min zoom scale, switch to overview mode. So double
   tap will always have visual feedback unless it is mobile site.
2009-08-06 13:06:10 -07:00
Derek Sollenberger
1bd20523ef adding ability to fix the size of a surface view when created. 2009-08-06 11:41:36 -04:00
Grace Kloba
fd055b2d7c Add the support for the new SystemInterface of android_npapi, expose
getApplicationDataDirectory to the plugin.
2009-08-05 10:04:46 -07:00
Patrick Scott
2ba1262b42 Add a callback for the url of an apple-touch-icon.
Hide the apis until this is a well-tested feature. The url is reported rather
than the actual icon since it may never be used. The apple-touch-icon is meant
for shortcuts on the home screen.
2009-08-05 08:29:40 -04:00
Android (Google) Code Review
c93da2c494 Merge change 9479
* changes:
  Enable workers for v8
2009-08-04 10:03:39 -07:00
Android (Google) Code Review
af98b21ba7 Merge change 9612
* changes:
  Fix #2031300. Set only accept unique objects. So we have to assign different value for each cookie when we add them to the SortedSet.
2009-08-04 09:00:44 -07:00
Andrei Popescu
c27a9acb3b Enable workers for v8 2009-08-04 13:17:55 +01:00
Grace Kloba
8ae2777354 Fix #2031300. Set only accept unique objects. So we have to assign different
value for each cookie when we add them to the SortedSet.
2009-08-03 17:35:08 -07:00
Feng Qian
706cee45e9 Fix the missing break statement.
Somehow the break statement after SET_JS_FLAGS was removed.
2009-08-03 16:01:42 -07:00
Grace Kloba
f6d1a5528e resolved conflicts for merge of b8802b21 to master 2009-08-03 10:49:58 -07:00
Android (Google) Code Review
8050220374 Merge change 9259
* changes:
  Fix the cookie order. If multiple cookies satisfy the criteria, the one with more specfic Path precede thoese with less specific.
2009-08-03 10:23:58 -07:00
Grace Kloba
f4046ba803 Fix the cookie order. If multiple cookies satisfy the criteria, the one with
more specfic Path precede thoese with less specific.
2009-08-03 10:05:39 -07:00
Grace Kloba
d3c6d54de9 Set touch mode to be TOUCH_DONE_MODE when calling doDoubleTap. 2009-07-31 14:28:41 -07:00
Leon Scroggins
4c94304508 Fix a bug in find.
Make setContentScrollBy return a boolean.
Necessary so that a caller of setContentScrollBy in WebView.cpp
can find out whether the page scrolled.  Requires a change in
external/webkit/
2009-07-31 15:28:18 -04:00
Cary Clark
77d98f4ed7 rebuild the nav cache on mouse clicks during page load
On the first tap down, send a message to rebuild the nav
cache so that double taps have a better chance of having
some alignment information to work with.

Also, pass scale information to getBlockLeftEdge to
restrict the alignment search
2009-07-31 13:15:06 -04:00
Leon Scroggins
010582885c Allow the user to jump to the next textfield.
Requires a change to external/webkit.  Set ImeActions for textfields,
depending on the existence of other textfields on the page, and
react accordingly.
2009-07-31 10:54:38 -04:00
Grace Kloba
4c8db8a4fe Fix #2025900. If a https request is canceled while openConnection is called
and a ssl error happened, the http thread can be blocked for up to 10 min.
Added code to detect this case and unlock the thread.
2009-07-30 23:13:34 -07:00
Grace Kloba
ef347ef910 Fix 2016808. We used to send the new scale/scroll info to the UI thread after
WebCore finish the first layout. As the picture in the UI thread is still
the previous one, if there is a UI update happened before we generate the new
picture, the new scale/scroll will be applied to the old picture.

On the other hand, we do want to trigger the resize for the new page after
the first layout. e.g. The page was at nytimes.com. Now user types google.com.
google.com is first layout in the wide viewport where nytimes.com is. We dont
want to show that picture. We would like to show the fit to screen version of
google.com as the first picture.

Remove the SnapToAnchor code which is left over from previous zoom attempt.
2009-07-30 11:20:32 -07:00
Android Git Automerger
ce41050023 resolved conflicts for merge of 4d4229e4 to master 2009-07-29 16:42:09 -07:00
Steve Block
4faee09c42 Adds the Java side of the system to show the Geolocation permissions prompt. 2009-07-29 17:02:37 +01:00
Steve Block
0ac031b3d2 Adds the Java GeolocationPermissions class.
This is used by the Browser 'Website Settings' menu to get information about Geolocation permissions.
2009-07-29 16:03:53 +01:00
Andrei Popescu
59e2ad93bf Wire in the AppCache out-of-space callback 2009-07-29 11:07:44 +01:00
Grace Kloba
8b97e4b0fe Re-add double tap to the Browser. It only works if WebView uses wide viewport.
It is also controlled by ENABLE_DOUBLETAP_ZOOM flag. Currently the default
is on.

Double tap will toggle between current zoom level and all the way zoom out,
in another word, zoom overview mode.

While in zoom overview mode, don't display zoom control while panning. You
can click to follow the link. If clicking on a text input box, it should
bring it back to the normal mode so that it will be easy to edit text.

While in zoom overview mode, the page is zoomed to fit the width in the
view. While the text paragraph are wrapped to the matching normal mode scale.
So there is no reflow when we switching between two modes.
2009-07-28 13:17:12 -07:00
Chung-yih Wang
fd3db87e28 Support x509-user-cert mime type in browser.
+ Fix the public key matching and intent parameter mismatch.
2009-07-28 18:37:13 +08:00
Grace Kloba
8268170d3f DO NOT MERGE.
Per product team request, remove 1x zoom button. Move the zoom overview to
the bottom left and zoom control to the bottom right.
2009-07-27 13:44:47 -07:00
Android (Google) Code Review
2470a7b4a8 am 3b99e64e: Merge change 8475 into donut
Merge commit '3b99e64e5899030b5d6f8201cb56cd149c80b24d'

* commit '3b99e64e5899030b5d6f8201cb56cd149c80b24d':
  Per conversation, remove the toast while saving the Certificates to CertTools.
2009-07-24 16:08:50 -07:00
Grace Kloba
c9d4c8790a Per conversation, remove the toast while saving the Certificates to CertTools.
Remove the unused strings.
2009-07-23 21:22:51 -07:00
Dan Egnor
ee756b3d02 Make HttpDateTime public (but hidden), so the rest of us can use it
instead of SimpleDateTime (which is super slow).
2009-07-23 16:38:50 -07:00
Leon Scroggins
72543e1bc3 Improvements to dragging on the WebTextView.
When TextView handles a mouse move as a scroll, scroll the
underlying textfield/textarea.  Also do not hide the cursor
while scrolling within a text input.  Requires a change to
external/webkit.
2009-07-23 16:32:38 -04:00
Android (Google) Code Review
f88c0a0625 Merge change 8199
* changes:
  Prevent a drag from both scrolling the page and changing the selection.
2009-07-23 10:19:27 -07:00
Android (Google) Code Review
8dc0c9b4ad Merge change 8189
* changes:
  Enforce app cache maximum size
2009-07-23 09:44:23 -07:00
Grace Kloba
675c7d2eb8 Fix 1997929. The final mScrollX/Y has been pinned to the legal bounds.
So we can't use it to calculate the intermediate scroll position. Use
the original scroll offset and scale to find the animated scroll position.
2009-07-23 09:21:21 -07:00