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

Unified Diff: ui/aura/window.h

Issue 11421006: Desktop aura: Break aura::Window::SetParent in two. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add parent finding thing to web_contents_view_aura.cc. I guess it was necessary after all? Created 8 years, 1 month 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
Index: ui/aura/window.h
diff --git a/ui/aura/window.h b/ui/aura/window.h
index ccfdc4810d599015a1f0280a9429b8fe033a984b..60aeba34fb28d9414c9d644ace2993c895760167 100644
--- a/ui/aura/window.h
+++ b/ui/aura/window.h
@@ -171,9 +171,16 @@ class AURA_EXPORT Window : public ui::LayerDelegate,
// Assigns a new external texture to the window's layer.
void SetExternalTexture(ui::Texture* texture);
- // Sets the parent window of the window. If NULL, the window is parented to
- // the root window.
- void SetParent(Window* parent);
+ // Sets the parent window of the window. Can not be NULL.
Ben Goodger (Google) 2012/11/20 23:46:38 Cannot or Must not
+ void SetParentTo(Window* parent);
+
+ // Attach this window somewhere.
+ //
+ // |context_root| can never be NULL; since desktop aura and ash can be run at
Ben Goodger (Google) 2012/11/20 23:46:38 Don't leak knowledge of downstream components into
+ // the same time in the same process, we always must have some context to
+ // determine desktop vs ash semantics. Users shouldn't assume that the window
+ // will be rooted to |context_root|.
+ void SetDefaultParentByTargetRoot(RootWindow* context_root);
// Stacks the specified child of this Window at the front of the z-order.
void StackChildAtTop(Window* child);
« no previous file with comments | « ui/aura/test/test_windows.cc ('k') | ui/aura/window.cc » ('j') | ui/aura/window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698