Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: ash/system/web_notification/ash_popup_alignment_delegate.h

Issue 1914093002: Refactors DockedWindowLayoutManager in terms of ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nuke_aura_window
Patch Set: merge 2 trunk Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698