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

Unified Diff: ash/launcher/overflow_bubble.h

Issue 10659003: ash: Add launcher overflow bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + fix clang Created 8 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
« no previous file with comments | « ash/launcher/launcher_view.cc ('k') | ash/launcher/overflow_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/overflow_bubble.h
diff --git a/ash/launcher/overflow_bubble.h b/ash/launcher/overflow_bubble.h
new file mode 100644
index 0000000000000000000000000000000000000000..aa2d0e32f36a445cbf78a2a52b5e4978119fd3dc
--- /dev/null
+++ b/ash/launcher/overflow_bubble.h
@@ -0,0 +1,54 @@
+// Copyright (c) 2012 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_LAUNCHER_OVERFLOW_BUBBLE_H_
+#define ASH_LAUNCHER_OVERFLOW_BUBBLE_H_
+
+#include "ash/wm/shelf_types.h"
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "ui/views/widget/widget.h"
+
+namespace views {
+class View;
+}
+
+namespace ash {
+
+class LauncherDelegate;
+class LauncherModel;
+
+namespace internal {
+
+class LauncherView;
+
+// OverflowBubble displays an overflow bubble.
+class OverflowBubble : public views::Widget::Observer {
+ public:
+ OverflowBubble();
+ virtual ~OverflowBubble();
+
+ void Show(LauncherDelegate* delegate,
+ LauncherModel* model,
+ views::View* anchor,
+ ShelfAlignment shelf_alignment,
+ int overflow_start_index);
+
+ void Hide();
+
+ bool IsShowing() const { return !!bubble_; }
+
+ private:
+ // views::Widget::Observer overrides:
+ virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE;
+
+ views::View* bubble_; // Owned by views hierarchy.
+
+ DISALLOW_COPY_AND_ASSIGN(OverflowBubble);
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_LAUNCHER_OVERFLOW_BUBBLE_H_
« no previous file with comments | « ash/launcher/launcher_view.cc ('k') | ash/launcher/overflow_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698