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

Unified Diff: chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h

Issue 10541109: Implement active window list for platform apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor cleanup Created 8 years, 6 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: chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h
diff --git a/chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h b/chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h
index d44fb58f5dbcf2c15f5709c2dcbbeeaabf7d131b..ae1b654b6508c657b2a219e26df07c63745c283e 100644
--- a/chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h
+++ b/chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
#pragma once
+#include <list>
#include <map>
#include <string>
@@ -235,6 +236,7 @@ class ChromeLauncherController : public ash::LauncherDelegate,
typedef std::map<ash::LauncherID, Item> IDToItemMap;
typedef std::map<aura::Window*, ash::LauncherID> WindowToIDMap;
+ typedef std::list<aura::Window*> WindowList;
// Updates the pinned pref state. The pinned state consists of a list pref.
// Each item of the list is a dictionary. The key |kAppIDPath| gives the
@@ -284,6 +286,9 @@ class ChromeLauncherController : public ash::LauncherDelegate,
// Allows us to get from an aura::Window to the id of a launcher item.
// Currently only used for platform app windows.
WindowToIDMap window_to_id_map_;
+ // Maintains the activation order. The first element is most recent.
+ // Currently only used for platform app windows.
+ WindowList activation_order_;
// Used to load the image for an app tab.
scoped_ptr<AppIconLoader> app_icon_loader_;

Powered by Google App Engine
This is Rietveld 408576698