window: adding setBounds and getBounds api

This commit is contained in:
deepak1556 2015-05-01 16:20:53 +05:30
parent 4608f5e9cd
commit ae6a1b409f
8 changed files with 54 additions and 0 deletions

View file

@ -16,6 +16,10 @@
class GURL;
namespace gfx {
class Rect;
}
namespace mate {
class Arguments;
class Dictionary;
@ -85,6 +89,8 @@ class Window : public mate::EventEmitter,
bool IsMinimized();
void SetFullScreen(bool fullscreen);
bool IsFullscreen();
void SetBounds(const gfx::Rect& bounds);
gfx::Rect GetBounds();
void SetSize(int width, int height);
std::vector<int> GetSize();
void SetContentSize(int width, int height);