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

Side by Side Diff: ui/aura/test/test_stacking_client.cc

Issue 8916020: Second attempt at moving the StackingClient to a property on the RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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
« no previous file with comments | « ui/aura/test/test_stacking_client.h ('k') | ui/aura/window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « ui/aura/test/test_stacking_client.h ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698