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

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
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..3d2188a1b8660221b87cb17ef7ce7f446a771737 100644
--- a/athena/content/content_activity_factory.cc
+++ b/athena/extensions/athena_native_app_window_views.h
@@ -2,27 +2,24 @@
// 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 extensions::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_

Powered by Google App Engine
This is Rietveld 408576698