| Index: mojo/services/native_viewport/native_viewport_win.cc
|
| diff --git a/mojo/services/native_viewport/native_viewport_win.cc b/mojo/services/native_viewport/native_viewport_win.cc
|
| index 167ce456c0aa308a71b8cf6133262cc69021db8c..948731f3f07b1f0e666c365a2ca8a5a8ea17ee6d 100644
|
| --- a/mojo/services/native_viewport/native_viewport_win.cc
|
| +++ b/mojo/services/native_viewport/native_viewport_win.cc
|
| @@ -39,7 +39,7 @@ class NativeViewportWin : public gfx::WindowImpl,
|
| // Overridden from NativeViewport:
|
| virtual void Init(const gfx::Rect& bounds) OVERRIDE {
|
| gfx::Rect window_bounds = GetWindowBoundsForClientBounds(
|
| - window_style(), window_ex_style(), bounds);
|
| + WS_OVERLAPPEDWINDOW, window_ex_style(), bounds);
|
| gfx::WindowImpl::Init(NULL, window_bounds);
|
| SetWindowText(hwnd(), L"native_viewport::NativeViewportWin!");
|
| }
|
| @@ -48,6 +48,10 @@ class NativeViewportWin : public gfx::WindowImpl,
|
| ShowWindow(hwnd(), SW_SHOWNORMAL);
|
| }
|
|
|
| + virtual void Hide() OVERRIDE {
|
| + ShowWindow(hwnd(), SW_HIDE);
|
| + }
|
| +
|
| virtual void Close() OVERRIDE {
|
| DestroyWindow(hwnd());
|
| }
|
|
|