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 // Movie class for WTL forms to call to control the media pipeline. | 5 // Movie class for WTL forms to call to control the media pipeline. |
6 | 6 |
7 #ifndef MEDIA_TOOLS_PLAYER_WTL_MOVIE_H_ | 7 #ifndef MEDIA_TOOLS_PLAYER_WTL_MOVIE_H_ |
8 #define MEDIA_TOOLS_PLAYER_WTL_MOVIE_H_ | 8 #define MEDIA_TOOLS_PLAYER_WTL_MOVIE_H_ |
9 | 9 |
10 #include "media/tools/player_wtl/player_wtl.h" | 10 #include "media/tools/player_wtl/player_wtl.h" |
11 | 11 |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "media/base/message_loop_factory.h" | 14 #include "media/base/message_loop_factory.h" |
15 | 15 |
16 class AudioManager; | |
17 template <typename T> struct DefaultSingletonTraits; | 16 template <typename T> struct DefaultSingletonTraits; |
18 | 17 |
19 namespace media { | 18 namespace media { |
20 | 19 |
| 20 class AudioManager; |
21 class Pipeline; | 21 class Pipeline; |
22 class VideoRendererBase; | 22 class VideoRendererBase; |
23 | 23 |
24 class Movie { | 24 class Movie { |
25 public: | 25 public: |
26 // Returns the singleton instance. | 26 // Returns the singleton instance. |
27 static Movie* GetInstance(); | 27 static Movie* GetInstance(); |
28 | 28 |
29 // Open a movie. | 29 // Open a movie. |
30 bool Open(const wchar_t* url, VideoRendererBase* video_renderer); | 30 bool Open(const wchar_t* url, VideoRendererBase* video_renderer); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 float play_rate_; | 95 float play_rate_; |
96 HBITMAP movie_dib_; | 96 HBITMAP movie_dib_; |
97 HWND movie_hwnd_; | 97 HWND movie_hwnd_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(Movie); | 99 DISALLOW_COPY_AND_ASSIGN(Movie); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace media | 102 } // namespace media |
103 | 103 |
104 #endif // MEDIA_TOOLS_PLAYER_WTL_MOVIE_H_ | 104 #endif // MEDIA_TOOLS_PLAYER_WTL_MOVIE_H_ |
OLD | NEW |