| 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_COMMON_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_ | 5 #ifndef ASH_COMMON_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_ |
| 6 #define ASH_COMMON_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_ | 6 #define ASH_COMMON_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/common/shelf/wm_shelf_observer.h" | 11 #include "ash/common/shelf/wm_shelf_observer.h" |
| 12 #include "ash/common/shell_observer.h" | 12 #include "ash/common/shell_observer.h" |
| 13 #include "ash/public/cpp/shelf_types.h" | 13 #include "ash/public/cpp/shelf_types.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 display { | 19 namespace display { |
| 20 class Screen; | 20 class Screen; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace ash { | 23 namespace ash { |
| 24 | 24 |
| 25 class AshPopupAlignmentDelegateTest; | 25 class AshPopupAlignmentDelegateTest; |
| 26 class ShelfLayoutManager; | |
| 27 class WebNotificationTrayTest; | 26 class WebNotificationTrayTest; |
| 28 class WmShelf; | 27 class WmShelf; |
| 29 | 28 |
| 30 // The PopupAlignmentDelegate subclass for Ash. It needs to handle alignment of | 29 // The PopupAlignmentDelegate subclass for Ash. It needs to handle alignment of |
| 31 // the shelf and its autohide state. | 30 // the shelf and its autohide state. |
| 32 class ASH_EXPORT AshPopupAlignmentDelegate | 31 class ASH_EXPORT AshPopupAlignmentDelegate |
| 33 : public message_center::PopupAlignmentDelegate, | 32 : public message_center::PopupAlignmentDelegate, |
| 34 public WmShelfObserver, | 33 public WmShelfObserver, |
| 35 public ShellObserver, | 34 public ShellObserver, |
| 36 public display::DisplayObserver { | 35 public display::DisplayObserver { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 gfx::Rect work_area_; | 85 gfx::Rect work_area_; |
| 87 WmShelf* shelf_; | 86 WmShelf* shelf_; |
| 88 int tray_bubble_height_; | 87 int tray_bubble_height_; |
| 89 | 88 |
| 90 DISALLOW_COPY_AND_ASSIGN(AshPopupAlignmentDelegate); | 89 DISALLOW_COPY_AND_ASSIGN(AshPopupAlignmentDelegate); |
| 91 }; | 90 }; |
| 92 | 91 |
| 93 } // namespace ash | 92 } // namespace ash |
| 94 | 93 |
| 95 #endif // ASH_COMMON_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_ | 94 #endif // ASH_COMMON_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_ |
| OLD | NEW |