Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

[Tizen] Get visibilityChange events fired by window focus change. #228

Open
wants to merge 246 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
246 commits
Select commit Hold shift + click to select a range
3dd59cb
Incrementing VERSION to 40.0.2214.1
Nov 8, 2014
8ea7d4f
Revert "PPAPI: Make GetProxiedInterface not re-enter the plugin"
Nov 8, 2014
e529d5b
Revert "Adding GCM support to the copresence component. The Copresenc…
Nov 8, 2014
6a18208
Incrementing VERSION to 40.0.2214.2
Nov 8, 2014
6653d47
Undoing revert, cl is not the cause of gcm crash on canary.
Nov 8, 2014
777ddc4
Suspect that this is causing crash, reverting.
Nov 8, 2014
d876775
Incrementing VERSION to 40.0.2214.3
Nov 8, 2014
eb1c866
Cherrypicking revert which caused a bug.
Nov 11, 2014
60cd448
Incrementing VERSION to 40.0.2214.4
Nov 11, 2014
c8ae2b8
Reverting cl since it's causing a crash.
Nov 11, 2014
240346e
Incrementing VERSION to 40.0.2214.5
Nov 11, 2014
22c1e20
Merge to M-40 2214: Support vertical centering of multi-line labels.
Nov 11, 2014
0eef71f
Plugin Power Saver: Collect size histogram on Flash Plugins users click.
Nov 12, 2014
4bf3f4a
Merge to M40: "Use GL_LINEAR scaling instead of GL_NEAREST."
dalecurtis Nov 12, 2014
8053a08
Merging in cl to help debug major crash.
Nov 12, 2014
ad2b9f5
gpu: Make sure sync queries complete on service side when calling glF…
reveman-chromium Nov 12, 2014
14becdd
Revert "MacViews: Get chrome/browser/ui/views/frame to compile"
Nov 12, 2014
5c4fc46
merge {#303347} Plugin service: Use the correct registry key for each…
Nov 12, 2014
18da38e
Disable use of occlusion APIs while bugs are fixed
Nov 12, 2014
3102ea8
Ensure that the recovery directory is created before moving the recov…
Nov 12, 2014
090d8bc
[Merge] [Smart Lock] Update a couple of UI strings.
ishermandom Nov 12, 2014
1e4fb12
Incrementing VERSION to 40.0.2214.6
Nov 13, 2014
8c9d1eb
GCM Directive fix. We need to handle directives without op ids, but w…
Nov 13, 2014
9aa8420
Files.app: Add guard closure for selectedAsyncData.
hirono-chromium Nov 13, 2014
e286b49
Files.app: Add a check for uninitialized list view.
hirono-chromium Nov 13, 2014
6ab35ba
Files.app: Use "ready" message instead of "worker-initialized" for wa…
hirono-chromium Nov 13, 2014
0b87525
Trigger ConnectToBestNetwork in more cases.
Nov 13, 2014
3605314
Use different icons for the overlay and non-overlay cast buttons
Nov 13, 2014
01ed147
Added key-value storage for pending changes to OwnerSettingsServiceCh…
Nov 13, 2014
082a344
Fix reporting_level_ initialization
asvitkine-chromium Nov 13, 2014
e6394af
Merge to M-40 2214: Fix clipping RenderTextHarfBuzz text on Windows 8.
Nov 14, 2014
723eb3d
Incrementing VERSION to 40.0.2214.7
Nov 14, 2014
754468b
Float plugin above dialog screen so that click-to-play works.
jamiewalch Nov 14, 2014
7d86b69
[ServiceWorker] Pass FetchEvent related properties of WebURLRequest t…
horo-t Nov 14, 2014
04be369
Fixing lowpower strategy handling (M40 merge)
Nov 14, 2014
a77a3d3
Updating copresence whitelist (M40 merge)
Nov 14, 2014
c2b8e01
Fix a case when the initial rtt could be 0 when the client tries to
Nov 14, 2014
368467d
Correct toggle-view button of file_manager.
Nov 14, 2014
4ab3e05
Set Russian keyboard as the popular input method for Russian language.
shuchen-google Nov 14, 2014
120be7f
Sort input method list as the sequence as XKB, M17n, T13, CJK.
shuchen-google Nov 14, 2014
1fa6c42
Finch experiment for limiting the password bubble annoyance.
Nov 14, 2014
c8e8291
Include Web Notifications as an experimental feature on Android (M40).
beverloo Nov 14, 2014
8853af3
Rollback availability check fixed. Before: rollback availability was …
Nov 14, 2014
77ef646
Use session_manager API that ends user session in case of crash when …
Nov 14, 2014
8cc6448
Merge "easy-unlock: Add icon for pairing changed state."
Nov 14, 2014
d5bd854
Fix crash when searching for the TabModel for a specific WebContents.
tommynyquist Nov 14, 2014
3f72e55
[ServiceWorkerCache] Check for a blob storage handle before storing it.
Nov 14, 2014
a80e9f6
Merge "Use higher precision to store the login database's date_create…
erikchen Nov 14, 2014
db81059
[Android] Stop temporarily hiding selection handles
Nov 14, 2014
3897692
Clear the selection when hiding the handles
Nov 14, 2014
e43001d
[Android] Override text handle visibility when the view is detached
Nov 14, 2014
5548873
Cast Streaming: Cleanup stats obtained by getStats() API
Nov 14, 2014
42a9c10
Cherry-Pick: Make download_larget_icon and touch icon use same code p…
Nov 14, 2014
bfaccef
Merge: Fix a crash when showing initial UI before EasySignin service …
Nov 14, 2014
983c03d
Fix DropdownPopupWindow positioning on Android L.
liutikas Nov 15, 2014
bfe2401
Incrementing VERSION to 40.0.2214.8
Nov 15, 2014
cb47a6a
Incrementing VERSION to 40.0.2214.9
Nov 17, 2014
94db688
Don't fire AppLifetimeMonitor::Observer::OnAppActivated on every AppW…
jackhou-chromium Nov 17, 2014
c64be1d
Merge to M40:
Nov 17, 2014
09340dc
Merge the revert to M40.
Nov 17, 2014
57a7269
Merge to M40: GetHelp Release M41-20141114 : bug fix
dpolukhin Nov 17, 2014
3f25baa
Merge to M40:
Nov 17, 2014
4650aaa
Disable channel id
Nov 17, 2014
53d757c
Add the goog-unwanted-shavar list to a new SafeBrowsing PrefixSet.
Nov 17, 2014
4b4bd85
Remove UsbDevice observers on ::Clear and service destruction.
reillyeon Nov 17, 2014
daede70
Revert "Update ALPN/NPN token from "h2-14" to "h2-15"."
Nov 17, 2014
43f0a12
QUIC - added histograms to match server config information saved in
Nov 17, 2014
546d393
Merge "easy-unlock: Do not override online sign-in auth type."
Nov 17, 2014
3e349d1
Incrementing VERSION to 40.0.2214.10
Nov 18, 2014
cbd4909
Incrementing VERSION to 40.0.2214.11
Nov 18, 2014
7cf1cde
Makes sure the hardware keyboard layouts contains at least one login …
shuchen-google Nov 18, 2014
c126369
Be able to display very basic notifications on Android.
beverloo Nov 18, 2014
0d3fa09
Define a (mock) infobar icon for Notifications, delegate the events.
beverloo Nov 18, 2014
637234b
QUIC - Record the FailureReason for WaitForDataReady in
Nov 18, 2014
0435cb9
Merge: Disable new avatar menu when web-based signin is on
Nov 18, 2014
e6ddb34
cc: Add invalidations when shrinking piles
quisquous Nov 18, 2014
6e2d733
Merge to M-40 2214: Disable RTHB on Mac when TOOLKIT_VIEWS isn't defined
Nov 19, 2014
3a411ab
Incrementing VERSION to 40.0.2214.12
Nov 19, 2014
5b56b60
Merge: Propagate the search request params from the browser to the In…
kmadhusu Nov 19, 2014
eb0ae28
Leave the '://' grey in android's page info dialog.
Nov 19, 2014
ecddddd
Add push messaging to the Android page info with notifications strings.
Nov 19, 2014
c9a02ed
Fix Spdy31Enabled trial group.
Nov 19, 2014
2049bd0
ChromeBrowserProvider shouldn't own the FaviconService
Nov 19, 2014
3506ad6
[Android WebView] Store HTTP cache in a cache directory
Nov 19, 2014
a9df029
Add a few more European timezones
jungshik Nov 19, 2014
5422c9b
Merge to M40: Only respond to ACTION_SET_SELECTION and ACTION_SET_TEX…
minorninth Nov 19, 2014
883cf82
Merge: Deprecate old way of getting disabled provider types, which no…
kmadhusu Nov 19, 2014
5433a8d
Merge to M40: Make TextViewWithClickableSpan activate only if you don…
minorninth Nov 19, 2014
103b157
Incrementing VERSION to 40.0.2214.13
Nov 20, 2014
f661541
Always show cam/mic access in the media content setting bubble
Rob--W Nov 20, 2014
7b5ed2e
Fix a crash in GLES2Implementation::~GLES2Implementation
phuangg Nov 20, 2014
27fdb9b
Autofill, Android - Avoid crash triggered by race condition
Nov 20, 2014
b781181
Fix crash in download metadata manager when opening a download.
GregTho Nov 20, 2014
f993f9e
Update "did run" from the browser process after renderer creation.
GregTho Nov 20, 2014
aa08747
Fix wrong calculation of 16DP pixel.
Nov 20, 2014
6a6eabe
Promote chrome.usb.getUserSelectedDevices to stable channel.
reillyeon Nov 20, 2014
9855826
[NaCl SDK] Update naclports revision
sbc100 Nov 20, 2014
daa0737
chrome://net-internals/#bandwidth doesn't show historic network stats
Nov 20, 2014
d679852
Remove children of removed nodes from maps.
Nov 20, 2014
6e1e047
Incrementing VERSION to 40.0.2214.14
Nov 21, 2014
726ac4c
Fix --enable-apps-file-associations being on by default on Windows.
mgiuca Nov 21, 2014
ff745fb
Remove the menu button from the menu popup.
Nov 21, 2014
edb890b
Clear stability count data immediately after user opts in UMA.
asvitkine-chromium Nov 21, 2014
adbbbb1
Files.app: Show the drive options always in gear menu.
hirono-chromium Nov 21, 2014
a1d2998
Close bubbles not on UpdateToolbar but when the activated tab is changed
Nov 21, 2014
71f7e09
Fixed UI stuck on Network screen after rebooting on FRE screen BUG=43…
Nov 21, 2014
6da7a36
Viewport scrolls should always begin at the outer viewport.
Nov 21, 2014
79e4b72
Revert of [Android] Experimental sync barrier detection for tracing (…
Nov 21, 2014
d5d4a0d
Reland [Android] Mark posted UI thread tasks as asynchronous
Nov 21, 2014
ebbd90b
[Extension Toolbar] Check if the extension is still valid in the view…
rdcronin Nov 21, 2014
cf57bfe
Use URLRequestJobManager to retry data reduction proxy bypasses
Nov 21, 2014
4a3e82e
Use original profile for Settings popups
stevenjb Nov 21, 2014
2d56a37
Do not use the 'original' profile for guest sessions
stevenjb Nov 21, 2014
4c3730a
aw: Workaround qualcomm driver bug
Nov 21, 2014
69a45c6
Merge https://codereview.chromium.org/739033002 onto 2214 branch
Nov 21, 2014
bf4b27e
[Extension Toolbar] Fix popup display for RTL browsers
rdcronin Nov 21, 2014
a4faf8c
[Extensions Toolbar] Fix crash in showing the chevron menu with rapid…
rdcronin Nov 21, 2014
29fcea5
Workaround NVidia eglWaitSyncKHR bug
Nov 22, 2014
c8d1c69
Incrementing VERSION to 40.0.2214.15
Nov 22, 2014
5be5699
Safebrowsing: Fix crash if DownloadItem is destroyed before history c…
matt-mueller Nov 22, 2014
a92b5b7
Incrementing VERSION to 40.0.2214.16
Nov 23, 2014
a06a3df
Disable keyframes on vpx.
jamiewalch Nov 23, 2014
0caa18a
Fix non-gmail host service account logic.
jamiewalch Nov 23, 2014
3c4c207
Incrementing VERSION to 40.0.2214.17
Nov 24, 2014
f2d568c
Fixes crash in media::AudioBlockFifo::Push for Apple Thundebolt Displays
henrikand Nov 24, 2014
01b1f64
Incrementing VERSION to 40.0.2214.18
Nov 24, 2014
6f54d31
Reset singleton ZoomBubbleView::zoom_bubble_ in ::Close()
Nov 24, 2014
8de86c7
[Password Generation] Breakout UMA stats for generated passwords
Nov 24, 2014
9b92c67
Accept invalid chrome-extension:// and chrome:// CSP tokens
Rob--W Nov 24, 2014
2335784
Merge "easy-unlock: Do not show icon for online auth type."
Nov 25, 2014
7ee90e5
Incrementing VERSION to 40.0.2214.19
Nov 25, 2014
337bb6e
Chromoting: Send SIGKILL to terminate host processes.
jamiewalch Nov 25, 2014
1ca9ce1
Merge "Update cryptotoken to 0.9.6."
Nov 25, 2014
2b34e7b
Android platform provides a local proxy that also handles PAC proxy r…
Nov 25, 2014
4927ff1
[GCM] Fetching OAuth2 tokens periodically in account tracker
fgorski Nov 25, 2014
f9b8bba
Fix USB remote debugging on M-40.
reillyeon Nov 25, 2014
9b3633f
[GCM] Fixing loading from GCM store after signing out of a profile
fgorski Nov 25, 2014
a69b271
[Search] Add a policy to allow disabling a search feature
Nov 25, 2014
0f4278a
Merge "Add address input strings to Android" to 2214.
rsolomakhin Nov 25, 2014
72eae45
Ensure SAML credentials API loads before the IdP's login page
Nov 25, 2014
3285e7b
Disable grey-screen functionality.
jamiewalch Nov 25, 2014
eecef69
Merge to M40: Make labels clickable as a hack to make them accessibil…
minorninth Nov 25, 2014
952bc3a
Merge to M40: Fix font size of BoldTextFieldLabel.
minorninth Nov 25, 2014
c43c3ea
Incrementing VERSION to 40.0.2214.20
Nov 26, 2014
4e8c10b
Preserve IME state when clearing the selection
Nov 26, 2014
e5b61fe
Detect and repair inconsistent group policy settings.
GregTho Nov 26, 2014
d8b7990
Allow perfect scroll bubbling between outer/inner viewports
Nov 26, 2014
d2cfb12
Incrementing VERSION to 40.0.2214.21
Nov 27, 2014
e33639a
Start reading checked state for image buttons in the menu.
liutikas Nov 27, 2014
26d23f5
[Merge to M40] Send device_id with IssueToken requests from identity_api
Nov 27, 2014
ab7278f
Don't try to get the current v8 Isolate before v8 was initialized
jeisinger Nov 27, 2014
0dade5b
[Merge] Fix the "Learn more about Guest browsing" link to point to th…
notwaldorf Nov 27, 2014
bba65c5
Incrementing VERSION to 40.0.2214.22
Nov 28, 2014
eb2c3ed
[WebView] Set back button to exit fullscreen.
igsolla-xx Nov 28, 2014
306fc70
Merge to M40: Fix accessibility of remaining input types on Android
minorninth Nov 28, 2014
e06e205
Merge to M40: Only load inline text boxes for the node that has acces…
minorninth Nov 28, 2014
a063772
Incrementing VERSION to 40.0.2214.23
Nov 29, 2014
669fb7d
Incrementing VERSION to 40.0.2214.24
Nov 30, 2014
2905a29
Merge to M40: Fix DropdownPopupWindow accessibility.
minorninth Nov 30, 2014
a74ffc5
Incrementing VERSION to 40.0.2214.25
Dec 1, 2014
0357db7
Don't scale up image in TabAndroid::onFaviconAvailable.
Dec 1, 2014
15f195c
Merge to M40: Show phone-style select popup when touch exploration is…
minorninth Dec 1, 2014
24155bc
Merge to M40: Support accessibility actions to increment / decrement …
minorninth Dec 1, 2014
1962bc0
Check for failure to create an IOHIDDevice object.
reillyeon Dec 1, 2014
278c933
Merge: Add Print Preview selection label for non-isotropic DPI values.
vitalybuka Dec 1, 2014
617e258
[Android] Fix cherrypick of check state menu.
Dec 1, 2014
7d3e8be
Make sure the sync directory is deleted on sign-out, take 2.
Dec 1, 2014
65df755
Remove NPAPI plugins from whitelist
jschuh Dec 1, 2014
622df5f
Attach ImeAdapter in CVC initialization.
hush-at-google Dec 1, 2014
48046d8
Increment plugin metadata versions
jschuh Dec 1, 2014
b3417fe
Incrementing VERSION to 40.0.2214.26
Dec 1, 2014
ce7641f
Merge r305245 to M40 branch.
jmuk Dec 1, 2014
f757c17
Add method to hide BrowserAccessibilityManager.
Dec 1, 2014
abc91f0
Remove FileTest.MemoryCorruption death test regexp assertions.
Dec 1, 2014
0824145
Mac Remote CoreAnimation: Fix flashing at tab-switch
ccameron-chromium Dec 1, 2014
0bcf267
Mac: Fix performance issues with remote CoreAnimation
ccameron-chromium Dec 1, 2014
472e9e8
Incrementing VERSION to 40.0.2214.27
Dec 2, 2014
77e079f
[Smart Lock] Update app name and description in manifest.
ishermandom Dec 2, 2014
5715c36
ChromeOS: default keyboard for new user should match owner's default.
shuchen-google Dec 2, 2014
ee962e8
[Android] Fix a subtle issue in Java Bridge regarding interfaces removal
Dec 2, 2014
34e6e74
[android] Fix SIGABRT handling in the WebView crash handler.
primiano Dec 2, 2014
feaf84b
Share and search icons should respect the system theme.
Dec 2, 2014
dbbdb2b
[Android] Rename default_button_tint to dark_tint.
kkimdev Dec 2, 2014
ebbdd5a
Merge for 2214 [Password Generation] Fix Autofill integration for PSL…
Dec 2, 2014
6a7cc2e
We previously had a setting in chrome defaults but this deprecates th…
Dec 2, 2014
5d52e85
disable link disambiguation by default
Dec 2, 2014
495d2b9
Fix a threading issue in MediaStreamTrackMetricsObserver. Recently we…
Dec 2, 2014
bced9e0
Aggregated profile metrics should be written as DWORDs to the registry.
Dec 3, 2014
394b59e
Incrementing VERSION to 40.0.2214.28
Dec 3, 2014
1dc87a2
Publish DEPS for Chromium 40.0.2214.28
Dec 3, 2014
69f7691
Add xwalk path to git ignore list
May 3, 2013
8e9767f
.gitignore: Ignore ozone/.
rakuco Feb 27, 2014
19617fc
Also need to set aura::Window title
Jul 18, 2013
28b0107
Aura: fix the touch event doesn't work on Tizen 3.0 issue.
huningxin Jul 18, 2013
18f23fa
[Tizen] Change Sandbox IPC process title.
ds-hwang Aug 30, 2013
82ee93f
[Android] Extend android install timeout to 5 minutes for testing
Sep 11, 2013
bddb281
[Android] When running android test, try killing adb if no devices found
Sep 11, 2013
2970c34
[Tizen] Change scrollbar animator
Nov 6, 2013
a20b80b
Introduce OS_TIZEN and set specific settings for Tizen platforms
kenchris Nov 7, 2013
0813f3f
Add GetFieldID functing to jni_help in the content for XWalk.
junmin-zhu Nov 17, 2013
56a7f5f
[SysApps] Expose ffmpeg function signatures needed by Device Capabili…
Nov 26, 2013
3a33168
Fix default min-layout width and scrollbar appearence.
kenchris Dec 5, 2013
3b83545
[Tizen] Use Tizen system location provider for geolocation subsystem
Dec 9, 2013
4b69ee2
[Android] Use application context for shared pref's creation
Dec 18, 2013
95512e6
[SysApps] Make CodecIDToAudioCodec and CodecIDToVideoCodec available …
Dec 20, 2013
7a62076
[Views] Customize _NET_WM_PID for X11 window backing a Widget
cmarcelo Jan 9, 2014
2cfc5a3
[Android] Use the Chromium TLS for thread local storage allocation
Jan 15, 2014
04389be
[Views] Fix compiler initialization order errors.
Feb 10, 2014
598c0de
[Android] Allow intercepter to extract paks
Feb 28, 2014
3d29b44
[Android] Turn on WebNotification runtime feature on Android
Jan 14, 2014
04c04b5
[Tizen] Enable geolocation for Tizen
Feb 25, 2014
2bfbfeb
[Tizen] Hard code for va driver
Mar 10, 2014
8e3f338
[Android] Change the API for ApplicationStatus in base dir.
Apr 1, 2014
5e0f029
[Temp] Add support to provide external ozone files in views.
kalyankondapally Mar 5, 2014
bac3fa1
[Android] Add a new API to simulate activity started on ApplicationSt…
kurli Apr 8, 2014
87fe82c
[Tizen IVI] Make HTML5 full screen API work on IVI.
Feb 25, 2014
43fc935
[Android] Address Context leak in ResourceExtractor
Apr 14, 2014
899576a
[Android] Ignore status from non tracked activities
kurli Apr 16, 2014
0964746
[Tizen] Enable media auto play
qjia7 Apr 22, 2014
050c8e8
[Android] Add Resource loading filter for MediaPlayer
xingnan Feb 7, 2014
fc5f877
[Extensions] Build glib message pump on Ozone
Jun 9, 2014
ddc8afd
[Tizen] Enable blink::OrientationEvent by default
Jun 13, 2014
4cf450b
[Extensions] Build glib message pump on Ozone
Jun 9, 2014
78af660
[Android] Fix the crash of GetUserMedia
xingnan Jun 19, 2014
6ef9f1e
[Android] Add a new listener to listen the first rendered frame
kurli Jul 7, 2014
5b0d05e
Provide a ScreenOrientationDispatcherHost getter.
Jul 7, 2014
b07aa5a
[Temp][Tizen] Temporarily remove ozone dependency for gl
qjia7 Jul 28, 2014
1e9ec67
[Android] Use TextureView as an alternative compositing surface target
Aug 12, 2014
37a417b
[Android] Only initialize ContentReadbackHandler in onNativeLibraryLo…
Aug 15, 2014
b3ee42b
Introduce vaLockBuffer APIs in libva.
shaochangbin Sep 5, 2014
4b39b82
[Tizen] Add Tizen Murphy resource policy daemon integration
Sep 11, 2014
6b058e7
[Tizen] Make content fit to the viewport
Sep 24, 2014
fadb9cd
[Temp] Backport https://codereview.chromium.org/560553007 from upstream
darktears Sep 29, 2014
ea8ab58
[Temp] Apply ozone-wayland's 0008-Fix-crash-when-switching-to-console…
Oct 1, 2014
4551591
.gitignore: Ignore src/third_party/khronos/CL.
rakuco Oct 7, 2014
7d1bc09
.gitignore: Ignore src/third_party/webcl.
junmin-zhu Oct 8, 2014
c2b8239
[TIZEN] Set app ID and media class properties for the audio streams.
Nov 5, 2014
eb9502a
Revert Tizen changes to support changing the system location provider.
rakuco Nov 28, 2014
2845f58
Fix GPU process crash
Nov 28, 2014
64cb021
PlatformWindow: Add needed support in PlatformWindow.
kalyankondapally Oct 20, 2014
e36755c
Merge pull request #219 from qjia7/platform_window
darktears Dec 12, 2014
2ea694a
Fix the coding style after 64cb021.
rakuco Dec 19, 2014
9f1cfce
Merge pull request #221 from rakuco/platformwindow-style-fix
rakuco Dec 19, 2014
8175fa4
[Tizen] Set the resource set "name" property instead of "appid"
Dec 30, 2014
5557d51
Merge pull request #224 from nagineni/murphy_proplist
rakuco Dec 30, 2014
6053300
[Tizen] Get visibilityChange events fired by window focus change.
Jan 13, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
783 changes: 783 additions & 0 deletions .DEPS.git

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ v8.log
/net/testserver.log
/out
/out_*
/ozone
/ppapi/native_client/nacl_irt.xml
/ppapi/native_client/ppapi_lib.xml
/ppapi/native_client/src/trusted/plugin/ppGoogleNaClPluginChrome.xml
Expand Down Expand Up @@ -308,6 +309,7 @@ v8.log
/third_party/jsr-305/src
/third_party/junit/src
/third_party/khronos_glcts
/third_party/khronos/CL
/third_party/leveldatabase/src
/third_party/leveldb
/third_party/libaddressinput/src
Expand Down Expand Up @@ -377,6 +379,7 @@ v8.log
/third_party/v8-i18n
/third_party/valgrind
/third_party/v4l2capture
/third_party/webcl
/third_party/webdriver/pylib
/third_party/webdriver/python/selenium
/third_party/webgl
Expand Down Expand Up @@ -434,3 +437,4 @@ v8.log
/win8/metro_driver/metro_driver_version_resources.xml
/x86-generic_out/
/xcodebuild
/xwalk
1,468 changes: 685 additions & 783 deletions DEPS

Large diffs are not rendered by default.

52 changes: 47 additions & 5 deletions android_webview/browser/aw_browser_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
#include "android_webview/browser/jni_dependency_factory.h"
#include "android_webview/browser/net/aw_url_request_context_getter.h"
#include "android_webview/browser/net/init_native_callback.h"
#include "base/base_paths_android.h"
#include "base/bind.h"
#include "base/path_service.h"
#include "base/prefs/pref_registry_simple.h"
#include "base/prefs/pref_service.h"
#include "base/prefs/pref_service_factory.h"
Expand All @@ -28,6 +30,7 @@
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
#include "net/cookies/cookie_store.h"
#include "net/proxy/proxy_config_service_android.h"
#include "net/proxy/proxy_service.h"

using base::FilePath;
Expand All @@ -43,13 +46,34 @@ namespace {
void HandleReadError(PersistentPrefStore::PrefReadError error) {
}

void DeleteDirRecursively(const base::FilePath& path) {
if (!base::DeleteFile(path, true)) {
// Deleting a non-existent file is considered successful, so this will
// trigger only in case of real errors.
LOG(WARNING) << "Failed to delete " << path.AsUTF8Unsafe();
}
}

AwBrowserContext* g_browser_context = NULL;

net::ProxyConfigService* CreateProxyConfigService() {
net::ProxyConfigServiceAndroid* config_service =
static_cast<net::ProxyConfigServiceAndroid*>(
net::ProxyService::CreateSystemProxyConfigService(
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
nullptr /* Ignored on Android */ ));
config_service->set_exclude_pac_url(true);
return config_service;
}

} // namespace

// Data reduction proxy is disabled by default.
bool AwBrowserContext::data_reduction_proxy_enabled_ = false;

// Delete the legacy cache dir (in the app data dir) in 10 seconds after init.
int AwBrowserContext::legacy_cache_removal_delay_ms_ = 10000;

AwBrowserContext::AwBrowserContext(
const FilePath path,
JniDependencyFactory* native_factory)
Expand Down Expand Up @@ -102,6 +126,11 @@ void AwBrowserContext::SetDataReductionProxyEnabled(bool enabled) {
proxy_settings->SetDataReductionProxyEnabled(data_reduction_proxy_enabled_);
}

// static
void AwBrowserContext::SetLegacyCacheRemovalDelayForTest(int delay_ms) {
legacy_cache_removal_delay_ms_ = delay_ms;
}

void AwBrowserContext::PreMainMessageLoopRun() {
cookie_store_ = CreateCookieStore(this);
data_reduction_proxy_settings_.reset(
Expand All @@ -112,10 +141,7 @@ void AwBrowserContext::PreMainMessageLoopRun() {
data_reduction_proxy_config_service(
new DataReductionProxyConfigService(
scoped_ptr<net::ProxyConfigService>(
net::ProxyService::CreateSystemProxyConfigService(
BrowserThread::GetMessageLoopProxyForThread(
BrowserThread::IO),
NULL /* Ignored on Android */)).Pass()));
CreateProxyConfigService()).Pass()));
if (data_reduction_proxy_settings_.get()) {
data_reduction_proxy_configurator_.reset(
new data_reduction_proxy::DataReductionProxyConfigTracker(
Expand All @@ -127,8 +153,24 @@ void AwBrowserContext::PreMainMessageLoopRun() {
data_reduction_proxy_configurator_.get());
}

FilePath cache_path;
const FilePath fallback_cache_dir =
GetPath().Append(FILE_PATH_LITERAL("Cache"));
if (PathService::Get(base::DIR_CACHE, &cache_path)) {
cache_path = cache_path.Append(
FILE_PATH_LITERAL("org.chromium.android_webview"));
// Delay the legacy dir removal to not impact startup performance.
BrowserThread::PostDelayedTask(
BrowserThread::FILE, FROM_HERE,
base::Bind(&DeleteDirRecursively, fallback_cache_dir),
base::TimeDelta::FromMilliseconds(legacy_cache_removal_delay_ms_));
} else {
cache_path = fallback_cache_dir;
LOG(WARNING) << "Failed to get cache directory for Android WebView. "
<< "Using app data directory as a fallback.";
}
url_request_context_getter_ =
new AwURLRequestContextGetter(GetPath(),
new AwURLRequestContextGetter(cache_path,
cookie_store_.get(),
data_reduction_proxy_config_service.Pass());

Expand Down
5 changes: 5 additions & 0 deletions android_webview/browser/aw_browser_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class AwBrowserContext : public content::BrowserContext,
content::WebContents* web_contents);

static void SetDataReductionProxyEnabled(bool enabled);
static void SetLegacyCacheRemovalDelayForTest(int delay_ms);

// Maps to BrowserMainParts::PreMainMessageLoopRun.
void PreMainMessageLoopRun();
Expand Down Expand Up @@ -120,6 +121,10 @@ class AwBrowserContext : public content::BrowserContext,
void CreateDataReductionProxyStatisticsIfNecessary();
static bool data_reduction_proxy_enabled_;

// Delay, in milliseconds, before removing the legacy cache dir.
// This is non-const for testing purposes.
static int legacy_cache_removal_delay_ms_;

// The file path where data for this context is persisted.
base::FilePath context_storage_path_;

Expand Down
23 changes: 12 additions & 11 deletions android_webview/browser/net/aw_url_request_context_getter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ scoped_ptr<net::URLRequestJobFactory> CreateJobFactory(
} // namespace

AwURLRequestContextGetter::AwURLRequestContextGetter(
const base::FilePath& partition_path, net::CookieStore* cookie_store,
const base::FilePath& cache_path, net::CookieStore* cookie_store,
scoped_ptr<data_reduction_proxy::DataReductionProxyConfigService>
config_service)
: partition_path_(partition_path),
: cache_path_(cache_path),
cookie_store_(cookie_store),
net_log_(new net::NetLog()) {
data_reduction_proxy_config_service_ = config_service.Pass();
Expand All @@ -200,17 +200,18 @@ void AwURLRequestContextGetter::InitializeURLRequestContext() {
#if !defined(DISABLE_FTP_SUPPORT)
builder.set_ftp_enabled(false); // Android WebView does not support ftp yet.
#endif
if (data_reduction_proxy_config_service_.get()) {
builder.set_proxy_config_service(
data_reduction_proxy_config_service_.release());
} else {
builder.set_proxy_config_service(
net::ProxyService::CreateSystemProxyConfigService(
GetNetworkTaskRunner(), NULL /* Ignored on Android */ ));
}
DCHECK(data_reduction_proxy_config_service_.get());
// Android provides a local HTTP proxy that handles all the proxying.
// Create the proxy without a resolver since we rely on this local HTTP proxy.
// TODO(sgurun) is this behavior guaranteed through SDK?
builder.set_proxy_service(
net::ProxyService::CreateWithoutProxyResolver(
data_reduction_proxy_config_service_.release(),
net_log_.get()));
builder.set_accept_language(net::HttpUtil::GenerateAcceptLanguageHeader(
AwContentBrowserClient::GetAcceptLangsImpl()));
builder.set_net_log(net_log_.get());
builder.set_channel_id_enabled(false);
ApplyCmdlineOverridesToURLRequestContextBuilder(&builder);

url_request_context_.reset(builder.Build());
Expand All @@ -225,7 +226,7 @@ void AwURLRequestContextGetter::InitializeURLRequestContext() {
new net::HttpCache::DefaultBackend(
net::DISK_CACHE,
net::CACHE_BACKEND_SIMPLE,
partition_path_.Append(FILE_PATH_LITERAL("Cache")),
cache_path_,
20 * 1024 * 1024, // 20M
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::CACHE)));

Expand Down
4 changes: 2 additions & 2 deletions android_webview/browser/net/aw_url_request_context_getter.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AwNetworkDelegate;
class AwURLRequestContextGetter : public net::URLRequestContextGetter {
public:
AwURLRequestContextGetter(
const base::FilePath& partition_path,
const base::FilePath& cache_path,
net::CookieStore* cookie_store,
scoped_ptr<data_reduction_proxy::DataReductionProxyConfigService>
config_service);
Expand Down Expand Up @@ -72,7 +72,7 @@ class AwURLRequestContextGetter : public net::URLRequestContextGetter {

void InitializeURLRequestContext();

const base::FilePath partition_path_;
const base::FilePath cache_path_;
scoped_refptr<net::CookieStore> cookie_store_;
scoped_ptr<net::NetLog> net_log_;
scoped_ptr<net::URLRequestContext> url_request_context_;
Expand Down
3 changes: 3 additions & 0 deletions android_webview/browser/scoped_app_gl_state_restore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ ScopedAppGLStateRestoreImpl::ScopedAppGLStateRestoreImpl(
glGetVertexAttribfv(
i, GL_CURRENT_VERTEX_ATTRIB, vertex_attrib_[i].current_vertex_attrib);
}

// Android 5.0.0 specific qualcomm workaround. See crbug.com/434570.
glBindRenderbufferEXT(GL_RENDERBUFFER, 0);
DCHECK(ClearGLErrors(false, NULL));
}

Expand Down
23 changes: 23 additions & 0 deletions android_webview/common/aw_crash_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

#include <android/log.h>
#include <signal.h>
#include <sys/prctl.h>
#include <sys/syscall.h>
#include <unistd.h>

#include "base/logging.h"

Expand All @@ -27,6 +30,14 @@ void AwExceptionHandler(int sig, siginfo_t* info, void* uc) {
if (g_crash_msg_ptr != NULL)
__android_log_write(ANDROID_LOG_ERROR, "chromium", g_crash_msg_ptr);

// Detect if some buggy code in the embedder did reinstall the handler using
// signal() instead of sigaction() (which would cause |info| to be invalid).
struct sigaction cur_handler;
if (sigaction(sig, NULL, &cur_handler) != 0 ||
(cur_handler.sa_flags & SA_SIGINFO) == 0) {
info = NULL;
}

// We served our purpose. Now restore the old crash handlers. If the embedder
// did register a custom crash handler, it will be invoked by the kernel after
// this function returns. Otherwise, this will end up invoking the default
Expand All @@ -36,6 +47,17 @@ void AwExceptionHandler(int sig, siginfo_t* info, void* uc) {
signal(kExceptionSignals[i], SIG_DFL);
}
}

if ((info != NULL && info->si_pid) || sig == SIGABRT) {
// This signal was triggered by somebody sending us the signal with kill().
// In order to retrigger it, we have to queue a new signal by calling
// kill() ourselves. The special case (si_pid == 0 && sig == SIGABRT) is
// due to the kernel sending a SIGABRT from a user request via SysRQ.
if (syscall(__NR_tgkill, getpid(), syscall(__NR_gettid), sig) < 0) {
// If we failed to kill ourselves resort to terminating uncleanly.
exit(1);
}
}
}

} // namespace
Expand Down Expand Up @@ -65,6 +87,7 @@ void RegisterCrashHandler(const std::string& version) {
memset(&sa, 0, sizeof(sa));
sigemptyset(&sa.sa_mask);

// Mask all exception signals when we're handling one of them.
for (uint32_t i = 0; i < arraysize(kExceptionSignals); ++i)
sigaddset(&sa.sa_mask, kExceptionSignals[i]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
* Wrapper for the steps needed to initialize the java and native sides of webview chromium.
*/
public abstract class AwBrowserProcess {
private static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "webview";
public static final String PRIVATE_DATA_DIRECTORY_SUFFIX = "webview";

private static final String TAG = "AwBrowserProcess";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ private static class FullScreenTransitionsState {
private final InternalAccessDelegate mInitialInternalAccessAdapter;
private final AwViewMethods mInitialAwViewMethods;
private FullScreenView mFullScreenView;
/** Whether the initial container view was focused when we entered fullscreen */
private boolean mWasInitialContainerViewFocused;

private FullScreenTransitionsState(ViewGroup initialContainerView,
InternalAccessDelegate initialInternalAccessAdapter,
Expand All @@ -285,8 +287,14 @@ private FullScreenTransitionsState(ViewGroup initialContainerView,
mInitialAwViewMethods = initialAwViewMethods;
}

private void enterFullScreen(FullScreenView fullScreenView) {
private void enterFullScreen(FullScreenView fullScreenView,
boolean wasInitialContainerViewFocused) {
mFullScreenView = fullScreenView;
mWasInitialContainerViewFocused = wasInitialContainerViewFocused;
}

private boolean wasInitialContainerViewFocused() {
return mWasInitialContainerViewFocused;
}

private void exitFullScreen() {
Expand Down Expand Up @@ -663,8 +671,14 @@ View enterFullScreen() {

// In fullscreen mode FullScreenView owns the AwViewMethodsImpl and AwContents
// a NullAwViewMethods.
FullScreenView fullScreenView = new FullScreenView(mContext, mAwViewMethods);
mFullScreenTransitionsState.enterFullScreen(fullScreenView);
FullScreenView fullScreenView = new FullScreenView(mContext, mAwViewMethods, this);
fullScreenView.setFocusable(true);
fullScreenView.setFocusableInTouchMode(true);
boolean wasInitialContainerViewFocused = mContainerView.isFocused();
if (wasInitialContainerViewFocused) {
fullScreenView.requestFocus();
}
mFullScreenTransitionsState.enterFullScreen(fullScreenView, wasInitialContainerViewFocused);
mAwViewMethods = new NullAwViewMethods(this, mInternalAccessAdapter, mContainerView);
mContainerView.removeOnLayoutChangeListener(mLayoutChangeListener);
fullScreenView.addOnLayoutChangeListener(mLayoutChangeListener);
Expand Down Expand Up @@ -715,6 +729,10 @@ void exitFullScreen() {
setInternalAccessAdapter(mFullScreenTransitionsState.getInitialInternalAccessDelegate());
setContainerView(initialContainerView);

// Return focus to the WebView.
if (mFullScreenTransitionsState.wasInitialContainerViewFocused()) {
mContainerView.requestFocus();
}
mFullScreenTransitionsState.exitFullScreen();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public static void registerCrashHandler(String version) {
nativeRegisterCrashHandler(version);
}

public static void setLegacyCacheRemovalDelayForTest(long timeoutMs) {
nativeSetLegacyCacheRemovalDelayForTest(timeoutMs);
}

//--------------------------------------------------------------------------------------------
// Native methods
//--------------------------------------------------------------------------------------------
Expand All @@ -90,4 +94,5 @@ public static void registerCrashHandler(String version) {
private static native String nativeGetUnreachableWebDataUrl();
private static native void nativeSetRecordFullDocument(boolean recordFullDocument);
private static native void nativeRegisterCrashHandler(String version);
private static native void nativeSetLegacyCacheRemovalDelayForTest(long timeoutMs);
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@
public class FullScreenView extends FrameLayout {

private AwViewMethods mAwViewMethods;
private final AwContents mAwContents;
private InternalAccessAdapter mInternalAccessAdapter;

public FullScreenView(Context context, AwViewMethods awViewMethods) {
public FullScreenView(Context context, AwViewMethods awViewMethods,
AwContents awContents) {
super(context);
setAwViewMethods(awViewMethods);
mAwContents = awContents;
mInternalAccessAdapter = new InternalAccessAdapter();
}

Expand Down Expand Up @@ -73,6 +76,12 @@ public boolean onKeyUp(final int keyCode, final KeyEvent event) {

@Override
public boolean dispatchKeyEvent(final KeyEvent event) {
if (event.getKeyCode() == KeyEvent.KEYCODE_BACK
&& event.getAction() == KeyEvent.ACTION_UP
&& mAwContents.isFullScreen()) {
mAwContents.requestExitFullscreen();
return true;
}
return mAwViewMethods.dispatchKeyEvent(event);
}

Expand Down
Loading