| 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 CONTENT_BROWSER_ANDROID_CONTENT_VIDEO_VIEW_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIDEO_VIEW_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIDEO_VIEW_H_ | 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIDEO_VIEW_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/jni_helper.h" | 10 #include "base/android/jni_helper.h" |
| 11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/timer.h" | 15 #include "base/timer/timer.h" |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 | 18 |
| 19 class MediaPlayerManagerImpl; | 19 class MediaPlayerManagerImpl; |
| 20 | 20 |
| 21 // Native mirror of ContentVideoView.java. This class is responsible for | 21 // Native mirror of ContentVideoView.java. This class is responsible for |
| 22 // creating the Java video view and pass all the player status change to | 22 // creating the Java video view and pass all the player status change to |
| 23 // it. It accepts media control from Java class, and forwards it to | 23 // it. It accepts media control from Java class, and forwards it to |
| 24 // MediaPlayerManagerImpl. | 24 // MediaPlayerManagerImpl. |
| 25 class ContentVideoView { | 25 class ContentVideoView { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 // Weak reference of corresponding Java object. | 83 // Weak reference of corresponding Java object. |
| 84 JavaObjectWeakGlobalRef j_content_video_view_; | 84 JavaObjectWeakGlobalRef j_content_video_view_; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(ContentVideoView); | 86 DISALLOW_COPY_AND_ASSIGN(ContentVideoView); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace content | 89 } // namespace content |
| 90 | 90 |
| 91 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIDEO_VIEW_H_ | 91 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIDEO_VIEW_H_ |
| OLD | NEW |