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

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

Issue 2007003002: mash: Preliminary support for shelf auto-hide (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shutdown
Patch Set: cleanup Created 4 years, 7 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 display::Display GetCurrentDisplay() const; 67 display::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
75 // Overridden from ShelfLayoutManagerObserver: 75 // Overridden from ShelfLayoutManagerObserver:
76 void WillChangeVisibilityState(ShelfVisibilityState new_state) override; 76 void WillChangeVisibilityState(ShelfVisibilityState new_state) override;
77 void OnAutoHideStateChanged(ShelfAutoHideState new_state) override; 77 void OnAutoHideStateChanged(ShelfLayoutManager* layout_manager,
78 ShelfAutoHideState new_state) override;
78 79
79 // Overridden from display::DisplayObserver: 80 // Overridden from display::DisplayObserver:
80 void OnDisplayAdded(const display::Display& new_display) override; 81 void OnDisplayAdded(const display::Display& new_display) override;
81 void OnDisplayRemoved(const display::Display& old_display) override; 82 void OnDisplayRemoved(const display::Display& old_display) override;
82 void OnDisplayMetricsChanged(const display::Display& display, 83 void OnDisplayMetricsChanged(const display::Display& display,
83 uint32_t metrics) override; 84 uint32_t metrics) override;
84 85
85 display::Screen* screen_; 86 display::Screen* screen_;
86 gfx::Rect work_area_; 87 gfx::Rect work_area_;
87 ShelfLayoutManager* shelf_; 88 ShelfLayoutManager* shelf_;
88 int system_tray_height_; 89 int system_tray_height_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(AshPopupAlignmentDelegate); 91 DISALLOW_COPY_AND_ASSIGN(AshPopupAlignmentDelegate);
91 }; 92 };
92 93
93 } // namespace ash 94 } // namespace ash
94 95
95 #endif // ASH_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_ 96 #endif // ASH_SYSTEM_WEB_NOTIFICATION_ASH_POPUP_ALIGNMENT_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698