| 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_
|
|
|