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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/launcher/launcher_view.cc ('k') | ash/launcher/overflow_bubble.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_LAUNCHER_OVERFLOW_BUBBLE_H_
6 #define ASH_LAUNCHER_OVERFLOW_BUBBLE_H_
7
8 #include "ash/wm/shelf_types.h"
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "ui/views/widget/widget.h"
12
13 namespace views {
14 class View;
15 }
16
17 namespace ash {
18
19 class LauncherDelegate;
20 class LauncherModel;
21
22 namespace internal {
23
24 class LauncherView;
25
26 // OverflowBubble displays an overflow bubble.
27 class OverflowBubble : public views::Widget::Observer {
28 public:
29 OverflowBubble();
30 virtual ~OverflowBubble();
31
32 void Show(LauncherDelegate* delegate,
33 LauncherModel* model,
34 views::View* anchor,
35 ShelfAlignment shelf_alignment,
36 int overflow_start_index);
37
38 void Hide();
39
40 bool IsShowing() const { return !!bubble_; }
41
42 private:
43 // views::Widget::Observer overrides:
44 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE;
45
46 views::View* bubble_; // Owned by views hierarchy.
47
48 DISALLOW_COPY_AND_ASSIGN(OverflowBubble);
49 };
50
51 } // namespace internal
52 } // namespace ash
53
54 #endif // ASH_LAUNCHER_OVERFLOW_BUBBLE_H_
OLDNEW
« 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