-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Łukasz Bendig
committed
Sep 4, 2017
1 parent
fdfa571
commit 458404f
Showing
11,870 changed files
with
916,999 additions
and
666,028 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
lgpl/sources/chromium/src/base/third_party/xdg_mime/function_casts.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
diff --git a/base/third_party/xdg_mime/xdgmime.c b/base/third_party/xdg_mime/xdgmime.c | ||
index 6dc58c253fa2..f340fcefabb4 100644 | ||
--- a/base/third_party/xdg_mime/xdgmime.c | ||
+++ b/base/third_party/xdg_mime/xdgmime.c | ||
@@ -136,7 +136,7 @@ xdg_dir_time_list_free (XdgDirTimeList *list) | ||
} | ||
|
||
static int | ||
-xdg_mime_init_from_directory (const char *directory) | ||
+xdg_mime_init_from_directory (const char *directory, void *user_data) | ||
{ | ||
char *file_name; | ||
struct stat st; | ||
@@ -340,8 +340,9 @@ xdg_check_file (const char *file_path, | ||
|
||
static int | ||
xdg_check_dir (const char *directory, | ||
- int *invalid_dir_list) | ||
+ void *user_data) | ||
{ | ||
+ int *invalid_dir_list = user_data; | ||
int invalid, exists; | ||
char *file_name; | ||
|
||
@@ -398,8 +399,7 @@ xdg_check_dirs (void) | ||
for (list = dir_time_list; list; list = list->next) | ||
list->checked = XDG_CHECKED_UNCHECKED; | ||
|
||
- xdg_run_command_on_dirs ((XdgDirectoryFunc) xdg_check_dir, | ||
- &invalid_dir_list); | ||
+ xdg_run_command_on_dirs (xdg_check_dir, &invalid_dir_list); | ||
|
||
if (invalid_dir_list) | ||
return TRUE; | ||
@@ -455,8 +455,7 @@ xdg_mime_init (void) | ||
icon_list = _xdg_mime_icon_list_new (); | ||
generic_icon_list = _xdg_mime_icon_list_new (); | ||
|
||
- xdg_run_command_on_dirs ((XdgDirectoryFunc) xdg_mime_init_from_directory, | ||
- NULL); | ||
+ xdg_run_command_on_dirs (xdg_mime_init_from_directory, NULL); | ||
|
||
need_reread = FALSE; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
lgpl/sources/chromium/src/chrome/test/data/ads_observer/docwrite_provisional_frame.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<html> | ||
<iframe id="slow_frame" name="google_ads_iframe" src="/slow?100"></iframe> | ||
|
||
<script> | ||
window.addEventListener('message', function(e) { | ||
domAutomationController.setAutomationId(0); | ||
window.domAutomationController.send(e.data); | ||
}); | ||
|
||
// slow takes 100 seconds to load, plenty of time to overwrite the | ||
// provisional load. | ||
let iframe = document.getElementById("slow_frame"); | ||
let doc = iframe.contentDocument; | ||
|
||
doc.open(); | ||
doc.write("<html>Rewritten. <img src=pixel.png> <img src=pixel2.png> <img src=pixel3.png onload='parent.postMessage("loaded", "*");'></html>"); | ||
doc.close(); | ||
</script> | ||
|
||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions
11
lgpl/sources/chromium/src/chrome/test/data/android/appindexing/json-ld.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>JSON-LD for AppIndexing Test</title> | ||
<script type="application/ld+json"> | ||
{"@context":"http://schema.org","@type":"Hotel","name":"Hotel Name"} | ||
</script> | ||
</head> | ||
<body> | ||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
...ces/chromium/src/chrome/test/data/android/content_view_focus/content_view_blur_focus.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<html> | ||
<head> | ||
<body> | ||
<script> | ||
window.onblur = function() { document.title='blurred' }; | ||
window.onfocus = function() { document.title='focused' }; | ||
document.title = 'initial'; | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-8.83 KB
(68%)
.../render_tests/ArticleSnippetsTest.long_minimal_snippet_narrow.Nexus_5X.port.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.79 KB
(110%)
...st/data/android/render_tests/ArticleSnippetsTest.long_snippet.Nexus_5X.port.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5.11 KB
(79%)
.../android/render_tests/ArticleSnippetsTest.long_snippet_narrow.Nexus_5X.port.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+214 Bytes
(100%)
...data/android/render_tests/ArticleSnippetsTest.minimal_snippet.Nexus_5X.port.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+79 Bytes
(100%)
...render_tests/ArticleSnippetsTest.short_minimal_snippet_narrow.Nexus_5X.port.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+45 Bytes
(100%)
...t/data/android/render_tests/ArticleSnippetsTest.short_snippet.Nexus_5X.port.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-521 Bytes
(97%)
...android/render_tests/ArticleSnippetsTest.short_snippet_narrow.Nexus_5X.port.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+28.6 KB
(140%)
...e/test/data/android/render_tests/ArticleSnippetsTest.snippets.Nexus_5X.port.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+15.3 KB
(120%)
...data/android/render_tests/ArticleSnippetsTest.snippets_narrow.Nexus_5X.port.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+268 Bytes
(100%)
.../chrome/test/data/android/render_tests/NewTabPageTest.fakebox.Nexus_5X.port.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+114 Bytes
(100%)
...me/test/data/android/render_tests/NewTabPageTest.most_visited.Nexus_5X.port.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-199 Bytes
(100%)
...me/test/data/android/render_tests/NewTabPageTest.new_tab_page.Nexus_5X.port.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+225 Bytes
(100%)
...ata/android/render_tests/NewTabPageTest.new_tab_page_scrolled.Nexus_5X.port.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions
15
.../chromium/src/chrome/test/data/android/webvr_instrumentation/html/generic_webvr_page.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!doctype html> | ||
<!-- | ||
WebVR page without any code specific to one test | ||
--> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="../resources/webvr_e2e.css"> | ||
</head> | ||
<body> | ||
<canvas id="webgl-canvas"></canvas> | ||
<script src="../../../../../../third_party/WebKit/LayoutTests/resources/testharness.js"></script> | ||
<script src="../resources/webvr_e2e.js"></script> | ||
<script src="../resources/webvr_boilerplate.js"></script> | ||
</body> | ||
</html> |
53 changes: 53 additions & 0 deletions
53
.../data/android/webvr_instrumentation/html/test_device_capabilities_match_expectations.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!doctype html> | ||
<!-- | ||
Tests that the reported device capabilities match expectations. | ||
--> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="../resources/webvr_e2e.css"> | ||
</head> | ||
<body> | ||
<canvas id="webgl-canvas"></canvas> | ||
<script src="../../../../../../third_party/WebKit/LayoutTests/resources/testharness.js"></script> | ||
<script src="../resources/webvr_e2e.js"></script> | ||
<script src="../resources/webvr_boilerplate.js"></script> | ||
<script> | ||
// All the current test devices have the same expectations, but that will | ||
// change with additional device support, especially desktop. | ||
var android_expectation = { | ||
"isPresenting": false, | ||
"capabilities": { | ||
"hasPosition": false, | ||
"hasExternalDisplay": false, | ||
"canPresent": true, | ||
"maxLayers": 1, | ||
}, | ||
} | ||
var expectations = { | ||
"angler": android_expectation, // Nexus 6P | ||
"bullhead": android_expectation, // Nexus 5X | ||
"hammerhead": android_expectation, // Nexus 5 | ||
"marlin": android_expectation, // Pixel XL | ||
"sailfish": android_expectation, // Pixel | ||
} | ||
var t = async_test("Device capabilities match expectations"); | ||
function stepCheckDeviceCapabilities(device) { | ||
if (!(device in expectations)) { | ||
t.step_func_done( () => { | ||
assert_unreached("Given device " + device + " not in expectations"); | ||
})(); | ||
return; | ||
} | ||
let expectation = expectations[device]; | ||
t.step_func_done( () => { | ||
assert_equals(vrDisplay["isPresenting"], expectation["isPresenting"]); | ||
for (var capability in expectation["capabilities"]) { | ||
assert_equals(vrDisplay["capabilities"][capability], | ||
expectation["capabilities"][capability], | ||
capability); | ||
} | ||
})(); | ||
} | ||
</script> | ||
</body> | ||
</html> |
9 changes: 9 additions & 0 deletions
9
...mium/src/chrome/test/data/android/webvr_instrumentation/html/test_navigation_2d_page.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!doctype html> | ||
<!-- 2D page to test transitions. --> | ||
<html> | ||
<body> | ||
<input type="checkbox" onclick="setFullscreen(this)" id="fullscreen">Fullscreen | ||
<script src="../resources/webvr_e2e.js"></script> | ||
<script src="../resources/navigation_e2e.js"></script> | ||
</body> | ||
</html> |
12 changes: 12 additions & 0 deletions
12
...m/src/chrome/test/data/android/webvr_instrumentation/html/test_navigation_webvr_page.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!doctype html> | ||
<!-- WebVR page to test transitions. --> | ||
<html> | ||
<body> | ||
<input type="checkbox" onclick="setFullscreen(this)" id="fullscreen">Fullscreen | ||
<canvas id="webgl-canvas"></canvas> | ||
<script src="../../../../../../third_party/WebKit/LayoutTests/resources/testharness.js"></script> | ||
<script src="../resources/webvr_e2e.js"></script> | ||
<script src="../resources/webvr_boilerplate.js"></script> | ||
<script src="../resources/navigation_e2e.js"></script> | ||
</body> | ||
</html> |
20 changes: 20 additions & 0 deletions
20
...chrome/test/data/android/webvr_instrumentation/html/test_nfc_fires_vrdisplayactivate.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!doctype html> | ||
<!-- | ||
Tests that scanning the Daydream View NFC tag on supported devices fires the | ||
vrdisplayactivate event | ||
--> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="../resources/webvr_e2e.css"> | ||
</head> | ||
<body> | ||
<canvas id="webgl-canvas"></canvas> | ||
<script src="../../../../../../third_party/WebKit/LayoutTests/resources/testharness.js"></script> | ||
<script src="../resources/webvr_e2e.js"></script> | ||
<script> | ||
var t = async_test("NFC scan fires the vrdisplayactivate event"); | ||
window.addEventListener("vrdisplayactivate", () => {t.done();}, false); | ||
// NFC scan triggered after page load | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...rc/chrome/test/data/android/webvr_instrumentation/html/test_presentation_locks_focus.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!doctype html> | ||
<!-- | ||
Tests that when a screen taps causes a frame that isn't presenting to gain | ||
focus, that the presenting frame still receives input. | ||
--> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="../resources/webvr_e2e.css"> | ||
</head> | ||
<body> | ||
<canvas id="webgl-canvas"></canvas> | ||
<script src="../../../../../../third_party/WebKit/LayoutTests/resources/testharness.js"></script> | ||
<script src="../resources/webvr_e2e.js"></script> | ||
<script src="../resources/webvr_boilerplate.js"></script> | ||
<script> | ||
var t = async_test("Focus is locked to presentation"); | ||
var rafCount = 0; | ||
window.onfocus = function() { | ||
onAnimationFrameCallback = null; | ||
setTimeout(function() { | ||
document.getElementById('externalframe').contentWindow.focus(); | ||
}, 1000); | ||
}; | ||
window.onblur = function() { | ||
onAnimationFrameCallback = function() { | ||
if (rafCount = 3) { | ||
t.done(); | ||
} | ||
rafCount++; | ||
} | ||
} | ||
</script> | ||
<iframe id="externalframe" width="1" height="1" src="about:blank" /> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
.../data/android/webvr_instrumentation/html/test_screen_taps_not_registered_on_daydream.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!doctype html> | ||
<!-- | ||
Tests that screen taps aren't registered while in VR when viewer is | ||
Daydream View | ||
--> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="../resources/webvr_e2e.css"> | ||
</head> | ||
<body> | ||
<canvas id="webgl-canvas"></canvas> | ||
<script src="../../../../../../third_party/WebKit/LayoutTests/resources/testharness.js"></script> | ||
<script src="../resources/webvr_e2e.js"></script> | ||
<script src="../resources/webvr_boilerplate.js"></script> | ||
<script> | ||
var t = async_test("Screen taps not registered when in VR w/ DD View"); | ||
window.addEventListener("vrdisplaypresentchange", | ||
() => {finishJavaScriptStep();}, false); | ||
var numTaps = 0; | ||
webglCanvas.addEventListener("click", () => {numTaps++;}, false); | ||
|
||
function stepVerifyNoInitialTaps() { | ||
t.step( () => { | ||
assert_equals(numTaps, 0, "No initial taps"); | ||
}); | ||
finishJavaScriptStep(); | ||
} | ||
|
||
function stepVerifyNoAdditionalTaps() { | ||
t.step_func_done( () => { | ||
// We expect 1 tap from entering VR | ||
assert_equals(numTaps, 1, | ||
"Only one tap registered after two taps given"); | ||
})(); | ||
} | ||
|
||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.