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

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: UpdateWidgetSize when layout manager is changed for systemtray and add test. 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
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_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_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/message_pump_observer.h" 11 #include "base/message_pump_observer.h"
12 #include "base/timer.h" 12 #include "base/timer.h"
13 #include "ui/views/bubble/bubble_delegate.h" 13 #include "ui/views/bubble/bubble_delegate.h"
14 #include "ui/views/widget/widget.h" 14 #include "ui/views/widget/widget.h"
15 15
16 #include <vector> 16 #include <vector>
17 17
18 namespace ash { 18 namespace ash {
19 19
20 class SystemTray; 20 class SystemTray;
21 class SystemTrayItem; 21 class SystemTrayItem;
22 22
23 namespace internal { 23 namespace internal {
24 24
25 class SystemTrayBubble; 25 class SystemTrayBubble;
26 26
27 class SystemTrayBubbleView : public views::BubbleDelegateView { 27 class SystemTrayBubbleView : public views::BubbleDelegateView {
28 public: 28 public:
29 SystemTrayBubbleView(views::View* anchor, 29 SystemTrayBubbleView(views::View* anchor,
30 views::BubbleBorder::ArrowLocation arrow_location,
30 SystemTrayBubble* host, 31 SystemTrayBubble* host,
31 bool can_activate); 32 bool can_activate);
32 virtual ~SystemTrayBubbleView(); 33 virtual ~SystemTrayBubbleView();
33 34
34 void SetBubbleBorder(views::BubbleBorder* border); 35 void SetBubbleBorder(views::BubbleBorder* border);
35 36
36 void UpdateAnchor(); 37 void UpdateAnchor();
37 38
38 // Called when the host is destroyed. 39 // Called when the host is destroyed.
39 void reset_host() { host_ = NULL; } 40 void reset_host() { host_ = NULL; }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 int autoclose_delay_; 129 int autoclose_delay_;
129 base::OneShotTimer<SystemTrayBubble> autoclose_; 130 base::OneShotTimer<SystemTrayBubble> autoclose_;
130 131
131 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble); 132 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble);
132 }; 133 };
133 134
134 } // namespace internal 135 } // namespace internal
135 } // namespace ash 136 } // namespace ash
136 137
137 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ 138 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698