summaryrefslogtreecommitdiff
path: root/chromium/ash/shelf/shelf_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ash/shelf/shelf_util.h')
-rw-r--r--chromium/ash/shelf/shelf_util.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/chromium/ash/shelf/shelf_util.h b/chromium/ash/shelf/shelf_util.h
new file mode 100644
index 00000000000..6fb3d5efc13
--- /dev/null
+++ b/chromium/ash/shelf/shelf_util.h
@@ -0,0 +1,47 @@
+// Copyright 2013 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 ASH_SHELF_SHELF_UTIL_H_
+#define ASH_SHELF_SHELF_UTIL_H_
+
+#include "ash/ash_export.h"
+#include "ash/launcher/launcher_types.h"
+#include "ui/aura/window.h"
+
+namespace aura {
+class Window;
+}
+
+namespace ash {
+
+extern const aura::WindowProperty<ash::LauncherItemDetails*>* const
+ kLauncherItemDetailsKey;
+
+// Associates LauncherItem of |id| with specified |window|.
+ASH_EXPORT void SetLauncherIDForWindow(LauncherID id, aura::Window* window);
+
+// Returns the id of the LauncherItem associated with the specified |window|,
+// or 0 if there isn't one.
+// Note: Window of a tabbed browser will return the |LauncherID| of the
+// currently active tab.
+ASH_EXPORT LauncherID GetLauncherIDForWindow(aura::Window* window);
+
+// Sets LauncherItemDetails for |window|.
+ASH_EXPORT void SetLauncherItemDetailsForWindow(
+ aura::Window* window,
+ const LauncherItemDetails& details);
+
+// Clears LauncherItemDetails for |window|.
+// If |window| has a LauncherItem by SetLauncherItemDetailsForWindow(), it will
+// be removed.
+ASH_EXPORT void ClearLauncherItemDetailsForWindow(aura::Window* window);
+
+// Returns LauncherItemDetails for |window| or NULL if it doesn't have.
+// Returned LauncherItemDetails object is owned by the |window|.
+ASH_EXPORT const LauncherItemDetails* GetLauncherItemDetailsForWindow(
+ aura::Window* window);
+
+} // namespace ash
+
+#endif // ASH_SHELF_SHELF_UTIL_H_