Add "enable-larger-than-screen" option for BrowserWindow.

From now on BrowserWindow can only be resized larger than screen or
moved out of screen when this option is set to "true".

Fixes #582.
This commit is contained in:
Cheng Zhao 2014-08-17 12:23:00 +08:00
parent 78afa29ade
commit 2a9f5a5fb8
8 changed files with 51 additions and 17 deletions

View file

@ -251,6 +251,9 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
// Whether window has standard frame.
bool has_frame_;
// Whether window can be resized larger than screen.
bool enable_larger_than_screen_;
// Window icon.
gfx::ImageSkia icon_;