| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 gfx::Display& display) override; | 57 void RecomputeAlignment(const gfx::Display& display) override; |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 friend class AshPopupAlignmentDelegateTest; | 60 friend class AshPopupAlignmentDelegateTest; |
| 61 friend class WebNotificationTrayTest; | 61 friend class WebNotificationTrayTest; |
| 62 | 62 |
| 63 // Get the current alignment of the shelf. | 63 // Get the current alignment of the shelf. |
| 64 ShelfAlignment GetAlignment() const; | 64 wm::ShelfAlignment GetAlignment() const; |
| 65 | 65 |
| 66 // Utility function to get the display which should be care about. | 66 // Utility function to get the display which should be care about. |
| 67 gfx::Display GetCurrentDisplay() const; | 67 gfx::Display GetCurrentDisplay() const; |
| 68 | 68 |
| 69 // Compute the new work area. | 69 // Compute the new work area. |
| 70 void UpdateWorkArea(); | 70 void UpdateWorkArea(); |
| 71 | 71 |
| 72 // Overridden from ShellObserver: | 72 // Overridden from ShellObserver: |
| 73 void OnDisplayWorkAreaInsetsChanged() override; | 73 void OnDisplayWorkAreaInsetsChanged() override; |
| 74 | 74 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 86 gfx::Rect work_area_; | 86 gfx::Rect work_area_; |
| 87 ShelfLayoutManager* shelf_; | 87 ShelfLayoutManager* shelf_; |
| 88 int system_tray_height_; | 88 int system_tray_height_; |
| 89 | 89 |
| 90 DISALLOW_COPY_AND_ASSIGN(AshPopupAlignmentDelegate); | 90 DISALLOW_COPY_AND_ASSIGN(AshPopupAlignmentDelegate); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace ash | 93 } // namespace ash |
| 94 | 94 |
| 95 #endif // ASH_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_ | 95 #endif // ASH_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_ |
| OLD | NEW |