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

Unified Diff: ui/aura/test_desktop_delegate.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/event_filter.cc ('k') | ui/aura/test_desktop_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test_desktop_delegate.h
===================================================================
--- ui/aura/test_desktop_delegate.h (revision 0)
+++ ui/aura/test_desktop_delegate.h (revision 0)
@@ -0,0 +1,38 @@
+// 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.
+
+#ifndef UI_AURA_TEST_DESKTOP_DELEGATE_H_
+#define UI_AURA_TEST_DESKTOP_DELEGATE_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
+#include "ui/aura/desktop_delegate.h"
+#include "ui/aura/toplevel_window_container.h"
+
+namespace aura {
+
+class ToplevelWindowContainer;
+
+class TestDesktopDelegate : public DesktopDelegate {
+ public:
+ TestDesktopDelegate();
+ virtual ~TestDesktopDelegate();
+
+ Window* default_container() { return default_container_.get(); }
+
+ private:
+ // Overridden from DesktopDelegate:
+ virtual void AddChildToDefaultParent(Window* window) OVERRIDE;
+ virtual Window* GetTopmostWindowToActivate(Window* ignore) const OVERRIDE;
+
+ scoped_ptr<ToplevelWindowContainer> default_container_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestDesktopDelegate);
+};
+
+} // namespace aura
+
+#endif // UI_AURA_TEST_DESKTOP_DELEGATE_H_
Property changes on: ui\aura\test_desktop_delegate.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « ui/aura/event_filter.cc ('k') | ui/aura/test_desktop_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698