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

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

Issue 2353063005: Refactor ContentViewClient (1/6) (Closed)
Patch Set: cast to activity Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_WINDOW_ANDROID_H_ 5 #ifndef CHROMECAST_BROWSER_ANDROID_CAST_WINDOW_ANDROID_H_
6 #define CHROMECAST_BROWSER_ANDROID_CAST_WINDOW_ANDROID_H_ 6 #define CHROMECAST_BROWSER_ANDROID_CAST_WINDOW_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 bool user_gesture, 62 bool user_gesture,
63 bool* was_blocked) override; 63 bool* was_blocked) override;
64 void CloseContents(content::WebContents* source) override; 64 void CloseContents(content::WebContents* source) override;
65 bool CanOverscrollContent() const override; 65 bool CanOverscrollContent() const override;
66 bool AddMessageToConsole(content::WebContents* source, 66 bool AddMessageToConsole(content::WebContents* source,
67 int32_t level, 67 int32_t level,
68 const base::string16& message, 68 const base::string16& message,
69 int32_t line_no, 69 int32_t line_no,
70 const base::string16& source_id) override; 70 const base::string16& source_id) override;
71 void ActivateContents(content::WebContents* contents) override; 71 void ActivateContents(content::WebContents* contents) override;
72 base::android::ScopedJavaLocalRef<jobject>
73 GetContentVideoViewEmbedder() override;
72 74
73 // content::WebContentsObserver implementation: 75 // content::WebContentsObserver implementation:
74 void RenderProcessGone(base::TerminationStatus status) override; 76 void RenderProcessGone(base::TerminationStatus status) override;
75 77
76 private: 78 private:
77 explicit CastWindowAndroid(content::BrowserContext* browser_context); 79 explicit CastWindowAndroid(content::BrowserContext* browser_context);
78 void Initialize(); 80 void Initialize();
79 81
80 content::BrowserContext* browser_context_; 82 content::BrowserContext* browser_context_;
81 base::android::ScopedJavaGlobalRef<jobject> window_java_; 83 base::android::ScopedJavaGlobalRef<jobject> window_java_;
82 std::unique_ptr<content::WebContents> web_contents_; 84 std::unique_ptr<content::WebContents> web_contents_;
83 std::unique_ptr<CastContentWindow> content_window_; 85 std::unique_ptr<CastContentWindow> content_window_;
84 86
85 base::WeakPtrFactory<CastWindowAndroid> weak_factory_; 87 base::WeakPtrFactory<CastWindowAndroid> weak_factory_;
86 88
87 DISALLOW_COPY_AND_ASSIGN(CastWindowAndroid); 89 DISALLOW_COPY_AND_ASSIGN(CastWindowAndroid);
88 }; 90 };
89 91
90 } // namespace shell 92 } // namespace shell
91 } // namespace chromecast 93 } // namespace chromecast
92 94
93 #endif // CHROMECAST_BROWSER_ANDROID_CAST_WINDOW_ANDROID_H_ 95 #endif // CHROMECAST_BROWSER_ANDROID_CAST_WINDOW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698