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

Side by Side Diff: chrome/browser/chromeos/media/media_player.cc

Issue 9353010: Add FullscreenController::ToggleFullscreenModeWithExtension (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ Created 8 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/media/media_player.h" 5 #include "chrome/browser/chromeos/media/media_player.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 pending_playback_request_ = false; 170 pending_playback_request_ = false;
171 return result; 171 return result;
172 } 172 }
173 173
174 void MediaPlayer::SetPlaybackRequest() { 174 void MediaPlayer::SetPlaybackRequest() {
175 pending_playback_request_ = true; 175 pending_playback_request_ = true;
176 } 176 }
177 177
178 void MediaPlayer::ToggleFullscreen() { 178 void MediaPlayer::ToggleFullscreen() {
179 if (mediaplayer_browser_) { 179 if (mediaplayer_browser_) {
180 mediaplayer_browser_->ToggleFullscreenMode(false); 180 mediaplayer_browser_->ToggleFullscreenMode();
181 } 181 }
182 } 182 }
183 183
184 void MediaPlayer::PopupPlaylist(Browser* creator) { 184 void MediaPlayer::PopupPlaylist(Browser* creator) {
185 if (playlist_browser_) 185 if (playlist_browser_)
186 return; // Already opened. 186 return; // Already opened.
187 187
188 Profile* profile = BrowserList::GetLastActive()->profile(); 188 Profile* profile = BrowserList::GetLastActive()->profile();
189 playlist_browser_ = Browser::CreateForApp(Browser::TYPE_PANEL, 189 playlist_browser_ = Browser::CreateForApp(Browser::TYPE_PANEL,
190 kMediaPlayerAppName, 190 kMediaPlayerAppName,
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 MediaPlayer::MediaPlayer() 296 MediaPlayer::MediaPlayer()
297 : current_position_(0), 297 : current_position_(0),
298 pending_playback_request_(false), 298 pending_playback_request_(false),
299 playlist_browser_(NULL), 299 playlist_browser_(NULL),
300 mediaplayer_browser_(NULL) { 300 mediaplayer_browser_(NULL) {
301 for (size_t i = 0; i < arraysize(supported_mime_type_list); ++i) { 301 for (size_t i = 0; i < arraysize(supported_mime_type_list); ++i) {
302 supported_mime_types_.insert(supported_mime_type_list[i]); 302 supported_mime_types_.insert(supported_mime_type_list[i]);
303 } 303 }
304 }; 304 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698