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

Side by Side Diff: ash/system/tray/system_tray_bubble.h

Issue 10384217: Add left/right layout support for uber tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
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_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/system/user/login_status.h" 9 #include "ash/system/user/login_status.h"
10 #include "base/base_export.h" 10 #include "base/base_export.h"
11 #include "base/timer.h" 11 #include "base/timer.h"
12 #include "ui/views/bubble/bubble_delegate.h" 12 #include "ui/views/bubble/bubble_delegate.h"
13 #include "ui/views/widget/widget.h" 13 #include "ui/views/widget/widget.h"
14 14
15 #include <vector> 15 #include <vector>
16 16
17 namespace ash { 17 namespace ash {
18 18
19 class SystemTray; 19 class SystemTray;
20 class SystemTrayItem; 20 class SystemTrayItem;
21 21
22 namespace internal { 22 namespace internal {
23 23
24 class SystemTrayBubble; 24 class SystemTrayBubble;
25 25
26 class SystemTrayBubbleView : public views::BubbleDelegateView { 26 class SystemTrayBubbleView : public views::BubbleDelegateView {
27 public: 27 public:
28 SystemTrayBubbleView(views::View* anchor, 28 SystemTrayBubbleView(views::View* anchor,
29 views::BubbleBorder::ArrowLocation arrow_location,
29 SystemTrayBubble* host, 30 SystemTrayBubble* host,
30 bool can_activate); 31 bool can_activate);
31 virtual ~SystemTrayBubbleView(); 32 virtual ~SystemTrayBubbleView();
32 33
33 void SetBubbleBorder(views::BubbleBorder* border); 34 void SetBubbleBorder(views::BubbleBorder* border);
34 35
35 void UpdateAnchor(); 36 void UpdateAnchor();
36 37
37 // Called when the host is destroyed. 38 // Called when the host is destroyed.
38 void reset_host() { host_ = NULL; } 39 void reset_host() { host_ = NULL; }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 int autoclose_delay_; 119 int autoclose_delay_;
119 base::OneShotTimer<SystemTrayBubble> autoclose_; 120 base::OneShotTimer<SystemTrayBubble> autoclose_;
120 121
121 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble); 122 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble);
122 }; 123 };
123 124
124 } // namespace internal 125 } // namespace internal
125 } // namespace ash 126 } // namespace ash
126 127
127 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ 128 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698