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

Unified Diff: athena/extensions/athena_native_app_window_views.h

Issue 563083003: V2 app support step3: Athena's NativeAppWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/extensions/athena_apps_client_base.cc ('k') | athena/extensions/athena_native_app_window_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/extensions/athena_native_app_window_views.h
diff --git a/athena/content/content_activity_factory.cc b/athena/extensions/athena_native_app_window_views.h
similarity index 33%
copy from athena/content/content_activity_factory.cc
copy to athena/extensions/athena_native_app_window_views.h
index aaa4e2090151a6db9279e994d43c9407d15244fd..23a6854bd029714b7dbdbf457c43ac27b17ad4a5 100644
--- a/athena/content/content_activity_factory.cc
+++ b/athena/extensions/athena_native_app_window_views.h
@@ -2,27 +2,25 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "athena/content/content_activity_factory.h"
+#ifndef ATHENA_EXTENSIONS_ATHENA_NATIVE_APP_WINDOW_VIEWS_H_
+#define ATHENA_EXTENSIONS_ATHENA_NATIVE_APP_WINDOW_VIEWS_H_
-#include "athena/content/web_activity.h"
-#include "base/logging.h"
+#include "components/native_app_window/native_app_window_views.h"
namespace athena {
-ContentActivityFactory::ContentActivityFactory() {
-}
+class AthenaNativeAppWindowViews
+ : public native_app_window::NativeAppWindowViews {
+ public:
+ AthenaNativeAppWindowViews() {}
+ virtual ~AthenaNativeAppWindowViews() {}
-ContentActivityFactory::~ContentActivityFactory() {}
+ views::WebView* GetWebView();
-Activity* ContentActivityFactory::CreateWebActivity(
- content::BrowserContext* browser_context,
- const base::string16& title,
- const GURL& url) {
- return new WebActivity(browser_context, title, url);
-}
-
-ActivityFactory* CreateContentActivityFactory() {
- return new ContentActivityFactory();
-}
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AthenaNativeAppWindowViews);
+};
} // namespace athena
+
+#endif // ATHENA_EXTENSIONS_ATHENA_NATIVE_APP_WINDOW_VIEWS_H_
« no previous file with comments | « athena/extensions/athena_apps_client_base.cc ('k') | athena/extensions/athena_native_app_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698