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

Side by Side Diff: ash/launcher/overflow_bubble.h

Issue 11434099: Use the correct launcher assets for shelf alignment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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_unittest.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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_LAUNCHER_OVERFLOW_BUBBLE_H_ 5 #ifndef ASH_LAUNCHER_OVERFLOW_BUBBLE_H_
6 #define ASH_LAUNCHER_OVERFLOW_BUBBLE_H_ 6 #define ASH_LAUNCHER_OVERFLOW_BUBBLE_H_
7 7
8 #include "ash/shelf_types.h"
9 #include "base/basictypes.h" 8 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
11 #include "ui/views/widget/widget_observer.h" 10 #include "ui/views/widget/widget_observer.h"
12 11
13 namespace views { 12 namespace views {
14 class View; 13 class View;
15 } 14 }
16 15
17 namespace ash { 16 namespace ash {
18 17
19 class LauncherDelegate; 18 class LauncherDelegate;
20 class LauncherModel; 19 class LauncherModel;
21 20
22 namespace internal { 21 namespace internal {
23 22
24 class LauncherView; 23 class LauncherView;
25 24
26 // OverflowBubble displays an overflow bubble. 25 // OverflowBubble displays an overflow bubble.
27 class OverflowBubble : public views::WidgetObserver { 26 class OverflowBubble : public views::WidgetObserver {
28 public: 27 public:
29 OverflowBubble(); 28 OverflowBubble();
30 virtual ~OverflowBubble(); 29 virtual ~OverflowBubble();
31 30
32 void Show(LauncherDelegate* delegate, 31 void Show(LauncherDelegate* delegate,
33 LauncherModel* model, 32 LauncherModel* model,
34 views::View* anchor, 33 views::View* anchor,
35 ShelfAlignment shelf_alignment,
36 int overflow_start_index); 34 int overflow_start_index);
37 35
38 void Hide(); 36 void Hide();
39 37
40 bool IsShowing() const { return !!bubble_; } 38 bool IsShowing() const { return !!bubble_; }
41 39
42 private: 40 private:
43 // Overridden from views::WidgetObserver: 41 // Overridden from views::WidgetObserver:
44 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE; 42 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE;
45 43
46 views::View* bubble_; // Owned by views hierarchy. 44 views::View* bubble_; // Owned by views hierarchy.
47 45
48 DISALLOW_COPY_AND_ASSIGN(OverflowBubble); 46 DISALLOW_COPY_AND_ASSIGN(OverflowBubble);
49 }; 47 };
50 48
51 } // namespace internal 49 } // namespace internal
52 } // namespace ash 50 } // namespace ash
53 51
54 #endif // ASH_LAUNCHER_OVERFLOW_BUBBLE_H_ 52 #endif // ASH_LAUNCHER_OVERFLOW_BUBBLE_H_
OLDNEW
« no previous file with comments | « ash/launcher/launcher_view_unittest.cc ('k') | ash/launcher/overflow_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698