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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/aura/stacking_client_aurawin.h"
6
7 #include "ash/shell.h"
8 #include "ui/aura/desktop/desktop_stacking_client.h"
9 #include "ui/aura/focus_manager.h"
10 #include "ui/aura/root_window.h"
11 #include "ui/aura/window.h"
12 #include "ui/views/widget/desktop_native_widget_aura.h"
13
14 StackingClientAuraWin::StackingClientAuraWin() {
15 desktop_stacking_client_.reset(new aura::DesktopStackingClient);
16 }
17
18 StackingClientAuraWin::~StackingClientAuraWin() {
19 }
20
21 aura::Window* StackingClientAuraWin::GetDefaultParent(aura::Window* context,
22 aura::Window* window,
23 const gfx::Rect& bounds) {
24 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
25 chrome::HOST_DESKTOP_TYPE_ASH) {
26 return ash::Shell::GetInstance()->stacking_client()->GetDefaultParent(
27 context, window, bounds);
28 }
29 return desktop_stacking_client_->GetDefaultParent(context, window, bounds);
30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698