Initialize screen for aura.

This commit is contained in:
Cheng Zhao 2014-07-03 09:04:03 +00:00
parent bad7b95ed7
commit 8f3546ed30

View file

@ -10,6 +10,11 @@
#include "ui/gfx/screen.h"
#include "ui/views/widget/desktop_aura/desktop_screen.h"
#if defined(USE_AURA)
#include "ui/gfx/screen.h"
#include "ui/views/widget/desktop_aura/desktop_screen.h"
#endif
#if defined(USE_AURA) && defined(USE_X11)
#include "chrome/browser/ui/libgtk2ui/gtk2_ui.h"
#include "ui/views/linux_ui/linux_ui.h"
@ -76,6 +81,11 @@ void BrowserMainParts::PostMainMessageLoopRun() {
}
int BrowserMainParts::PreCreateThreads() {
#if defined(USE_AURA)
gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE,
views::CreateDesktopScreen());
#endif
#if defined(OS_WIN)
net::ProxyResolverV8::CreateIsolate();
#else