OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_ASH_POPUP_ALIGNMENT_DELEGATE_H_ | 5 #ifndef ASH_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_ |
6 #define ASH_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_ | 6 #define ASH_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // Returns the current system tray height. | 48 // Returns the current system tray height. |
49 int system_tray_height_for_test() const { return system_tray_height_; } | 49 int system_tray_height_for_test() const { return system_tray_height_; } |
50 | 50 |
51 // Overridden from message_center::PopupAlignmentDelegate: | 51 // Overridden from message_center::PopupAlignmentDelegate: |
52 int GetToastOriginX(const gfx::Rect& toast_bounds) const override; | 52 int GetToastOriginX(const gfx::Rect& toast_bounds) const override; |
53 int GetBaseLine() const override; | 53 int GetBaseLine() const override; |
54 int GetWorkAreaBottom() const override; | 54 int GetWorkAreaBottom() const override; |
55 bool IsTopDown() const override; | 55 bool IsTopDown() const override; |
56 bool IsFromLeft() const override; | 56 bool IsFromLeft() const override; |
57 void RecomputeAlignment(const display::Display& display) override; | 57 void RecomputeAlignment(const display::Display& display) override; |
| 58 void ConfigureWidgetInitParamsForContainer( |
| 59 views::Widget* widget, |
| 60 views::Widget::InitParams* init_params) override; |
58 | 61 |
59 private: | 62 private: |
60 friend class AshPopupAlignmentDelegateTest; | 63 friend class AshPopupAlignmentDelegateTest; |
61 friend class WebNotificationTrayTest; | 64 friend class WebNotificationTrayTest; |
62 | 65 |
63 // Get the current alignment of the shelf. | 66 // Get the current alignment of the shelf. |
64 ShelfAlignment GetAlignment() const; | 67 ShelfAlignment GetAlignment() const; |
65 | 68 |
66 // Utility function to get the display which should be care about. | 69 // Utility function to get the display which should be care about. |
67 display::Display GetCurrentDisplay() const; | 70 display::Display GetCurrentDisplay() const; |
(...skipping 18 matching lines...) Expand all Loading... |
86 gfx::Rect work_area_; | 89 gfx::Rect work_area_; |
87 WmShelf* shelf_; | 90 WmShelf* shelf_; |
88 int system_tray_height_; | 91 int system_tray_height_; |
89 | 92 |
90 DISALLOW_COPY_AND_ASSIGN(AshPopupAlignmentDelegate); | 93 DISALLOW_COPY_AND_ASSIGN(AshPopupAlignmentDelegate); |
91 }; | 94 }; |
92 | 95 |
93 } // namespace ash | 96 } // namespace ash |
94 | 97 |
95 #endif // ASH_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_ | 98 #endif // ASH_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_ |
OLD | NEW |