OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #include "athena/wm/window_list_provider_impl.h" |
| 6 |
| 7 #include "ui/aura/window.h" |
| 8 |
| 9 namespace athena { |
| 10 |
| 11 WindowListProviderImpl::WindowListProviderImpl(aura::Window* container) |
| 12 : container_(container) { |
| 13 CHECK(container_); |
| 14 } |
| 15 |
| 16 WindowListProviderImpl::~WindowListProviderImpl() { |
| 17 } |
| 18 |
| 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); |
| 27 } |
| 28 return list; |
| 29 } |
| 30 |
| 31 } // namespace athena |
OLD | NEW |