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

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
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 void WindowListProviderImpl::MoveToFront(aura::Window* window) {
32 CHECK_EQ(container_, window->parent());
33 container_->StackChildAtTop(window);
oshima 2014/08/14 22:07:05 window moves to top when activation changes. Would
mfomitchev 2014/08/14 22:19:08 In practice I think we could get rid of all of tho
sadrul 2014/08/14 23:47:22 Removed MoveToFront() from the interface
34 }
35
36 } // namespace athena
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698