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

Unified Diff: athena/main/athena_app_window_controller.h

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/DEPS ('k') | athena/main/athena_app_window_controller.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.h
diff --git a/athena/main/athena_app_window_controller.h b/athena/main/athena_app_window_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..78684d5623f50af6cefe5b4153e4ff33190f7b8f
--- /dev/null
+++ b/athena/main/athena_app_window_controller.h
@@ -0,0 +1,31 @@
+// 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.
+
+#ifndef ATHENA_MAIN_ATHENA_APP_WINDOW_CONTROLLER_H_
+#define ATHENA_MAIN_ATHENA_APP_WINDOW_CONTROLLER_H_
+
+#include "apps/shell/browser/shell_app_window_controller.h"
+#include "base/macros.h"
+
+namespace athena {
+
+// The shell app window controller for athena. It embeds the web_contents of
+// an app window into an Athena activity.
+class AthenaAppWindowController : public apps::ShellAppWindowController {
+ public:
+ AthenaAppWindowController();
+ virtual ~AthenaAppWindowController();
+
+ // Overridden from apps::ShellAppWindowController:
+ virtual apps::ShellAppWindow* CreateAppWindow(
+ content::BrowserContext* context) OVERRIDE;
+ virtual void CloseAppWindows() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AthenaAppWindowController);
+};
+
+} // namespace athena
+
+#endif // ATHENA_MAIN_ATHENA_APP_WINDOW_CONTROLLER_H_
« no previous file with comments | « athena/main/DEPS ('k') | athena/main/athena_app_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698