Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(712)

Side by Side Diff: athena/wm/window_list_provider_impl.cc

Issue 470083004: athena: A simpler implementation of WindowListProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « athena/wm/window_list_provider_impl.h ('k') | athena/wm/window_list_provider_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « athena/wm/window_list_provider_impl.h ('k') | athena/wm/window_list_provider_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698