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

Unified Diff: chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.h

Issue 1914993002: Enhance chrome.app.window API with better shelf integration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + Fixes v10 Created 4 years, 5 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/ash/launcher/extension_app_window_launcher_controller.h
diff --git a/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.h b/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.h
index a34ba49e8379ce2ee02ee70c7e501770ee92e7fa..d6727fe2fc07c0dea297e62bb2407c13aa214f62 100644
--- a/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.h
+++ b/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.h
@@ -9,6 +9,7 @@
#include <map>
#include <string>
+#include "ash/shelf/shelf_util.h"
#include "base/macros.h"
#include "chrome/browser/ui/ash/launcher/app_window_launcher_controller.h"
#include "extensions/browser/app_window/app_window_registry.h"
@@ -67,6 +68,7 @@ class ExtensionAppWindowLauncherController
using AppControllerMap =
std::map<std::string, ExtensionAppWindowLauncherItemController*>;
using WindowToAppShelfIdMap = std::map<aura::Window*, std::string>;
+ using AppShelfIdToShelfIdMap = std::map<std::string, ash::ShelfID>;
// A set of unowned AppWindowRegistry pointers for loaded users.
// Note that this will only be used with multiple users in the side by side
@@ -79,6 +81,9 @@ class ExtensionAppWindowLauncherController
// Allows us to get from an aura::Window to the app shelf id.
WindowToAppShelfIdMap window_to_app_shelf_id_map_;
+ // Map of app shelf id to shelf id.
+ AppShelfIdToShelfIdMap app_shelf_id_to_shelf_id_map_;
+
DISALLOW_COPY_AND_ASSIGN(ExtensionAppWindowLauncherController);
};

Powered by Google App Engine
This is Rietveld 408576698