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

Side by Side Diff: chrome/test/data/extensions/fullscreen_app/check_media_feature.js

Issue 1070423003: Set display mode for extensions::AppWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@display_mode
Patch Set: Added a reference to bug. Created 5 years, 8 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
OLDNEW
(Empty)
1 // Copyright 2015 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 var fullscreen = matchMedia( '(display-mode: fullscreen)' );
5 var p = document.createElement("p");
6 document.body.appendChild(p);
7 if (fullscreen.matches) {
8 p.innerHTML = "(display-mode: fullscreen) matches.";
9 p.style.color = "green";
10 } else {
11 p.innerHTML = "(display-mode: fullscreen) does not match.";
12 p.style.color = "red";
13 }
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/fullscreen_app/blank.html ('k') | extensions/browser/app_window/app_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698