1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "athena/wm/window_list_provider_impl.h"
7 #include "ui/aura/window.h"
11 WindowListProviderImpl::WindowListProviderImpl(aura::Window
* container
)
12 : container_(container
) {
16 WindowListProviderImpl::~WindowListProviderImpl() {
19 aura::Window::Windows
WindowListProviderImpl::GetWindowList() const {
20 aura::Window::Windows list
;
21 const aura::Window::Windows
& container_children
= container_
->children();
22 for (aura::Window::Windows::const_iterator iter
= container_children
.begin();
23 iter
!= container_children
.end();
25 if ((*iter
)->type() == ui::wm::WINDOW_TYPE_NORMAL
)
26 list
.push_back(*iter
);