Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: chrome/test/data/extensions/api_test/tab_capture/experimental/fullscreen_test.js

Issue 17354003: Hook up HTML5 fullscreen video notifications to tabCapture API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable for Aura and Linux Release, tested manually. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/extensions/api_test/tab_capture/experimental/fullscreen_test.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 var mediaStream = null;
6 var events = [];
7
8 chrome.tabCapture.onStatusChanged.addListener(function(info) {
9 if (info.status == 'active') {
10 events.push(info.fullscreen);
11 if (events.length == 3) {
12 chrome.test.assertFalse(events[0]);
13 chrome.test.assertTrue(events[1]);
14 chrome.test.assertFalse(events[2]);
15 mediaStream.stop();
16 chrome.test.succeed();
17 }
18 }
19 });
20
21 chrome.tabCapture.capture({audio: true, video: true}, function(stream) {
22 chrome.test.assertTrue(!!stream);
23 mediaStream = stream;
24
25 chrome.test.notifyPass();
26 chrome.test.sendMessage('ready1', function() {
27 chrome.test.sendMessage('ready2', function() {});
28 });
29 });
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/tab_capture/experimental/fullscreen_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698