Commit Graph

2750 Commits

Author SHA1 Message Date
Jeff Brown
ae56520b36 am aa32f5f0: am 98365d76: Refactor for multi-display support.
* commit 'aa32f5f0db25a1553a353d93274f12432e5d07fc':
  Refactor for multi-display support.
2012-08-19 23:12:23 -07:00
Jeff Brown
98365d7663 Refactor for multi-display support.
Split WindowManagerImpl into two parts, the WindowManager
interface implementation remains where it is but the global
communications with the window manager are now handled by
the WindowManagerGlobal class.  This change greatly simplifies
the challenge of having separate WindowManager instances
for each Context.

Removed WindowManagerImpl.getDefault().  This represents the
bulk of this change.  Most of the usages of this method were
either to perform global functions (now handled by WindowManagerGlobal)
or to obtain the default display (now handled by DisplayManager).

Explicitly associate each new window with a display and make
the Display object available to the View hierarchy.

Add stubs for some new display manager API features.

Start to split apart the concepts of display id and layer stack.
since they operate at different layers of abstraction.
While it's true that each logical display uniquely corresponds to a
surface flinger layer stack, it is not necessarily the case that
they must use the same ids.  Added Display.getLayerStack()
and started using it in places where it was relatively easy to do.

Change-Id: I29ed909114dec86807c4d3a5059c3fa0358bea61
2012-08-19 22:42:08 -07:00
Jonathan Dixon
1b93e278c6 am 36aa961d: am 9271fa69: Merge "Remove checkThread() from findAddress" into jb-mr1-dev
* commit '36aa961d29840c0103ae61f40de88f55e37eb626':
  Remove checkThread() from findAddress
2012-08-17 13:34:24 -07:00
John Reck
b5622dad65 Remove checkThread() from findAddress
Bug: 6811978
 This doesn't need checked thread safety - static util methods should
 be thread safe.

Change-Id: Ib652d74ced66e3fa332464106a38522cd941a4cd
2012-08-17 13:05:02 -07:00
Steve Block
665772895c am d6be8eae: am 7bf70dd1: Merge "Fix alpha value for device orientation" into jb-mr1-dev
* commit 'd6be8eae5fece2e93bf16cbb2ac20e307c6c7659':
  Fix alpha value for device orientation
2012-08-16 05:08:48 -07:00
Steve Block
7bf70dd1ac Merge "Fix alpha value for device orientation" into jb-mr1-dev 2012-08-16 04:38:03 -07:00
Steve Block
d5be055f79 Fix alpha value for device orientation
This seems to have been incorrect since this code was first written for HC. I
can only think that the error was made due to confusion between portrait and
landscape mode as development switched from phones to tablets.

Tested on stingray and prime.

A similar fix will be required for Chrome.

Change-Id: I5da13c489fdb9de340b9e6ea8868c9f1adc15bb2
2012-08-16 11:04:51 +01:00
Michael Jurka
640dbe2ca7 am 35b88a86: am 524c878e: Revert "Merge "Reload page when A11y is on and the JavaScript state changes." into jb-mr1-dev"
* commit '35b88a86b84adfb4273ab27e84d301d9b826670e':
  Revert "Merge "Reload page when A11y is on and the JavaScript state changes." into jb-mr1-dev"
2012-08-15 19:52:49 -07:00
Michael Jurka
524c878e7e Revert "Merge "Reload page when A11y is on and the JavaScript state changes." into jb-mr1-dev"
This reverts commit 6d00c72433, reversing
changes made to 41bfb75f7c.
2012-08-15 19:39:55 -07:00
Svetoslav Ganov
eec7961804 am eaea38b2: am 6d00c724: Merge "Reload page when A11y is on and the JavaScript state changes." into jb-mr1-dev
* commit 'eaea38b2360d7c54d77107e6cc6aca8d32decc1d':
  Reload page when A11y is on and the JavaScript state changes.
2012-08-15 18:34:40 -07:00
Svetoslav Ganov
30a4e23a32 am e4c2e2f8: am 41bfb75f: Merge "Only inject accessibility when speaking service enabled." into jb-mr1-dev
* commit 'e4c2e2f8779a2c51724da1b8430185fceefc94ea':
  Only inject accessibility when speaking service enabled.
2012-08-15 18:34:36 -07:00
Svetoslav Ganov
6d00c72433 Merge "Reload page when A11y is on and the JavaScript state changes." into jb-mr1-dev 2012-08-15 18:30:57 -07:00
Svetoslav Ganov
41bfb75f7c Merge "Only inject accessibility when speaking service enabled." into jb-mr1-dev 2012-08-15 18:29:26 -07:00
George Mount
b046e049ec am bb8bdcd9: am 21029db1: Merge "Number and telephone inputs -- use "Go" instead of "Next"" into jb-mr1-dev
* commit 'bb8bdcd9104a85f4f7e21cb882e766da7aef98d2':
  Number and telephone inputs -- use "Go" instead of "Next"
