Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / athena / main / athena_app_window_controller.cc
blob5e01798833d790cc3d2a6b7c1805546e0bdbbff6
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "athena/main/athena_app_window_controller.h"
7 #include "athena/activity/public/activity_factory.h"
8 #include "athena/activity/public/activity_manager.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/web_contents_observer.h"
11 #include "extensions/shell/browser/shell_app_window.h"
13 namespace athena {
15 AthenaAppWindowController::AthenaAppWindowController() {
18 AthenaAppWindowController::~AthenaAppWindowController() {
21 extensions::ShellAppWindow* AthenaAppWindowController::CreateAppWindow(
22 content::BrowserContext* context,
23 const extensions::Extension* extension) {
24 extensions::ShellAppWindow* app_window = new extensions::ShellAppWindow();
25 app_window->Init(context, extension, gfx::Size(100, 100));
26 ActivityManager::Get()->AddActivity(ActivityFactory::Get()->CreateAppActivity(
27 app_window));
28 return app_window;
31 void AthenaAppWindowController::CloseAppWindows() {
32 // Do nothing.
35 } // namespace athena