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" |
11 #include "ash/shelf/shelf_layout_manager_observer.h" | 11 #include "ash/shelf/shelf_layout_manager_observer.h" |
12 #include "ash/shelf/shelf_types.h" | 12 #include "ash/shelf/shelf_types.h" |
13 #include "ash/shell_observer.h" | 13 #include "ash/shell_observer.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "ui/display/display_observer.h" | 15 #include "ui/display/display_observer.h" |
16 #include "ui/gfx/geometry/rect.h" | 16 #include "ui/gfx/geometry/rect.h" |
17 #include "ui/message_center/views/popup_alignment_delegate.h" | 17 #include "ui/message_center/views/popup_alignment_delegate.h" |
18 | 18 |
19 namespace aura { | 19 namespace aura { |
20 class Window; | 20 class Window; |
21 } | 21 } |
22 | 22 |
23 namespace gfx { | 23 namespace display { |
24 class Screen; | 24 class Screen; |
25 } | 25 } |
26 | 26 |
27 namespace display { | |
28 using Screen = gfx::Screen; | |
29 } | |
30 | |
31 namespace ash { | 27 namespace ash { |
32 | 28 |
33 class AshPopupAlignmentDelegateTest; | 29 class AshPopupAlignmentDelegateTest; |
34 class ShelfLayoutManager; | 30 class ShelfLayoutManager; |
35 class WebNotificationTrayTest; | 31 class WebNotificationTrayTest; |
36 | 32 |
37 // The PopupAlignmentDelegate subclass for Ash. It needs to handle alignment of | 33 // The PopupAlignmentDelegate subclass for Ash. It needs to handle alignment of |
38 // the shelf and its autohide state. | 34 // the shelf and its autohide state. |
39 class ASH_EXPORT AshPopupAlignmentDelegate | 35 class ASH_EXPORT AshPopupAlignmentDelegate |
40 : public message_center::PopupAlignmentDelegate, | 36 : public message_center::PopupAlignmentDelegate, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 gfx::Rect work_area_; | 86 gfx::Rect work_area_; |
91 ShelfLayoutManager* shelf_; | 87 ShelfLayoutManager* shelf_; |
92 int system_tray_height_; | 88 int system_tray_height_; |
93 | 89 |
94 DISALLOW_COPY_AND_ASSIGN(AshPopupAlignmentDelegate); | 90 DISALLOW_COPY_AND_ASSIGN(AshPopupAlignmentDelegate); |
95 }; | 91 }; |
96 | 92 |
97 } // namespace ash | 93 } // namespace ash |
98 | 94 |
99 #endif // ASH_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_ | 95 #endif // ASH_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_ |
OLD | NEW |