Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2037)

Unified Diff: athena/main/athena_app_window_controller.cc

Issue 335003003: Introduces AppActivity and handler of chrome.shell API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « athena/main/athena_app_window_controller.h ('k') | athena/main/athena_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « athena/main/athena_app_window_controller.h ('k') | athena/main/athena_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698