| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "athena/content/content_activity_factory.h" | 5 #ifndef ATHENA_EXTENSIONS_ATHENA_NATIVE_APP_WINDOW_VIEWS_H_ |
| 6 #define ATHENA_EXTENSIONS_ATHENA_NATIVE_APP_WINDOW_VIEWS_H_ |
| 6 | 7 |
| 7 #include "athena/content/web_activity.h" | 8 #include "components/native_app_window/native_app_window_views.h" |
| 8 #include "base/logging.h" | |
| 9 | 9 |
| 10 namespace athena { | 10 namespace athena { |
| 11 | 11 |
| 12 ContentActivityFactory::ContentActivityFactory() { | 12 class AthenaNativeAppWindowViews |
| 13 } | 13 : public native_app_window::NativeAppWindowViews { |
| 14 public: |
| 15 AthenaNativeAppWindowViews() {} |
| 16 virtual ~AthenaNativeAppWindowViews() {} |
| 14 | 17 |
| 15 ContentActivityFactory::~ContentActivityFactory() {} | 18 views::WebView* GetWebView(); |
| 16 | 19 |
| 17 Activity* ContentActivityFactory::CreateWebActivity( | 20 private: |
| 18 content::BrowserContext* browser_context, | 21 DISALLOW_COPY_AND_ASSIGN(AthenaNativeAppWindowViews); |
| 19 const base::string16& title, | 22 }; |
| 20 const GURL& url) { | |
| 21 return new WebActivity(browser_context, title, url); | |
| 22 } | |
| 23 | |
| 24 ActivityFactory* CreateContentActivityFactory() { | |
| 25 return new ContentActivityFactory(); | |
| 26 } | |
| 27 | 23 |
| 28 } // namespace athena | 24 } // namespace athena |
| 25 |
| 26 #endif // ATHENA_EXTENSIONS_ATHENA_NATIVE_APP_WINDOW_VIEWS_H_ |
| OLD | NEW |