OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 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 "ui/aura/test/test_stacking_client.h" | |
6 | |
7 #include "ui/aura/root_window.h" | |
8 | |
9 namespace aura { | |
10 namespace test { | |
11 | |
12 TestStackingClient::TestStackingClient() | |
13 : default_container_(new Window(NULL)) { | |
14 RootWindow::GetInstance()->SetStackingClient(this); | |
15 default_container_->Init(ui::Layer::LAYER_HAS_NO_TEXTURE); | |
16 default_container_->SetBounds( | |
17 gfx::Rect(gfx::Point(), RootWindow::GetInstance()->GetHostSize())); | |
18 RootWindow::GetInstance()->AddChild(default_container_.get()); | |
19 default_container_->Show(); | |
20 } | |
21 | |
22 TestStackingClient::~TestStackingClient() { | |
23 } | |
24 | |
25 void TestStackingClient::AddChildToDefaultParent(Window* window) { | |
26 default_container_->AddChild(window); | |
27 } | |
28 | |
29 } // namespace test | |
30 } // namespace aura | |
OLD | NEW |