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

Unified Diff: ui/aura_shell/launcher/launcher_types.h

Issue 8247012: Positions the launcher in the bottom left corner. Adds ShellDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks Created 9 years, 2 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
« no previous file with comments | « ui/aura_shell/launcher/launcher_model_unittest.cc ('k') | ui/aura_shell/launcher/launcher_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/launcher/launcher_types.h
diff --git a/ui/aura_shell/launcher/launcher_types.h b/ui/aura_shell/launcher/launcher_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..b435fa0d3a219e85275354a6c7a41d594d6064bf
--- /dev/null
+++ b/ui/aura_shell/launcher/launcher_types.h
@@ -0,0 +1,67 @@
+// Copyright (c) 2011 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 UI_AURA_SHELL_LAUNCHER_ENTRY_TYPES_H_
+#define UI_AURA_SHELL_LAUNCHER_ENTRY_TYPES_H_
+#pragma once
+
+#include <vector>
+
+#include "third_party/skia/include/core/SkBitmap.h"
+#include "ui/aura_shell/aura_shell_export.h"
+
+namespace aura {
+class Window;
+}
+
+namespace aura_shell {
+
+// Type the LauncherItem represents.
+enum AURA_SHELL_EXPORT LauncherItemType {
+ TYPE_TABBED,
+ TYPE_APP
+};
+
+// Represents an image in a launcher item of type TYPE_APP.
+struct AURA_SHELL_EXPORT LauncherTabbedImage {
+ LauncherTabbedImage() : user_data(NULL) {}
+ LauncherTabbedImage(const SkBitmap& image, void* user_data)
+ : image(image),
+ user_data(user_data) {
+ }
+
+ // The image to show.
+ SkBitmap image;
+
+ // Used to identify the image.
+ void* user_data;
+};
+
+typedef std::vector<LauncherTabbedImage> LauncherTabbedImages;
+
+struct AURA_SHELL_EXPORT LauncherItem {
+ LauncherItem() : type(TYPE_TABBED), window(NULL), user_data(NULL) {}
+ LauncherItem(LauncherItemType type,
+ aura::Window* window,
+ void* user_data)
+ : type(type),
+ window(window),
+ user_data(user_data) {}
+
+ LauncherItemType type;
+ aura::Window* window;
+ void* user_data;
+
+ // Image to display in the launcher if the item is of type TYPE_APP.
+ SkBitmap app_image;
+
+ // Image to display in the launcher if the item is of type TYPE_TABBED.
+ LauncherTabbedImages tab_images;
+};
+
+typedef std::vector<LauncherItem> LauncherItems;
+
+} // namespace aura_shell
+
+#endif // UI_AURA_SHELL_LAUNCHER_ENTRY_TYPES_H_
« no previous file with comments | « ui/aura_shell/launcher/launcher_model_unittest.cc ('k') | ui/aura_shell/launcher/launcher_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698