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

Unified Diff: athena/wm/window_list_provider_impl.h

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 side-by-side diff with in-line comments
Download patch
Index: athena/wm/window_list_provider_impl.h
diff --git a/athena/wm/window_list_provider_impl.h b/athena/wm/window_list_provider_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..2a7cb7227f509a955d4b22e0843effdd943bd49d
--- /dev/null
+++ b/athena/wm/window_list_provider_impl.h
@@ -0,0 +1,31 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ATHENA_WM_WINDOW_LIST_PROVIDER_IMPL_H_
+#define ATHENA_WM_WINDOW_LIST_PROVIDER_IMPL_H_
+
+#include "athena/wm/public/window_list_provider.h"
+
+namespace athena {
+
+// This implementation of the WindowListProviderImpl uses the same order as in
+// the container window's stacking order.
+class ATHENA_EXPORT WindowListProviderImpl : public WindowListProvider {
+ public:
+ explicit WindowListProviderImpl(aura::Window* container);
+ virtual ~WindowListProviderImpl();
+
+ private:
+ // WindowListProvider:
+ virtual aura::Window::Windows GetWindowList() const OVERRIDE;
+ virtual void MoveToFront(aura::Window* window) OVERRIDE;
+
+ aura::Window* container_;
+
+ DISALLOW_COPY_AND_ASSIGN(WindowListProviderImpl);
+};
+
+} // namespace athena
+
+#endif // ATHENA_WM_WINDOW_LIST_PROVIDER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698