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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/test/test_stacking_client.h ('k') | ui/aura/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/test_stacking_client.cc
===================================================================
--- ui/aura/test/test_stacking_client.cc (revision 114527)
+++ ui/aura/test/test_stacking_client.cc (working copy)
@@ -1,30 +0,0 @@
-// Copyright (c) 2011 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 "ui/aura/test/test_stacking_client.h"
-
-#include "ui/aura/root_window.h"
-
-namespace aura {
-namespace test {
-
-TestStackingClient::TestStackingClient()
- : default_container_(new Window(NULL)) {
- RootWindow::GetInstance()->SetStackingClient(this);
- default_container_->Init(ui::Layer::LAYER_HAS_NO_TEXTURE);
- default_container_->SetBounds(
- gfx::Rect(gfx::Point(), RootWindow::GetInstance()->GetHostSize()));
- RootWindow::GetInstance()->AddChild(default_container_.get());
- default_container_->Show();
-}
-
-TestStackingClient::~TestStackingClient() {
-}
-
-void TestStackingClient::AddChildToDefaultParent(Window* window) {
- default_container_->AddChild(window);
-}
-
-} // namespace test
-} // namespace aura
« 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