| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CHROMECAST_BROWSER_ANDROID_CAST_CONTENT_WINDOW_ANDROID_H_ | 5 #ifndef CHROMECAST_BROWSER_ANDROID_CAST_CONTENT_WINDOW_ANDROID_H_ |
| 6 #define CHROMECAST_BROWSER_ANDROID_CAST_CONTENT_WINDOW_ANDROID_H_ | 6 #define CHROMECAST_BROWSER_ANDROID_CAST_CONTENT_WINDOW_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // CastWebContentsActivity. | 26 // CastWebContentsActivity. |
| 27 class CastContentWindowAndroid : public CastContentWindow, | 27 class CastContentWindowAndroid : public CastContentWindow, |
| 28 public content::WebContentsObserver { | 28 public content::WebContentsObserver { |
| 29 public: | 29 public: |
| 30 static bool RegisterJni(JNIEnv* env); | 30 static bool RegisterJni(JNIEnv* env); |
| 31 | 31 |
| 32 ~CastContentWindowAndroid() override; | 32 ~CastContentWindowAndroid() override; |
| 33 | 33 |
| 34 // CastContentWindow implementation: | 34 // CastContentWindow implementation: |
| 35 void SetTransparent() override; | 35 void SetTransparent() override; |
| 36 void ShowWebContents(content::WebContents* web_contents) override; | 36 void ShowWebContents(content::WebContents* web_contents, |
| 37 CastWindowManager* window_manager) override; |
| 37 std::unique_ptr<content::WebContents> CreateWebContents( | 38 std::unique_ptr<content::WebContents> CreateWebContents( |
| 38 content::BrowserContext* browser_context) override; | 39 content::BrowserContext* browser_context) override; |
| 39 | 40 |
| 40 // content::WebContentsObserver implementation: | 41 // content::WebContentsObserver implementation: |
| 41 void DidFirstVisuallyNonEmptyPaint() override; | 42 void DidFirstVisuallyNonEmptyPaint() override; |
| 42 void MediaStartedPlaying(const MediaPlayerInfo& media_info, | 43 void MediaStartedPlaying(const MediaPlayerInfo& media_info, |
| 43 const MediaPlayerId& id) override; | 44 const MediaPlayerId& id) override; |
| 44 void MediaStoppedPlaying(const MediaPlayerInfo& media_info, | 45 void MediaStoppedPlaying(const MediaPlayerInfo& media_info, |
| 45 const MediaPlayerId& id) override; | 46 const MediaPlayerId& id) override; |
| 46 void RenderViewCreated(content::RenderViewHost* render_view_host) override; | 47 void RenderViewCreated(content::RenderViewHost* render_view_host) override; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 62 bool transparent_; | 63 bool transparent_; |
| 63 base::android::ScopedJavaGlobalRef<jobject> java_window_; | 64 base::android::ScopedJavaGlobalRef<jobject> java_window_; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(CastContentWindowAndroid); | 66 DISALLOW_COPY_AND_ASSIGN(CastContentWindowAndroid); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace shell | 69 } // namespace shell |
| 69 } // namespace chromecast | 70 } // namespace chromecast |
| 70 | 71 |
| 71 #endif // CHROMECAST_BROWSER_ANDROID_CAST_CONTENT_WINDOW_ANDROID_H_ | 72 #endif // CHROMECAST_BROWSER_ANDROID_CAST_CONTENT_WINDOW_ANDROID_H_ |
| OLD | NEW |