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

Unified Diff: ui/aura/client/window_tree_client.h

Issue 2438853002: Renames aura::client::WindowTreeClient to WindowParentingClient (Closed)
Patch Set: cleanup Created 4 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/client/window_parenting_client.cc ('k') | ui/aura/client/window_tree_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/client/window_tree_client.h
diff --git a/ui/aura/client/window_tree_client.h b/ui/aura/client/window_tree_client.h
deleted file mode 100644
index 59cb1328ece00bdaf8288e93916afb95ee1e6671..0000000000000000000000000000000000000000
--- a/ui/aura/client/window_tree_client.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2013 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_CLIENT_WINDOW_TREE_CLIENT_H_
-#define UI_AURA_CLIENT_WINDOW_TREE_CLIENT_H_
-
-#include "ui/aura/aura_export.h"
-
-namespace gfx {
-class Rect;
-}
-
-namespace aura {
-class Window;
-namespace client {
-
-// Implementations of this object are used to help locate a default parent for
-// NULL-parented Windows.
-class AURA_EXPORT WindowTreeClient {
- public:
- virtual ~WindowTreeClient() {}
-
- // Called by the Window when it looks for a default parent. Returns the
- // window that |window| should be added to instead. |context| provides a
- // Window (generally a RootWindow) that can be used to determine which
- // desktop type the default parent should be chosen from. NOTE: this may
- // have side effects. It should only be used when |window| is going to be
- // immediately added.
- //
- // TODO(erg): Remove |context|, and maybe after oshima's patch lands,
- // |bounds|.
- virtual Window* GetDefaultParent(
- Window* context,
- Window* window,
- const gfx::Rect& bounds) = 0;
-};
-
-// Set/Get a window tree client for the RootWindow containing |window|. |window|
-// must not be NULL.
-AURA_EXPORT void SetWindowTreeClient(Window* window,
- WindowTreeClient* window_tree_client);
-WindowTreeClient* GetWindowTreeClient(Window* window);
-
-// Adds |window| to an appropriate parent by consulting an implementation of
-// WindowTreeClient attached at the root Window containing |context|. The final
-// location may be a window hierarchy other than the one supplied via
-// |context|, which must not be NULL. |screen_bounds| may be empty.
-AURA_EXPORT void ParentWindowWithContext(Window* window,
- Window* context,
- const gfx::Rect& screen_bounds);
-
-} // namespace client
-} // namespace aura
-
-#endif // UI_AURA_CLIENT_WINDOW_TREE_CLIENT_H_
« no previous file with comments | « ui/aura/client/window_parenting_client.cc ('k') | ui/aura/client/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698