win: Implement setContentSize API.

This commit is contained in:
Cheng Zhao 2014-05-18 21:27:23 +08:00
parent 0b202a2df1
commit 8ae66cab9d
2 changed files with 24 additions and 14 deletions

View file

@ -115,6 +115,8 @@ class NativeWindowWin : public NativeWindow,
typedef struct { int position; ui::MenuModel* model; } MenuItem;
typedef std::map<ui::Accelerator, MenuItem> AcceleratorTable;
void ClientAreaSizeToWindowSize(gfx::Size* size);
void OnViewWasResized();
// Register accelerators supported by the menu model.
@ -131,6 +133,8 @@ class NativeWindowWin : public NativeWindow,
scoped_ptr<SkRegion> draggable_region_;
bool use_content_size_;
bool resizable_;
string16 title_;
gfx::Size minimum_size_;