OLD | NEW |
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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 bool user_gesture, | 64 bool user_gesture, |
65 bool* was_blocked) override; | 65 bool* was_blocked) override; |
66 void CloseContents(content::WebContents* source) override; | 66 void CloseContents(content::WebContents* source) override; |
67 bool CanOverscrollContent() const override; | 67 bool CanOverscrollContent() const override; |
68 bool AddMessageToConsole(content::WebContents* source, | 68 bool AddMessageToConsole(content::WebContents* source, |
69 int32 level, | 69 int32 level, |
70 const base::string16& message, | 70 const base::string16& message, |
71 int32 line_no, | 71 int32 line_no, |
72 const base::string16& source_id) override; | 72 const base::string16& source_id) override; |
73 void ActivateContents(content::WebContents* contents) override; | 73 void ActivateContents(content::WebContents* contents) override; |
74 void DeactivateContents(content::WebContents* contents) override; | |
75 | 74 |
76 // content::WebContentsObserver implementation: | 75 // content::WebContentsObserver implementation: |
77 void RenderProcessGone(base::TerminationStatus status) override; | 76 void RenderProcessGone(base::TerminationStatus status) override; |
78 | 77 |
79 private: | 78 private: |
80 explicit CastWindowAndroid(content::BrowserContext* browser_context); | 79 explicit CastWindowAndroid(content::BrowserContext* browser_context); |
81 void Initialize(); | 80 void Initialize(); |
82 | 81 |
83 content::BrowserContext* browser_context_; | 82 content::BrowserContext* browser_context_; |
84 base::android::ScopedJavaGlobalRef<jobject> window_java_; | 83 base::android::ScopedJavaGlobalRef<jobject> window_java_; |
85 scoped_ptr<content::WebContents> web_contents_; | 84 scoped_ptr<content::WebContents> web_contents_; |
86 scoped_ptr<CastContentWindow> content_window_; | 85 scoped_ptr<CastContentWindow> content_window_; |
87 | 86 |
88 base::WeakPtrFactory<CastWindowAndroid> weak_factory_; | 87 base::WeakPtrFactory<CastWindowAndroid> weak_factory_; |
89 | 88 |
90 DISALLOW_COPY_AND_ASSIGN(CastWindowAndroid); | 89 DISALLOW_COPY_AND_ASSIGN(CastWindowAndroid); |
91 }; | 90 }; |
92 | 91 |
93 } // namespace shell | 92 } // namespace shell |
94 } // namespace chromecast | 93 } // namespace chromecast |
95 | 94 |
96 #endif // CHROMECAST_BROWSER_ANDROID_CAST_WINDOW_ANDROID_H_ | 95 #endif // CHROMECAST_BROWSER_ANDROID_CAST_WINDOW_ANDROID_H_ |
OLD | NEW |