Index: chromecast/browser/android/cast_window_android.cc |
diff --git a/chromecast/browser/android/cast_window_android.cc b/chromecast/browser/android/cast_window_android.cc |
index 0d78ceb3da9ba5bc8ac6ac6b858821603d02a055..c95bd375a5de3db92923c43158a985e0e91c04eb 100644 |
--- a/chromecast/browser/android/cast_window_android.cc |
+++ b/chromecast/browser/android/cast_window_android.cc |
@@ -12,8 +12,10 @@ |
#include "content/public/browser/navigation_entry.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/render_view_host.h" |
+#include "content/public/browser/render_widget_host_view.h" |
#include "content/public/common/renderer_preferences.h" |
#include "jni/CastWindowAndroid_jni.h" |
+#include "ui/gfx/skia_util.h" |
namespace chromecast { |
namespace shell { |
@@ -40,6 +42,13 @@ CastWindowAndroid* CastWindowAndroid::CreateNewWindow( |
if (!url.is_empty()) |
window_android->LoadURL(url); |
+ |
+ content::RenderWidgetHostView* rwhv = |
+ window_android->web_contents_->GetRenderWidgetHostView(); |
gunsch
2015/02/24 05:55:09
optional: instead of accessing web_contents_ (priv
halliwell
2015/02/24 06:23:43
I don't believe there is such an API? WebContents
|
+ if (rwhv) { |
+ rwhv->SetBackgroundColor(SK_ColorBLACK); |
+ } |
+ |
return window_android; |
} |