• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #include "athena/main/athena_app_window_controller.h"
6 
7 #include "apps/shell/browser/shell_app_window.h"
8 #include "athena/activity/public/activity_factory.h"
9 #include "athena/activity/public/activity_manager.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "content/public/browser/web_contents_observer.h"
12 
13 namespace athena {
14 
AthenaAppWindowController()15 AthenaAppWindowController::AthenaAppWindowController() {
16 }
17 
~AthenaAppWindowController()18 AthenaAppWindowController::~AthenaAppWindowController() {
19 }
20 
CreateAppWindow(content::BrowserContext * context)21 apps::ShellAppWindow* AthenaAppWindowController::CreateAppWindow(
22     content::BrowserContext* context) {
23   apps::ShellAppWindow* app_window = new apps::ShellAppWindow();
24   app_window->Init(context, gfx::Size(100, 100));
25   ActivityManager::Get()->AddActivity(ActivityFactory::Get()->CreateAppActivity(
26       app_window));
27   return app_window;
28 }
29 
CloseAppWindows()30 void AthenaAppWindowController::CloseAppWindows() {
31   // Do nothing.
32 }
33 
34 }  // namespace athena
35