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

Unified Diff: athena/extensions/chrome/athena_apps_client.h

Issue 514293003: Run athena on chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 4 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
Index: athena/extensions/chrome/athena_apps_client.h
diff --git a/athena/extensions/chrome/athena_apps_client.h b/athena/extensions/chrome/athena_apps_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..0b860170fc292525096cfe78dc6761a02ff63df2
--- /dev/null
+++ b/athena/extensions/chrome/athena_apps_client.h
@@ -0,0 +1,40 @@
+// 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_EXTENSIONS_CHROME_ATHENA_APPS_CLIENT_H_
+#define ATHENA_EXTENSIONS_CHROME_ATHENA_APPS_CLIENT_H_
+
+#include "apps/ui/apps_client.h"
+#include "base/macros.h"
+
+namespace athena {
+
+// The implementation of AppsClient for Athena.
+class AthenaAppsClient : public apps::AppsClient {
+ public:
+ AthenaAppsClient();
+ virtual ~AthenaAppsClient();
+
+ private:
+ // apps::AppsClient
+ virtual std::vector<content::BrowserContext*> GetLoadedBrowserContexts()
+ OVERRIDE;
+ virtual apps::AppWindow* CreateAppWindow(
+ content::BrowserContext* context,
+ const extensions::Extension* extension) OVERRIDE;
+ virtual extensions::NativeAppWindow* CreateNativeAppWindow(
+ apps::AppWindow* window,
+ const apps::AppWindow::CreateParams& params) OVERRIDE;
+ virtual void IncrementKeepAliveCount() OVERRIDE;
+ virtual void DecrementKeepAliveCount() OVERRIDE;
+ virtual void OpenDevToolsWindow(content::WebContents* web_contents,
+ const base::Closure& callback) OVERRIDE;
+ virtual bool IsCurrentChannelOlderThanDev() OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(AthenaAppsClient);
+};
+
+} // namespace athena
+
+#endif // ATHENA_EXTENSIONS_CHROME_ATHENA_APPS_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698