Index: athena/main/athena_app_window_controller.cc |
diff --git a/athena/main/athena_app_window_controller.cc b/athena/main/athena_app_window_controller.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..df44bc5b58d2e2a3dff7108478d019a771e1bf58 |
--- /dev/null |
+++ b/athena/main/athena_app_window_controller.cc |
@@ -0,0 +1,34 @@ |
+// 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 "apps/shell/browser/shell_app_window.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" |
+ |
+namespace athena { |
+ |
+AthenaAppWindowController::AthenaAppWindowController() { |
+} |
+ |
+AthenaAppWindowController::~AthenaAppWindowController() { |
+} |
+ |
+apps::ShellAppWindow* AthenaAppWindowController::CreateAppWindow( |
+ content::BrowserContext* context) { |
+ apps::ShellAppWindow* app_window = new apps::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 |