Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / athena / wm / window_list_provider_impl.cc
blob8b4cba5abdc2831bd80c81ccc263c33300e366b0
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"
9 namespace athena {
11 WindowListProviderImpl::WindowListProviderImpl(aura::Window* container)
12 : container_(container) {
13 CHECK(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();
24 ++iter) {
25 if ((*iter)->type() == ui::wm::WINDOW_TYPE_NORMAL)
26 list.push_back(*iter);
28 return list;
31 } // namespace athena