普通文本  |  27行  |  675 B

// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "mojo/aura/aura_init.h"

#include "mojo/aura/context_factory_mojo.h"
#include "mojo/aura/screen_mojo.h"
#include "ui/aura/env.h"

namespace mojo {

AuraInit::AuraInit() {
  aura::Env::CreateInstance(false);

  context_factory_.reset(new ContextFactoryMojo);
  aura::Env::GetInstance()->set_context_factory(context_factory_.get());

  screen_.reset(ScreenMojo::Create());
  gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, screen_.get());
}

AuraInit::~AuraInit() {
}

}  // namespace mojo