blob: a1da206b8fce334365f235b6f945b2ed9b40b195 [file] [log] [blame]
// Copyright 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 "athena/main/athena_app_window_controller.h"
#include "athena/activity/public/activity_factory.h"
#include "athena/activity/public/activity_manager.h"
#include "base/memory/scoped_ptr.h"
#include "content/public/browser/web_contents_observer.h"
#include "extensions/shell/browser/shell_app_window.h"
namespace athena {
AthenaAppWindowController::AthenaAppWindowController() {
}
AthenaAppWindowController::~AthenaAppWindowController() {
}
extensions::ShellAppWindow* AthenaAppWindowController::CreateAppWindow(
content::BrowserContext* context) {
extensions::ShellAppWindow* app_window = new extensions::ShellAppWindow();
app_window->Init(context, gfx::Size(100, 100));
ActivityManager::Get()->AddActivity(ActivityFactory::Get()->CreateAppActivity(
app_window));
return app_window;
}
void AthenaAppWindowController::CloseAppWindows() {
// Do nothing.
}
} // namespace athena