| // 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. |
| |
| #include "athena/extensions/athena_app_window_client_base.h" |
| |
| #include "athena/activity/public/activity_factory.h" |
| #include "athena/activity/public/activity_manager.h" |
| #include "athena/extensions/athena_native_app_window_views.h" |
| #include "extensions/common/extension.h" |
| |
| namespace athena { |
| |
| AthenaAppWindowClientBase::AthenaAppWindowClientBase() { |
| } |
| |
| AthenaAppWindowClientBase::~AthenaAppWindowClientBase() { |
| } |
| |
| extensions::NativeAppWindow* AthenaAppWindowClientBase::CreateNativeAppWindow( |
| extensions::AppWindow* app_window, |
| const extensions::AppWindow::CreateParams& params) { |
| AthenaNativeAppWindowViews* native_window = new AthenaNativeAppWindowViews; |
| native_window->Init(app_window, params); |
| ActivityFactory::Get()->CreateAppActivity(app_window->extension_id(), |
| native_window->GetWebView()); |
| return native_window; |
| } |
| |
| } // namespace athena |