2012-08-15 10:47:29 -07:00
George Mount
21029db157 Merge "Number and telephone inputs -- use "Go" instead of "Next"" into jb-mr1-dev 2012-08-15 10:44:07 -07:00
George Mount
68c0c12631 Number and telephone inputs -- use "Go" instead of "Next"
Bug 6988736

Change-Id: I36e85832bdd53ea0f7eb422104966b403b8fbcdd
2012-08-15 10:15:50 -07:00
Steve Block
ae6cb93477 am 1d15cb0b: am 65dfac3b: Merge "Clean up JavaDoc for CookieManager" into jb-mr1-dev
* commit '1d15cb0b37e4a5d0a7674da3fd321148d2cc1cd1':
  Clean up JavaDoc for CookieManager
2012-08-15 05:06:29 -07:00
Steve Block
9ccdb0461c am 3d935621: am 27f3e32e: Clarify JavaDoc for WebView.loadData()
* commit '3d93562115237d8a893f3e686e44116ba506d57a':
  Clarify JavaDoc for WebView.loadData()
2012-08-14 07:59:11 -07:00
Steve Block
c723e35336 Clean up JavaDoc for CookieManager
Bug: 5461416
Change-Id: I0ae09943007cf3866daad97a76f5008e61c471ed
2012-08-14 15:54:38 +01:00
Steve Block
27f3e32ee1 Clarify JavaDoc for WebView.loadData()
Bug: 5461416
Change-Id: I3f0955677ea64bb4073c97aabea34096298cd710
2012-08-14 15:54:35 +01:00
alanv
fdfd0d8535 Only inject accessibility when speaking service enabled.
Bug: 6922883
Change-Id: I48d03a2da9bcf7375156c84219802bf20af4ddc6
2012-08-09 18:05:17 -07:00
alanv
92a5be96d8 Reload page when A11y is on and the JavaScript state changes.
Bug: 6910403
Change-Id: I0965d76e76282736d053947eb96be0af32fd6001
2012-08-09 17:47:09 -07:00
Mikhail Naganov
ce18fd9510 Merge "Implement WebSettings.{get|set}TextSize via {get|set}TextZoom." 2012-08-08 02:08:58 -07:00
Mikhail Naganov
c70b1f3bd6 Merge "Remove unused BROWSER_TEXT_SIZE_CHANGE log event." 2012-08-08 02:06:36 -07:00
Mikhail Naganov
65e7ace979 Clarify JavaDoc of WebSettings.setAllowFileAccessFromFileURLs.
According to CTS tests (WebSettingsTest.testLocalImageLoads),
local images access is allowed regardless of the state of
AllowFileAccessFromFileURLs.

Bug: 5461416

Change-Id: I71f5c38a6b0f3720c8c369c0e19f379c78ace06f
2012-08-08 10:02:39 +01:00
Mikhail Naganov
1202d66f78 Implement WebSettings.{get|set}TextSize via {get|set}TextZoom.
TextSize is deprecated, so we wouldn't expect from WebViewProvider
implementations to re-implement it in some other way than Android WebView does
it. This also makes recently added TextSize.getValue method redundant.

Change-Id: Ia9d0c743424be0727be6d5df6c7da30514d621b7
2012-08-07 18:26:52 +01:00
Mikhail Naganov
690c6b1925 Remove unused BROWSER_TEXT_SIZE_CHANGE log event.
It turns out that the BROWSER_TEXT_SIZE_CHANGE event isn't listed
in google3/wireless/android/production/checkin_config/root,
which means that statistics on it isn't collected, so the logging
statement doesn't have any useful effect and can be removed to
simplify code.

Change-Id: I66d694cdb13e677bb979f5e962ed2cc8d743bdec
2012-08-07 18:16:17 +01:00
George Mount
ed85b04ebd am 8502ab91: am daceb30b: Merge "Cancel handler for JS unload handler prevents hang." into jb-mr1-dev
* commit '8502ab91bdd8ed34eeebed2daac90dea7b3da0ea':
  Cancel handler for JS unload handler prevents hang.
2012-08-02 16:33:30 -07:00
George Mount
daceb30bf5 Merge "Cancel handler for JS unload handler prevents hang." into jb-mr1-dev 2012-08-02 16:28:03 -07:00
George Mount
df9cae4de3 Cancel handler for JS unload handler prevents hang.
Bug 6803309
 When the alert dialog raised by the JS unload handler was pressed
 outside the alert region, it was canceled and no response was
 sent back to WebViewCore. This captures the cancel event so that
 WebViewCore doesn't hang.

Change-Id: I0c125e759a252a803c2c77aa9533adef7fa82d3d
2012-08-02 15:14:39 -07:00
George Mount
12b7b7fea8 am be38cccd: am ed9960ff: Merge "Don\'t restart input in the middle of a batch." into jb-mr1-dev
* commit 'be38cccd91e12576ed994719b6b83371c5749bb9':
  Don't restart input in the middle of a batch.
2012-08-02 15:10:28 -07:00
George Mount
a99dbde643 Don't restart input in the middle of a batch.
Bug 6854156
 setComposingText is in the middle of a batch and it was resetting
 the InputConnection. When the batch ended, it was closing a
 batch that wasn't open on the new InputConnection. The reset
 turns out not to be necessary anymore -- the LatinIME respects
 the content when setComposingText fails to change anything.

