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

Unified Diff: chrome/browser/ui/aura/stacking_client_aurawin.cc

Issue 11364053: make StackingClient dispatch to either ash or desktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove file Created 8 years, 1 month 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: chrome/browser/ui/aura/stacking_client_aurawin.cc
diff --git a/chrome/browser/ui/aura/stacking_client_aurawin.cc b/chrome/browser/ui/aura/stacking_client_aurawin.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9cc1a1269a9dd1cdbb26b09dcead17a2aae244ac
--- /dev/null
+++ b/chrome/browser/ui/aura/stacking_client_aurawin.cc
@@ -0,0 +1,30 @@
+// Copyright (c) 2012 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 "chrome/browser/ui/aura/stacking_client_aurawin.h"
+
+#include "ash/shell.h"
+#include "ui/aura/desktop/desktop_stacking_client.h"
+#include "ui/aura/focus_manager.h"
+#include "ui/aura/root_window.h"
+#include "ui/aura/window.h"
+#include "ui/views/widget/desktop_native_widget_aura.h"
+
+StackingClientAuraWin::StackingClientAuraWin() {
+ desktop_stacking_client_.reset(new aura::DesktopStackingClient);
+}
+
+StackingClientAuraWin::~StackingClientAuraWin() {
+}
+
+aura::Window* StackingClientAuraWin::GetDefaultParent(aura::Window* context,
+ aura::Window* window,
+ const gfx::Rect& bounds) {
+ if (chrome::GetHostDesktopTypeForNativeView(context) ==
Ben Goodger (Google) 2012/11/12 16:49:33 on linux this will only ever return HDT_NATIVE rig
scottmg 2012/11/12 18:03:53 Right, yeah. So, should be OK to be just StackingC
+ chrome::HOST_DESKTOP_TYPE_ASH) {
+ return ash::Shell::GetInstance()->stacking_client()->GetDefaultParent(
+ context, window, bounds);
+ }
+ return desktop_stacking_client_->GetDefaultParent(context, window, bounds);
+}

Powered by Google App Engine
This is Rietveld 408576698