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

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

Issue 10546125: Add WebNotificationTray to the status area (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make WebNotificationTray::Bubble a Widget::Observer; address nits Created 8 years, 6 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/tray/tray_bubble_view.h" 9 #include "ash/system/tray/tray_bubble_view.h"
10 #include "ash/system/user/login_status.h" 10 #include "ash/system/user/login_status.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual void OnMouseExitedView() OVERRIDE; 73 virtual void OnMouseExitedView() OVERRIDE;
74 74
75 BubbleType bubble_type() const { return bubble_type_; } 75 BubbleType bubble_type() const { return bubble_type_; }
76 TrayBubbleView* bubble_view() const { return bubble_view_; } 76 TrayBubbleView* bubble_view() const { return bubble_view_; }
77 77
78 void DestroyItemViews(); 78 void DestroyItemViews();
79 void StartAutoCloseTimer(int seconds); 79 void StartAutoCloseTimer(int seconds);
80 void StopAutoCloseTimer(); 80 void StopAutoCloseTimer();
81 void RestartAutoCloseTimer(); 81 void RestartAutoCloseTimer();
82 void Close(); 82 void Close();
83 void SetVisible(bool is_visible);
84 bool IsVisible();
83 85
84 private: 86 private:
85 void CreateItemViews(user::LoginStatus login_status); 87 void CreateItemViews(user::LoginStatus login_status);
86 88
87 // Closes the bubble if the event happened outside the bounds. 89 // Closes the bubble if the event happened outside the bounds.
88 // Returns true if the event should be stopped from being propagated farther. 90 // Returns true if the event should be stopped from being propagated farther.
89 bool ProcessLocatedEvent(const aura::LocatedEvent& event); 91 bool ProcessLocatedEvent(const aura::LocatedEvent& event);
90 92
91 // Overridden from aura::EventFilter. 93 // Overridden from aura::EventFilter.
92 virtual bool PreHandleKeyEvent(aura::Window* target, 94 virtual bool PreHandleKeyEvent(aura::Window* target,
(...skipping 19 matching lines...) Expand all
112 int autoclose_delay_; 114 int autoclose_delay_;
113 base::OneShotTimer<SystemTrayBubble> autoclose_; 115 base::OneShotTimer<SystemTrayBubble> autoclose_;
114 116
115 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble); 117 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble);
116 }; 118 };
117 119
118 } // namespace internal 120 } // namespace internal
119 } // namespace ash 121 } // namespace ash
120 122
121 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ 123 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698