| 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_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 5 #ifndef ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
| 6 #define ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 6 #define ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 public ui::SimpleMenuModel::Delegate { | 54 public ui::SimpleMenuModel::Delegate { |
| 55 public: | 55 public: |
| 56 explicit WebNotificationTray(StatusAreaWidget* status_area_widget); | 56 explicit WebNotificationTray(StatusAreaWidget* status_area_widget); |
| 57 ~WebNotificationTray() override; | 57 ~WebNotificationTray() override; |
| 58 | 58 |
| 59 // Sets the height of the system tray from the edge of the work area so that | 59 // Sets the height of the system tray from the edge of the work area so that |
| 60 // the notification popups don't overlap with the tray. Passes 0 if no UI is | 60 // the notification popups don't overlap with the tray. Passes 0 if no UI is |
| 61 // shown in the system tray side. | 61 // shown in the system tray side. |
| 62 void SetSystemTrayHeight(int height); | 62 void SetSystemTrayHeight(int height); |
| 63 | 63 |
| 64 // Returns the current system tray height. |
| 65 int system_tray_height_for_test() const; |
| 66 |
| 64 // Returns true if it should block the auto hide behavior of the shelf. | 67 // Returns true if it should block the auto hide behavior of the shelf. |
| 65 bool ShouldBlockShelfAutoHide() const; | 68 bool ShouldBlockShelfAutoHide() const; |
| 66 | 69 |
| 67 // Returns true if the message center bubble is visible. | 70 // Returns true if the message center bubble is visible. |
| 68 bool IsMessageCenterBubbleVisible() const; | 71 bool IsMessageCenterBubbleVisible() const; |
| 69 | 72 |
| 70 // Returns true if the mouse is inside the notification bubble. | 73 // Returns true if the mouse is inside the notification bubble. |
| 71 bool IsMouseInNotificationBubble() const; | 74 bool IsMouseInNotificationBubble() const; |
| 72 | 75 |
| 73 // Shows the message center bubble. | 76 // Shows the message center bubble. |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 bool should_block_shelf_auto_hide_; | 177 bool should_block_shelf_auto_hide_; |
| 175 | 178 |
| 176 std::unique_ptr<AshPopupAlignmentDelegate> popup_alignment_delegate_; | 179 std::unique_ptr<AshPopupAlignmentDelegate> popup_alignment_delegate_; |
| 177 | 180 |
| 178 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 181 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
| 179 }; | 182 }; |
| 180 | 183 |
| 181 } // namespace ash | 184 } // namespace ash |
| 182 | 185 |
| 183 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 186 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
| OLD | NEW |