Add support for zooming to content size

This commit is contained in:
Kevin Sawicki 2016-10-26 12:12:12 +09:00
parent 8bc3dcd17a
commit c5790e39dc
4 changed files with 57 additions and 0 deletions

View file

@ -117,6 +117,8 @@ class NativeWindowMac : public NativeWindow,
};
TitleBarStyle title_bar_style() const { return title_bar_style_; }
bool zoom_to_content_size() const { return zoom_to_content_size_; }
protected:
// Return a vector of non-draggable regions that fill a window of size
// |width| by |height|, but leave gaps where the window should be draggable.
@ -155,6 +157,8 @@ class NativeWindowMac : public NativeWindow,
bool is_kiosk_;
bool zoom_to_content_size_;
NSInteger attention_request_id_; // identifier from requestUserAttention
// The presentation options before entering kiosk mode.