OLD | NEW |
(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 #ifndef CHROME_BROWSER_UI_AURA_STACKING_CLIENT_AURAWIN_H_ |
| 6 #define CHROME_BROWSER_UI_AURA_STACKING_CLIENT_AURAWIN_H_ |
| 7 |
| 8 #include "ui/aura/client/stacking_client.h" |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/browser/ui/host_desktop.h" |
| 14 |
| 15 namespace aura { |
| 16 class DesktopStackingClient; |
| 17 class Window; |
| 18 } |
| 19 |
| 20 // A stacking client for the two worlds aura, dispatches to either a |
| 21 // DesktopStackingClient or an ash::StackingController. |
| 22 class StackingClientAuraWin : public aura::client::StackingClient { |
| 23 public: |
| 24 StackingClientAuraWin(); |
| 25 virtual ~StackingClientAuraWin(); |
| 26 |
| 27 // Overridden from client::StackingClient: |
| 28 virtual aura::Window* GetDefaultParent(aura::Window* context, |
| 29 aura::Window* window, |
| 30 const gfx::Rect& bounds) OVERRIDE; |
| 31 |
| 32 private: |
| 33 scoped_ptr<aura::DesktopStackingClient> desktop_stacking_client_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(StackingClientAuraWin); |
| 36 }; |
| 37 |
| 38 #endif // CHROME_BROWSER_UI_AURA_STACKING_CLIENT_AURAWIN_H_ |
OLD | NEW |