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

Unified Diff: athena/extensions/athena_app_window_client_base.cc

Issue 863033002: Delete athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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_app_window_client_base.cc
diff --git a/athena/extensions/athena_app_window_client_base.cc b/athena/extensions/athena_app_window_client_base.cc
deleted file mode 100644
index ab0d5f0cafbec3da6516892da1505d61a21cec15..0000000000000000000000000000000000000000
--- a/athena/extensions/athena_app_window_client_base.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// 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/wm/public/window_list_provider.h"
-#include "athena/wm/public/window_manager.h"
-#include "extensions/common/extension.h"
-#include "extensions/components/native_app_window/native_app_window_views.h"
-
-namespace athena {
-
-AthenaAppWindowClientBase::AthenaAppWindowClientBase() {
-}
-
-AthenaAppWindowClientBase::~AthenaAppWindowClientBase() {
-}
-
-extensions::NativeAppWindow* AthenaAppWindowClientBase::CreateNativeAppWindow(
- extensions::AppWindow* app_window,
- extensions::AppWindow::CreateParams* params) {
- auto* native_window = new native_app_window::NativeAppWindowViews;
- native_window->Init(app_window, *params);
- ActivityFactory::Get()->CreateAppActivity(app_window->extension_id(),
- native_window->web_view());
- if (params->focused) {
- // Windows are created per default at the top of the stack. If - at this
- // point of initialization - it is has been moved into a different Z-order
- // location we should respect this, not allowing the application activation
- // to bring it to the front. This can happen as part of the resource
- // manager's reloading or intelligent preloading of an application.
- const aura::Window::Windows& list =
- WindowManager::Get()->GetWindowListProvider()->GetWindowList();
- aura::Window* native_app_window =
- native_window->widget()->GetNativeWindow();
- params->focused = !list.size() || list.back() == native_app_window;
- }
- return native_window;
-}
-
-} // namespace athena
« no previous file with comments | « athena/extensions/athena_app_window_client_base.h ('k') | athena/extensions/athena_constrained_window_views_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698