OLD | NEW |
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_H_ | 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ | 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 base::string16 GetAccessibleNameForTray() override; | 126 base::string16 GetAccessibleNameForTray() override; |
127 void BubbleResized(const views::TrayBubbleView* bubble_view) override; | 127 void BubbleResized(const views::TrayBubbleView* bubble_view) override; |
128 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; | 128 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; |
129 void ClickedOutsideBubble() override; | 129 void ClickedOutsideBubble() override; |
130 | 130 |
131 // views::TrayBubbleView::Delegate: | 131 // views::TrayBubbleView::Delegate: |
132 void BubbleViewDestroyed() override; | 132 void BubbleViewDestroyed() override; |
133 void OnMouseEnteredView() override; | 133 void OnMouseEnteredView() override; |
134 void OnMouseExitedView() override; | 134 void OnMouseExitedView() override; |
135 base::string16 GetAccessibleNameForBubble() override; | 135 base::string16 GetAccessibleNameForBubble() override; |
136 void OnBeforeBubbleWidgetInit( | |
137 views::Widget* anchor_widget, | |
138 views::Widget* bubble_widget, | |
139 views::Widget::InitParams* params) const override; | |
140 void HideBubble(const views::TrayBubbleView* bubble_view) override; | 136 void HideBubble(const views::TrayBubbleView* bubble_view) override; |
141 | 137 |
142 ScreenTrayItem* GetScreenShareItem() { return screen_share_tray_item_; } | 138 ScreenTrayItem* GetScreenShareItem() { return screen_share_tray_item_; } |
143 ScreenTrayItem* GetScreenCaptureItem() { return screen_capture_tray_item_; } | 139 ScreenTrayItem* GetScreenCaptureItem() { return screen_capture_tray_item_; } |
144 | 140 |
145 TrayAccessibility* GetTrayAccessibilityForTest() { | 141 TrayAccessibility* GetTrayAccessibilityForTest() { |
146 return tray_accessibility_; | 142 return tray_accessibility_; |
147 } | 143 } |
148 | 144 |
149 // TODO(jamescook): Add a SystemTrayTestApi instead of these methods. | 145 // TODO(jamescook): Add a SystemTrayTestApi instead of these methods. |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 std::unique_ptr<KeyEventWatcher> key_event_watcher_; | 244 std::unique_ptr<KeyEventWatcher> key_event_watcher_; |
249 | 245 |
250 std::unique_ptr<ActivationObserver> activation_observer_; | 246 std::unique_ptr<ActivationObserver> activation_observer_; |
251 | 247 |
252 DISALLOW_COPY_AND_ASSIGN(SystemTray); | 248 DISALLOW_COPY_AND_ASSIGN(SystemTray); |
253 }; | 249 }; |
254 | 250 |
255 } // namespace ash | 251 } // namespace ash |
256 | 252 |
257 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ | 253 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
OLD | NEW |