Change-Id: If3352b32ed7b3c90c8dcb3d5ff8d308e82849d85
2012-08-02 09:36:06 -07:00
Teng-Hui Zhu
cf737484a8 am ca6b44f8: am 3a680382: Merge "Add license info to the HTML5Video files." into jb-mr1-dev
* commit 'ca6b44f8a9c78002f1826d49ced350287831dba4':
  Add license info to the HTML5Video files.
2012-08-01 14:53:10 -07:00
Teng-Hui Zhu
778029e5c6 Add license info to the HTML5Video files.
Change-Id: I44775bcdcc48d2c024b086098e140dae92f53339
2012-08-01 13:59:39 -07:00
Mikhail Naganov
f415f3d72b Merge "Deprecate WebSettings.LOAD_NORMAL cache mode." 2012-07-31 05:08:23 -07:00
Mikhail Naganov
56936a1f51 Deprecate WebSettings.LOAD_NORMAL cache mode.
After the switch to the Chromium network stack, this setting is
effectively the same as LOAD_DEFAULT, and having two settings
with the same meaning is confusing.

This change is blocking https://android-git.corp.google.com/g/205883 in CTS

Change-Id: I02cc23477f107e7f4cec37dcbad4f25503b5e840
2012-07-30 14:54:49 +01:00
Mikhail Naganov
ce76ca51d8 Add 'getValue' methods to WebSettings.TextSize and ZoomDensity enums.
As the 'value' fields in these enums are not public, it isn't possible to
retrieve the enum value if the WebViewProvider implementation is defined in a
different package to the API. Adding public hidden methods to fix this.

Change-Id: Ia5fb1332d0043e127b4bad03a295d8abf1a5e5b9
2012-07-30 14:20:01 +01:00
Scott Main
75bea2e8d3 am 7c00f816: am 2f5b61a7: Merge "docs: fix a bunch of links from javadocs to api guides and add some attributes to Spinner and Switch" into jb-dev
* commit '7c00f81606de1880c3f28e54cea064c3b90da3e7':
  docs: fix a bunch of links from javadocs to api guides and add some attributes to Spinner and Switch
2012-07-25 15:05:18 -07:00
Mikhail Naganov
500b003ff1 Improve JavaDoc for cache mode constants.
Bug: 5461416
Change-Id: I26c48a6428ff1afb5346eeaa02c5ca74ec95173c
2012-07-25 13:06:14 +01:00
Scott Main
4c359b76f9 docs: fix a bunch of links from javadocs to api guides
and add some attributes to Spinner and Switch

Change-Id: If015ad000c1a36e19904c132e98ebff1ceaf718b
2012-07-24 17:50:48 -07:00
Fabrice Di Meglio
85d28a0004 Merge "Replace left/right with start/end for Gravity / LayoutParams / Padding" 2012-07-24 11:11:02 -07:00
Steve Block
46ce1db6ff Improve JavaDoc for HTTP basic authentication methods
Bug: 5461416

Change-Id: Ie3bfbf6acde34ea184aa8c8b1d3841e2a2aa8a22
2012-07-23 14:30:15 -07:00
Steve Block
219dfa4d39 Improve JavaDoc for saved form data
Change-Id: I962df5678081920c30f8a2b1fe79389f702ef3fb
2012-07-23 14:22:21 -07:00
Steve Block
32fe410a5d Improve JavaDoc for saved username/password pairs
Change-Id: Ief079666eb1250f0a57089c778669b638a259194
2012-07-23 10:32:35 +01:00
Ben Murdoch
e09e976dad Allow switching to the Chromium WebViewFactoryProvider at runtime.
Currently, WebViewFactory is hardcoded to always load
android.webkit.WebViewClassic$Factory.  This change allows us to
load the Chromium powered WebView by setting the
"webview.use_chromium" system propery to true.

Change-Id: Icebfc4d5c4a61230c5e5dccac1ec5eca59f650ac
2012-07-23 10:21:10 +01:00
Teng-Hui Zhu
0e5b160418 add a webview API to support media play without user gesture
bug:6806306

webkit change: https://android-git.corp.google.com/g/#/c/208568/
Change-Id: Ic70e5d3f152a7e8d8fdfa1d6f89f96c8cd3c7075
2012-07-20 13:33:52 -07:00
Fabrice Di Meglio
aac0d4ed02 Replace left/right with start/end for Gravity / LayoutParams / Padding
- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: Id9af5375fb9b0edeae5232c77e52ecd497bd2e67
2012-07-19 19:21:26 -07:00
John Reck
4635dc23dc Bump PREVIOUS_VERSION
Change-Id: Idf2586a7062726f60d3a6c1b75f75fde8fc9c550
2012-07-19 18:00:07 -07:00
Steve Block
60620a2399 Merge "Update JavaDoc for PictureListener after fix to capture layers" 2012-07-19 11:44:08 -07:00
John Reck
b077e243ba Merge "Test aggressive throttling" 2012-07-19 11:28:33 -07:00