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

Unified Diff: chrome/browser/resources/mediaplayer.html

Issue 1034002: adding fullscreen support to the mediaplayer (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/dom_ui/mediaplayer_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/mediaplayer.html
===================================================================
--- chrome/browser/resources/mediaplayer.html (revision 41726)
+++ chrome/browser/resources/mediaplayer.html (working copy)
@@ -8,7 +8,7 @@
-webkit-appearance: slider-horizontal;
position: absolute;
left: 93px;
- right:90px;
+ right:120px;
bottom:-2px;
height: 30px;
}
@@ -22,7 +22,7 @@
-webkit-appearance: slider-horizontal;
position: absolute;
left: 93px;
- right:90px;
+ right:120px;
bottom:-2px;
height: 30px;
}
@@ -100,6 +100,7 @@
height: 80px;
width: 30px;
right: 30px;
+ z-index: 99999;
background: black;
background: -webkit-gradient(linear,
left top,
@@ -114,6 +115,7 @@
height: 80px;
width: 30px;
right: 30px;
+ z-index: 99999;
background: black;
background: -webkit-gradient(linear,
left top,
@@ -122,6 +124,32 @@
to(#070707));
}
+.audio.fullscreen {
+ position:absolute;
+ right: 60px;
+ cursor: pointer;
+ bottom:0;
+ z-index: 9999;
+ width: 30px;
+ background: url('../../app/theme/mediaplayer_full_screen.png');
+ background-repeat: no-repeat;
+ background-position: 4px 4px;
+ height: 30px;
+}
+
+.video.fullscreen {
+ position:absolute;
+ right: 60px;
+ cursor: pointer;
+ bottom:0;
+ z-index: 9999;
+ width: 30px;
+ background: url('../../app/theme/mediaplayer_full_screen.png');
+ background-repeat: no-repeat;
+ background-position: 4px 4px;
+ height: 30px;
+}
+
.volumeslider {
-webkit-appearance: slider-vertical;
position: absolute;
@@ -191,7 +219,7 @@
}
.duration {
- right: 58px;
+ right: 88px;
color: white;
position: absolute;
top: 7px;
@@ -467,6 +495,12 @@
soundbutton.onclick = toggleVolumeVisible;
element.appendChild(soundbutton);
+ var fullscreen = document.createElement('div');
+ fullscreen.id = 'fullscreen';
+ fullscreen.className = controlsclass + ' fullscreen';
+ fullscreen.onclick = toggleFullscreen;
+ element.appendChild(fullscreen);
+
var volume = document.createElement('div');
volume.id = 'volume';
volume.className = controlsclass + ' volume';
@@ -509,7 +543,7 @@
};
function toggleFullscreen() {
-
+ chrome.send('toggleFullscreen', ['']);
};
function onMetadataAvail() {
« no previous file with comments | « chrome/browser/dom_ui/mediaplayer_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698