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

Unified Diff: content/shell/browser/shell_android.cc

Issue 2416403002: Reland of Android: support multiple displays on C++ side (Closed)
Patch Set: Update native side only after jni init Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/browser/shell_android.cc
diff --git a/content/shell/browser/shell_android.cc b/content/shell/browser/shell_android.cc
index c38e902a4b020640384156032ca9c60c93da25a0..9b760375f16fb3386a3984894be8448e4ac2a9f4 100644
--- a/content/shell/browser/shell_android.cc
+++ b/content/shell/browser/shell_android.cc
@@ -15,6 +15,8 @@
#include "content/public/common/content_switches.h"
#include "content/shell/android/shell_manager.h"
#include "jni/Shell_jni.h"
+#include "ui/android/screen_android.h"
+#include "ui/display/screen.h"
using base::android::AttachCurrentThread;
using base::android::ConvertUTF8ToJavaString;
@@ -24,6 +26,7 @@ using base::android::ScopedJavaLocalRef;
namespace content {
void Shell::PlatformInitialize(const gfx::Size& default_window_size) {
+ display::Screen::SetScreenInstance(ui::CreateScreenAndroid());
}
void Shell::PlatformExit() {

Powered by Google App Engine
This is Rietveld 408576698