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

Side by Side Diff: ui/aura/test_desktop_delegate.cc

Issue 8194004: change the way windows are parented when their parent is set to NULL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months 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
Property Changes:
Added: svn:eol-style
+ LF
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_desktop_delegate.h"
6
7 #include "ui/aura/desktop.h"
8
9 namespace aura {
10
11 TestDesktopDelegate::TestDesktopDelegate()
12 : default_container_(new ToplevelWindowContainer) {
13 Desktop::GetInstance()->set_delegate(this);
sky 2011/10/07 19:59:45 Unset in the destructor?
14 default_container_->Init();
15 default_container_->SetBounds(
16 gfx::Rect(gfx::Point(), Desktop::GetInstance()->GetSize()));
17 Desktop::GetInstance()->window()->AddChild(default_container_.get());
18 default_container_->Show();
19 }
20
21 TestDesktopDelegate::~TestDesktopDelegate() {
22 }
23
24
sky 2011/10/07 19:59:45 nit: remove one of these.
25 void TestDesktopDelegate::AddChildToDefaultParent(Window* window) {
26 default_container_->AddChild(window);
27 }
28
29 Window* TestDesktopDelegate::GetTopmostWindowToActivate(Window* ignore) const {
30 return default_container_->GetTopmostWindowToActivate(ignore);
31 }
32
33 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698