summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources
diff options
context:
space:
mode:
authordhg@chromium.org <dhg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-24 00:00:50 +0000
committerdhg@chromium.org <dhg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-24 00:00:50 +0000
commit1ce78d4ea96c1b980d26e60cd19f756ca6765e01 (patch)
treed7b7f65e77ec0080a93e5b1bab1e80a6e50fdee5 /chrome/browser/resources
parente64acae98b10447395df572775c807b985d972a8 (diff)
downloadchromium_src-1ce78d4ea96c1b980d26e60cd19f756ca6765e01.zip
chromium_src-1ce78d4ea96c1b980d26e60cd19f756ca6765e01.tar.gz
chromium_src-1ce78d4ea96c1b980d26e60cd19f756ca6765e01.tar.bz2
adding fullscreen support to the mediaplayer.
Tested by loading on device and clicking fullscreen button. (needs most recent codebase) Review URL: http://codereview.chromium.org/1034002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42408 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r--chrome/browser/resources/mediaplayer.html42
1 files changed, 38 insertions, 4 deletions
diff --git a/chrome/browser/resources/mediaplayer.html b/chrome/browser/resources/mediaplayer.html
index d03c138..e6f7f09 100644
--- a/chrome/browser/resources/mediaplayer.html
+++ b/chrome/browser/resources/mediaplayer.html
@@ -8,7 +8,7 @@
-webkit-appearance: slider-horizontal;
position: absolute;
left: 93px;
- right:90px;
+ right:120px;
bottom:-2px;
height: 30px;
}
@@ -22,7 +22,7 @@ body {
-webkit-appearance: slider-horizontal;
position: absolute;
left: 93px;
- right:90px;
+ right:120px;
bottom:-2px;
height: 30px;
}
@@ -100,6 +100,7 @@ body {
height: 80px;
width: 30px;
right: 30px;
+ z-index: 99999;
background: black;
background: -webkit-gradient(linear,
left top,
@@ -114,6 +115,7 @@ body {
height: 80px;
width: 30px;
right: 30px;
+ z-index: 99999;
background: black;
background: -webkit-gradient(linear,
left top,
@@ -122,6 +124,32 @@ body {
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 @@ body {
}
.duration {
- right: 58px;
+ right: 88px;
color: white;
position: absolute;
top: 7px;
@@ -467,6 +495,12 @@ function setupPlaybackControls() {
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 playAudioFile(uri) {
};
function toggleFullscreen() {
-
+ chrome.send('toggleFullscreen', ['']);
};
function onMetadataAvail() {