OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/extensions/media_player_extension_api.h" | 5 #include "chrome/browser/extensions/extension_mediaplayer_private_api.h" |
6 | 6 |
7 #include "base/values.h" | 7 #include "base/values.h" |
8 #include "chrome/browser/chromeos/media/media_player.h" | 8 #include "chrome/browser/chromeos/media/media_player.h" |
9 | 9 |
10 static const char kPropertyPath[] = "path"; | 10 static const char kPropertyPath[] = "path"; |
11 static const char kPropertyForce[] = "force"; | 11 static const char kPropertyForce[] = "force"; |
12 static const char kPropertyItems[] = "items"; | 12 static const char kPropertyItems[] = "items"; |
13 static const char kPropertyPosition[] = "position"; | 13 static const char kPropertyPosition[] = "position"; |
14 static const char kPropertyError[] = "error"; | 14 static const char kPropertyError[] = "error"; |
15 static const char kPropertyPendingPlaybackRequest[] = | 15 static const char kPropertyPendingPlaybackRequest[] = |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 bool TogglePlaylistPanelMediaplayerFunction::RunImpl() { | 68 bool TogglePlaylistPanelMediaplayerFunction::RunImpl() { |
69 MediaPlayer::GetInstance()->TogglePlaylistWindowVisible(); | 69 MediaPlayer::GetInstance()->TogglePlaylistWindowVisible(); |
70 return true; | 70 return true; |
71 } | 71 } |
72 | 72 |
73 bool ToggleFullscreenMediaplayerFunction::RunImpl() { | 73 bool ToggleFullscreenMediaplayerFunction::RunImpl() { |
74 MediaPlayer::GetInstance()->ToggleFullscreen(); | 74 MediaPlayer::GetInstance()->ToggleFullscreen(); |
75 return true; | 75 return true; |
76 } | 76 } |
OLD | NEW |