// Return true if the window or its ancestor has |kStayInSameRootWindowkey|
// property.
bool ShouldStayInSameRootWindow(const aura::Window* window) {
- return window &&
- (window->GetProperty(internal::kStayInSameRootWindowKey) ||
- ShouldStayInSameRootWindow(window->parent()));
+ return window && (window->GetProperty(kStayInSameRootWindowKey) ||
+ ShouldStayInSameRootWindow(window->parent()));
}
// Move all transient children to |dst_root|, including the ones in
} // namespace
-namespace internal {
-
void ScreenPositionController::ConvertPointToScreen(
const aura::Window* window,
gfx::Point* point) {
const gfx::Rect& bounds,
const gfx::Display& display) {
DCHECK_NE(-1, display.id());
- if (!window->parent()->GetProperty(internal::kUsesScreenCoordinatesKey)) {
+ if (!window->parent()->GetProperty(kUsesScreenCoordinatesKey)) {
window->SetBounds(bounds);
return;
}
window->SetBounds(gfx::Rect(origin, bounds.size()));
}
-} // internal
-} // ash
+} // namespace ash