Commit Graph

267 Commits

Author SHA1 Message Date
Derek Sollenberger
37eb3c3515 removing old gears code and correcting simple method typo 2009-08-18 14:22:26 -04:00
Android (Google) Code Review
db33d4bbae Merge change 21468 into eclair
* changes:
  Couple of fixes for viewport.
2009-08-18 10:51:49 -07:00
Grace Kloba
7a02d6e457 Couple of fixes for viewport.
http://b/issue?id=2053685. This is a tricky one. When Browser is restarted,
we may get first layout even before viewport tag is parsed. This is rare,
but it happens to Google Reader site. So we need to setup the viewport explicitly
if it happens after first layout. There is a pairing webkit change.

http://b/issue?id=2054131. When Google talk is loaded, it goes through an auth
redirect site which means first layout is called with standardLoad as false.
In this case, even the final site uses viewport tag to get mobile experience,
the intermediate one doesn't. To make sure most of the mobile sites, who
define their viewport width as device width, work correctly, we always update
the mRestoreState when we set viewport.

http://b/issue?id=2054121. When Browser is first started or restarted, the
mCurrentViewWidth is 0 as we don't know the WebView's width yet. As we can't
send VIEW_SIZE_CHANGED message directly, we reset WebView's mLastWidthSent
so that VIEW_SIZE_CHANGED will be sent from WebView when it's width is available.
2009-08-18 10:10:51 -07:00
Android (Google) Code Review
9befde04c3 Merge change 21648 into eclair
* changes:
  Remove the hack to include Gears as it is gone now.
2009-08-18 08:44:18 -07:00
Grace Kloba
325eabdc85 Remove the hack to include Gears as it is gone now. 2009-08-17 18:17:53 -07:00
Grace Kloba
d7660ccb7b Fix 2058938. As zoom control is uesd in overview mode to switch to reading
mode, we also want to hide it after double tap is done.
2009-08-17 17:13:01 -07:00
Android (Google) Code Review
86192c614c Merge change 21442 into eclair
* changes:
  Fix a cookie bug. If "secure" is in the end of the string, it was ignored.
2009-08-17 09:19:23 -07:00
Grace Kloba
dbdad99813 Fix a cookie bug. If "secure" is in the end of the string, it was ignored. 2009-08-16 00:05:01 -07:00
Leon Scroggins
f58ffac202 Hide the title bar when zoomed in. 2009-08-14 14:47:27 -04:00
Steve Block
a8dfe24da0 Adds the ability to configure the mock Geolocation service from DumpRenderTree. 2009-08-14 16:43:28 +01:00
Patrick Scott
68e5300477 The local loaders assume the url given to them is decoded.
Decode the url before passing down to the local loaders since they do not decode
the url themselves. This was creating a crash on youtube.com since the data url
was percent-encoded and failing to parse from base64.
2009-08-14 08:15:30 -04:00
Grace Kloba
455e3af1f8 Fix #2048199. Enable zoom control in the overview mode. When "+" is pressed,
treat it as double click in the middle of the page.
2009-08-13 15:27:52 -07:00
Cary Clark
543221fc4b handle false results in file.delete
found by findbugs
http://b/issue?id=1856614
2009-08-13 15:04:47 -04:00
Leon Scroggins
6679f2f708 Pass clicks to webkit's textfield to determine the new selection.
Requires a corresponding change to external/webkit.  We were previously
letting WebTextView handle clicks, determine the change in selection,
and pass that down to webkit.  This sometimes resulted in a different
placement of the caret if the WebTextView and the webkit-rendered
textfield did not line up exactly.  Now, we pass the click directly
to webkit, which determines the new selection and passes that info
back to the WebTextView.  This also has the benefit of letting
the WebTextView reflect changes in the selection that originated from
webkit. Also remove some unused parameters.
2009-08-13 14:21:24 -04:00
Andrei Popescu
385df699a6 remove Gears 2009-08-13 13:07:48 +01:00
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