OLD | NEW |
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 #ifndef CHROME_BROWSER_CHROMEOS_MEDIA_MEDIA_PLAYER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_MEDIA_MEDIA_PLAYER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_MEDIA_MEDIA_PLAYER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_MEDIA_MEDIA_PLAYER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
11 | 11 |
12 template <typename T> struct DefaultSingletonTraits; | 12 template <typename T> struct DefaultSingletonTraits; |
13 | 13 |
14 class Browser; | 14 class Browser; |
15 class FilePath; | 15 class FilePath; |
16 class GURL; | 16 class GURL; |
17 class Profile; | 17 class Profile; |
18 | 18 |
19 class MediaPlayer { | 19 class MediaPlayer { |
20 public: | 20 public: |
21 typedef std::vector<GURL> UrlVector; | 21 typedef std::vector<GURL> UrlVector; |
22 | 22 |
23 virtual ~MediaPlayer(); | 23 virtual ~MediaPlayer(); |
24 | 24 |
25 // Sets the mediaplayer window height. | 25 // Adjusts the mediaplayer window height. |
26 void SetWindowHeight(int height); | 26 void AdjustWindowHeight(int height_diff); |
27 | 27 |
28 // Forces the mediaplayer window to be closed. | 28 // Forces the mediaplayer window to be closed. |
29 void CloseWindow(); | 29 void CloseWindow(); |
30 | 30 |
31 // Clears the current playlist. | 31 // Clears the current playlist. |
32 void ClearPlaylist(); | 32 void ClearPlaylist(); |
33 | 33 |
34 // Enqueues this fileschema url into the current playlist. | 34 // Enqueues this fileschema url into the current playlist. |
35 void EnqueueMediaFileUrl(const GURL& url); | 35 void EnqueueMediaFileUrl(const GURL& url); |
36 | 36 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 static GURL GetMediaPlayerUrl(); | 70 static GURL GetMediaPlayerUrl(); |
71 | 71 |
72 // Browser containing the Mediaplayer. | 72 // Browser containing the Mediaplayer. |
73 static Browser* GetBrowser(); | 73 static Browser* GetBrowser(); |
74 | 74 |
75 friend class MediaPlayerBrowserTest; | 75 friend class MediaPlayerBrowserTest; |
76 DISALLOW_COPY_AND_ASSIGN(MediaPlayer); | 76 DISALLOW_COPY_AND_ASSIGN(MediaPlayer); |
77 }; | 77 }; |
78 | 78 |
79 #endif // CHROME_BROWSER_CHROMEOS_MEDIA_MEDIA_PLAYER_H_ | 79 #endif // CHROME_BROWSER_CHROMEOS_MEDIA_MEDIA_PLAYER_H_ |
OLD | NEW |