Add API to get top bar height on macOS
This commit is contained in:
parent
a6e11d3b63
commit
b2f1cdfbae
5 changed files with 28 additions and 1 deletions
|
@ -39,7 +39,9 @@ class Screen : public mate::EventEmitter<Screen>,
|
|||
std::vector<display::Display> GetAllDisplays();
|
||||
display::Display GetDisplayNearestPoint(const gfx::Point& point);
|
||||
display::Display GetDisplayMatching(const gfx::Rect& match_rect);
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
int getMenuBarHeight();
|
||||
#endif
|
||||
// display::DisplayObserver:
|
||||
void OnDisplayAdded(const display::Display& new_display) override;
|
||||
void OnDisplayRemoved(const display::Display& old_display) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue