190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Copyright (c) 2013 The Chromium Authors. All rights reserved. 290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// found in the LICENSE file. 490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#include "ui/compositor/test/test_layers.h" 690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#include "ui/compositor/layer.h" 890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)namespace ui { 1090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)namespace test { 1190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 1290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)std::string ChildLayerNamesAsString(const ui::Layer& parent) { 1390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) std::string names; 1490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) for (std::vector<Layer*>::const_iterator it = parent.children().begin(); 1590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) it != parent.children().end(); ++it) { 1690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) if (!names.empty()) 1790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) names += " "; 1890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) names += (*it)->name(); 1990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) } 2090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) return names; 2190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)} 2290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 2390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)} // namespace test 2490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)} // namespace ui 25