Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: chromecast/browser/android/cast_content_window_android.h

Issue 2626863006: [Chromecast] Add CastWebContents (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 20 matching lines...) Expand all
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) override;
37 std::unique_ptr<content::WebContents> CreateWebContents( 37 std::unique_ptr<content::WebContents> CreateWebContents(
38 content::BrowserContext* browser_context) override; 38 content::BrowserContext* browser_context) override;
39 39
40 // content::WebContentsObserver implementation: 40 // content::WebContentsObserver implementation:
41 void DidFirstVisuallyNonEmptyPaint() override;
42 void MediaStartedPlaying(const MediaPlayerInfo& media_info,
43 const MediaPlayerId& id) override;
44 void MediaStoppedPlaying(const MediaPlayerInfo& media_info,
45 const MediaPlayerId& id) override;
46 void RenderViewCreated(content::RenderViewHost* render_view_host) override; 41 void RenderViewCreated(content::RenderViewHost* render_view_host) override;
47 42
48 // Called through JNI. 43 // Called through JNI.
49 void OnActivityStopped(JNIEnv* env, 44 void OnActivityStopped(JNIEnv* env,
50 const base::android::JavaParamRef<jobject>& jcaller); 45 const base::android::JavaParamRef<jobject>& jcaller);
51 void OnKeyDown(JNIEnv* env, 46 void OnKeyDown(JNIEnv* env,
52 const base::android::JavaParamRef<jobject>& jcaller, 47 const base::android::JavaParamRef<jobject>& jcaller,
53 int keycode); 48 int keycode);
54 49
55 private: 50 private:
56 friend class CastContentWindow; 51 friend class CastContentWindow;
57 52
58 // This class should only be instantiated by CastContentWindow::Create. 53 // This class should only be instantiated by CastContentWindow::Create.
59 explicit CastContentWindowAndroid(CastContentWindow::Delegate* delegate); 54 explicit CastContentWindowAndroid(CastContentWindow::Delegate* delegate);
60 55
61 CastContentWindow::Delegate* const delegate_; 56 CastContentWindow::Delegate* const delegate_;
62 bool transparent_; 57 bool transparent_;
63 base::android::ScopedJavaGlobalRef<jobject> java_window_; 58 base::android::ScopedJavaGlobalRef<jobject> java_window_;
64 59
65 DISALLOW_COPY_AND_ASSIGN(CastContentWindowAndroid); 60 DISALLOW_COPY_AND_ASSIGN(CastContentWindowAndroid);
66 }; 61 };
67 62
68 } // namespace shell 63 } // namespace shell
69 } // namespace chromecast 64 } // namespace chromecast
70 65
71 #endif // CHROMECAST_BROWSER_ANDROID_CAST_CONTENT_WINDOW_ANDROID_H_ 66 #endif // CHROMECAST_BROWSER_ANDROID_CAST_CONTENT_WINDOW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698